Docs: Correct `@param` description for `remove_theme_support()`.

Add `@return` description for `current_theme_supports()`.

See #46543.
Built from https://develop.svn.wordpress.org/trunk@45089


git-svn-id: http://core.svn.wordpress.org/trunk@44898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-04-01 16:21:50 +00:00
parent 3f3593aa6c
commit 130495e1c4
2 changed files with 6 additions and 6 deletions

View File

@ -2634,7 +2634,7 @@ function _custom_logo_header_styles() {
* *
* @global array $_wp_theme_features * @global array $_wp_theme_features
* *
* @param string $feature the feature to check * @param string $feature The feature to check.
* @return mixed The array of extra arguments or the value for the registered feature. * @return mixed The array of extra arguments or the value for the registered feature.
*/ */
function get_theme_support( $feature ) { function get_theme_support( $feature ) {
@ -2670,7 +2670,7 @@ function get_theme_support( $feature ) {
* *
* @since 3.0.0 * @since 3.0.0
* @see add_theme_support() * @see add_theme_support()
* @param string $feature the feature being added * @param string $feature The feature being removed.
* @return bool|void Whether feature was removed. * @return bool|void Whether feature was removed.
*/ */
function remove_theme_support( $feature ) { function remove_theme_support( $feature ) {
@ -2743,14 +2743,14 @@ function _remove_theme_support( $feature ) {
} }
/** /**
* Checks a theme's support for a given feature * Checks a theme's support for a given feature.
* *
* @since 2.9.0 * @since 2.9.0
* *
* @global array $_wp_theme_features * @global array $_wp_theme_features
* *
* @param string $feature the feature being checked * @param string $feature The feature being checked.
* @return bool * @return bool True if the current theme supports the feature, false otherwise.
*/ */
function current_theme_supports( $feature ) { function current_theme_supports( $feature ) {
global $_wp_theme_features; global $_wp_theme_features;

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.2-beta1-45088'; $wp_version = '5.2-beta1-45089';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.