Docs: Add missing `@since` tags to `WP_Styles` properties/methods.

See #35964.
Built from https://develop.svn.wordpress.org/trunk@36733


git-svn-id: http://core.svn.wordpress.org/trunk@36700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2016-02-26 14:39:26 +00:00
parent a09799fa40
commit d81ebb08fb
3 changed files with 114 additions and 3 deletions

View File

@ -17,17 +17,95 @@
* @since r74
*/
class WP_Styles extends WP_Dependencies {
/**
* Base URL for styles.
*
* Full URL with trailing slash.
*
* @since 2.6.0
* @access public
* @var string
*/
public $base_url;
/**
*
* @since 2.8.0
* @access public
* @var string
*/
public $content_url;
/**
*
* @since 2.6.0
* @access public
* @var string
*/
public $default_version;
/**
*
* @since 2.6.0
* @access public
* @var string
*/
public $text_direction = 'ltr';
/**
*
* @since 2.8.0
* @access public
* @var string
*/
public $concat = '';
/**
*
* @since 2.8.0
* @access public
* @var string
*/
public $concat_version = '';
/**
*
* @since 2.8.0
* @access public
* @var bool
*/
public $do_concat = false;
/**
*
* @since 2.8.0
* @access public
* @var string
*/
public $print_html = '';
/**
*
* @since 3.3.0
* @access public
* @var string
*/
public $print_code = '';
/**
*
* @since 2.8.0
* @access public
* @var array
*/
public $default_dirs;
/**
* Constructor.
*
* @since 2.6.0
* @access public
*/
public function __construct() {
/**
* Fires when the WP_Styles instance is initialized.
@ -40,6 +118,10 @@ class WP_Styles extends WP_Dependencies {
}
/**
*
* @since 2.6.0
* @access public
*
* @param string $handle
* @return bool
*/
@ -148,6 +230,10 @@ class WP_Styles extends WP_Dependencies {
}
/**
*
* @since 3.3.0
* @access public
*
* @param string $handle
* @param string $code
*/
@ -167,6 +253,10 @@ class WP_Styles extends WP_Dependencies {
}
/**
*
* @since 3.3.0
* @access public
*
* @param string $handle
* @param bool $echo
* @return bool
@ -190,6 +280,10 @@ class WP_Styles extends WP_Dependencies {
}
/**
*
* @since 2.6.0
* @access public
*
* @param mixed $handles
* @param bool $recursion
* @param mixed $group
@ -211,6 +305,10 @@ class WP_Styles extends WP_Dependencies {
}
/**
*
* @since 2.6.0
* @access public
*
* @param string $src
* @param string $ver
* @param string $handle
@ -237,10 +335,14 @@ class WP_Styles extends WP_Dependencies {
}
/**
*
* @since 2.8.0
* @access public
*
* @param string $src
* @return bool
*/
public function in_default_dir($src) {
public function in_default_dir( $src ) {
if ( ! $this->default_dirs )
return true;
@ -252,14 +354,22 @@ class WP_Styles extends WP_Dependencies {
}
/**
*
* HTML 5 allows styles in the body, grab late enqueued items and output them in the footer.
*
* @since 3.3.0
* @access public
*
* @return array
*/
public function do_footer_items() { // HTML 5 allows styles in the body, grab late enqueued items and output them in the footer.
public function do_footer_items() {
$this->do_items(false, 1);
return $this->done;
}
/**
*
* @since 3.3.0
* @access public
*/
public function reset() {

View File

@ -1147,6 +1147,7 @@ function print_late_styles() {
* Print styles (internal use only)
*
* @ignore
* @since 3.3.0
*
* @global bool $compress_css
*/

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-beta1-36732';
$wp_version = '4.5-beta1-36733';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.