Make WordPress Core

Changeset 57573


Ignore:
Timestamp:
02/09/2024 04:15:08 AM (7 months ago)
Author:
isabel_brison
Message:

Themes: update add_theme_support docblock.

Adds missing features to the list for the $feature parameter in add_theme_support().

Props up1512001, mukesh27, swissspidy, isabel_brison.
Fixes #60221.

File:
1 edited

Legend:

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

    r57256 r57573  
    26132613 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
    26142614 *              by adding it to the function signature.
     2615 * @since 5.4.0 The `disable-custom-gradients` feature limits to default gradients or gradients added
     2616 *              through `editor-gradient-presets` theme support.
    26152617 * @since 5.5.0 The `core-block-patterns` feature was added and is enabled by default.
    26162618 * @since 5.5.0 The `custom-logo` feature now also accepts 'unlink-homepage-logo'.
    26172619 * @since 5.6.0 The `post-formats` feature warns if no array is passed as the second parameter.
    26182620 * @since 5.8.0 The `widgets-block-editor` feature enables the Widgets block editor.
     2621 * @since 5.8.0 The `block-templates` feature indicates whether a theme uses block-based templates.
    26192622 * @since 6.0.0 The `html5` feature warns if no array is passed as the second parameter.
     2623 * @since 6.1.0 The `block-template-parts` feature allows to edit any reusable template part from site editor.
     2624 * @since 6.1.0 The `disable-layout-styles` feature disables the default layout styles.
     2625 * @since 6.3.0 The `link-color` feature allows to enable the link color setting.
     2626 * @since 6.3.0 The `border` feature allows themes without theme.json to add border styles to blocks.
    26202627 * @since 6.5.0 The `appearance-tools` feature enables a few design tools for blocks,
    26212628 *              see `WP_Theme_JSON::APPEARANCE_TOOLS_OPT_INS` for a complete list.
     
    26282635 *                          - 'appearance-tools'
    26292636 *                          - 'automatic-feed-links'
     2637 *                          - 'block-templates'
     2638 *                          - 'block-template-parts'
     2639 *                          - 'border'
    26302640 *                          - 'core-block-patterns'
    26312641 *                          - 'custom-background'
     
    26392649 *                          - 'disable-custom-colors'
    26402650 *                          - 'disable-custom-font-sizes'
     2651 *                          - 'disable-custom-gradients'
     2652 *                          - 'disable-layout-styles'
    26412653 *                          - 'editor-color-palette'
    26422654 *                          - 'editor-gradient-presets'
     
    26452657 *                          - 'featured-content'
    26462658 *                          - 'html5'
     2659 *                          - 'link-color'
    26472660 *                          - 'menus'
    26482661 *                          - 'post-formats'
     
    26512664 *                          - 'starter-content'
    26522665 *                          - 'title-tag'
    2653  *                          - 'wp-block-styles'
    26542666 *                          - 'widgets'
    26552667 *                          - 'widgets-block-editor'
     2668 *                          - 'wp-block-styles'
    26562669 * @param mixed  ...$args Optional extra arguments to pass along with certain features.
    26572670 * @return void|false Void on success, false on failure.
Note: See TracChangeset for help on using the changeset viewer.