From 9cc5e3e7603978740df8e244475deee10a03ce01 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 1 Apr 2019 16:20:05 +0000 Subject: [PATCH] Docs: Correct `@param` description for `remove_theme_support()`. Add `@return` description for `current_theme_supports()`. See #46543. git-svn-id: https://develop.svn.wordpress.org/trunk@45089 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/theme.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 23907bc549..e688cc66fa 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -2634,7 +2634,7 @@ function _custom_logo_header_styles() { * * @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. */ function get_theme_support( $feature ) { @@ -2670,7 +2670,7 @@ function get_theme_support( $feature ) { * * @since 3.0.0 * @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. */ 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 * * @global array $_wp_theme_features * - * @param string $feature the feature being checked - * @return bool + * @param string $feature The feature being checked. + * @return bool True if the current theme supports the feature, false otherwise. */ function current_theme_supports( $feature ) { global $_wp_theme_features;