Make WordPress Core

Changeset 45089


Ignore:
Timestamp:
04/01/2019 04:20:05 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct @param description for remove_theme_support().

Add @return description for current_theme_supports().

See #46543.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r45088 r45089  
    26352635 * @global array $_wp_theme_features
    26362636 *
    2637  * @param string $feature the feature to check
     2637 * @param string $feature The feature to check.
    26382638 * @return mixed The array of extra arguments or the value for the registered feature.
    26392639 */
     
    26712671 * @since 3.0.0
    26722672 * @see add_theme_support()
    2673  * @param string $feature the feature being added
     2673 * @param string $feature The feature being removed.
    26742674 * @return bool|void Whether feature was removed.
    26752675 */
     
    27442744
    27452745/**
    2746  * Checks a theme's support for a given feature
     2746 * Checks a theme's support for a given feature.
    27472747 *
    27482748 * @since 2.9.0
     
    27502750 * @global array $_wp_theme_features
    27512751 *
    2752  * @param string $feature the feature being checked
    2753  * @return bool
     2752 * @param string $feature The feature being checked.
     2753 * @return bool True if the current theme supports the feature, false otherwise.
    27542754 */
    27552755function current_theme_supports( $feature ) {
Note: See TracChangeset for help on using the changeset viewer.