Docs: Add missing `@since` entries for `WP_Theme` class methods.

Props keesiemeijer.
Fixes #39503.

git-svn-id: https://develop.svn.wordpress.org/trunk@39736 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2017-01-06 13:47:16 +00:00
parent e3dc88108d
commit d9d5174c29
1 changed files with 19 additions and 1 deletions

View File

@ -148,7 +148,7 @@ final class WP_Theme implements ArrayAccess {
* URL to the theme root, usually an absolute URL to wp-content/themes
*
* @access private
* var string
* @var string
*/
private $theme_root_uri;
@ -193,6 +193,8 @@ final class WP_Theme implements ArrayAccess {
/**
* Constructor for WP_Theme.
*
* @since 3.4.0
*
* @global array $wp_theme_directories
*
* @param string $theme_dir Directory of the theme within the theme_root.
@ -333,6 +335,8 @@ final class WP_Theme implements ArrayAccess {
/**
* When converting the object to a string, the theme name is returned.
*
* @since 3.4.0
*
* @return string Theme name, ready for display (translated)
*/
public function __toString() {
@ -344,6 +348,8 @@ final class WP_Theme implements ArrayAccess {
*
* @staticvar array $properties
*
* @since 3.4.0
*
* @param string $offset Property to check if set.
* @return bool Whether the given property is set.
*/
@ -359,6 +365,8 @@ final class WP_Theme implements ArrayAccess {
/**
* __get() magic method for properties formerly returned by current_theme_info()
*
* @since 3.4.0
*
* @param string $offset Property to get.
* @return mixed Property value.
*/
@ -401,6 +409,8 @@ final class WP_Theme implements ArrayAccess {
/**
* Method to implement ArrayAccess for keys formerly returned by get_themes()
*
* @since 3.4.0
*
* @param mixed $offset
* @param mixed $value
*/
@ -409,6 +419,8 @@ final class WP_Theme implements ArrayAccess {
/**
* Method to implement ArrayAccess for keys formerly returned by get_themes()
*
* @since 3.4.0
*
* @param mixed $offset
*/
public function offsetUnset( $offset ) {}
@ -418,6 +430,8 @@ final class WP_Theme implements ArrayAccess {
*
* @staticvar array $keys
*
* @since 3.4.0
*
* @param mixed $offset
* @return bool
*/
@ -441,6 +455,8 @@ final class WP_Theme implements ArrayAccess {
* and care should be taken to use `$theme::display( 'Name' )` to get a properly
* translated header.
*
* @since 3.4.0
*
* @param mixed $offset
* @return mixed
*/
@ -1226,6 +1242,8 @@ final class WP_Theme implements ArrayAccess {
*
* This hits the filesystem.
*
* @since 4.4.0
*
* @return WP_Theme|false Object, or false if no theme is installed, which would be bad.
*/
public static function get_core_default_theme() {