Changeset 48490
- Timestamp:
- 07/15/2020 11:21:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r48189 r48490 2474 2474 * @global array $_wp_theme_features 2475 2475 * 2476 * @param string $feature The feature being added. Likely core values include 'post-formats', 2477 * 'post-thumbnails', 'html5', 'custom-logo', 'custom-header', 2478 * 'custom-background', 'title-tag', 'starter-content', 2479 * 'responsive-embeds', etc. 2476 * @param string $feature The feature being added. Likely core values include 'post-formats', 'post-thumbnails', 2477 * 'custom-header', 'custom-background', 'custom-logo', 'menus', 'automatic-feed-links', 2478 * 'html5', 'title-tag', 'customize-selective-refresh-widgets', 'starter-content', 2479 * 'responsive-embeds', 'align-wide', 'dark-editor-style', 'disable-custom-colors', 2480 * 'disable-custom-font-sizes', 'editor-color-palette', 'editor-font-sizes', 2481 * 'editor-styles', and 'wp-block-styles'. 2480 2482 * @param mixed ...$args Optional extra arguments to pass along with certain features. 2481 2483 * @return void|bool False on failure, void otherwise. … … 2779 2781 2780 2782 /** 2781 * Gets the theme support arguments passed when registering that support 2783 * Gets the theme support arguments passed when registering that support. 2782 2784 * 2783 2785 * Example usage: … … 2792 2794 * @global array $_wp_theme_features 2793 2795 * 2794 * @param string $feature The feature to check. 2796 * @param string $feature The feature to check. See add_theme_support() for the list 2797 * of possible values. 2795 2798 * @param mixed ...$args Optional extra arguments to be checked against certain features. 2796 2799 * @return mixed The array of extra arguments or the value for the registered feature. … … 2830 2833 * @see add_theme_support() 2831 2834 * 2832 * @param string $feature The feature being removed. 2835 * @param string $feature The feature being removed. See add_theme_support() for the list 2836 * of possible values. 2833 2837 * @return bool|void Whether feature was removed. 2834 2838 */ … … 2852 2856 * @global Custom_Background $custom_background 2853 2857 * 2854 * @param string $feature 2858 * @param string $feature The feature being removed. See add_theme_support() for the list 2859 * of possible values. 2855 2860 * @return bool True if support was removed, false if the feature was not registered. 2856 2861 */ … … 2918 2923 * @global array $_wp_theme_features 2919 2924 * 2920 * @param string $feature The feature being checked. 2925 * @param string $feature The feature being checked. See add_theme_support() for the list 2926 * of possible values. 2921 2927 * @param mixed ...$args Optional extra arguments to be checked against certain features. 2922 2928 * @return bool True if the current theme supports the feature, false otherwise. … … 2972 2978 * Filters whether the current theme supports a specific feature. 2973 2979 * 2974 * The dynamic portion of the hook name, `$feature`, refers to the specific theme 2975 * feature. Possible values include 'post-formats', 'post-thumbnails', 'custom-background', 2976 * 'custom-header', 'menus', 'automatic-feed-links', 'html5', 2977 * 'starter-content', and 'customize-selective-refresh-widgets'. 2980 * The dynamic portion of the hook name, `$feature`, refers to the specific 2981 * theme feature. See add_theme_support() for the list of possible values. 2978 2982 * 2979 2983 * @since 3.4.0 … … 2991 2995 * @since 2.9.0 2992 2996 * 2993 * @param string $feature The feature being checked. 2997 * @param string $feature The feature being checked. See add_theme_support() for the list 2998 * of possible values. 2994 2999 * @param string $include Path to the file. 2995 3000 * @return bool True if the current theme supports the supplied feature, false otherwise. … … 3015 3020 * @global $_wp_registered_theme_features 3016 3021 * 3017 * @param string $feature The name uniquely identifying the feature. 3022 * @param string $feature The name uniquely identifying the feature. See add_theme_support() 3023 * for the list of possible values. 3018 3024 * @param array $args { 3019 3025 * Data used to describe the theme. … … 3170 3176 * @global $_wp_registered_theme_features 3171 3177 * 3172 * @param string $feature The feature name. 3178 * @param string $feature The feature name. See add_theme_support() for the list 3179 * of possible values. 3173 3180 * @return array|null The registration args, or null if the feature was not registered. 3174 3181 */
Note: See TracChangeset
for help on using the changeset viewer.