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
This commit is contained in:
Sergey Biryukov 2019-04-01 16:20:05 +00:00
parent 28e7acf168
commit 9cc5e3e760

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;