Make WordPress Core

Changeset 57573

Timestamp:
02/09/2024 04:15:08 AM (6 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
     2616
    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
    26192622 * @since 6.0.0 The `html5` feature warns if no array is passed as the second parameter.
     2623
     2624
     2625
     2626
    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
     2638
     2639
    26302640 *                          - 'core-block-patterns'
    26312641 *                          - 'custom-background'
     
    26392649 *                          - 'disable-custom-colors'
    26402650 *                          - 'disable-custom-font-sizes'
     2651
     2652
    26412653 *                          - 'editor-color-palette'
    26422654 *                          - 'editor-gradient-presets'
     
    26452657 *                          - 'featured-content'
    26462658 *                          - 'html5'
     2659
    26472660 *                          - 'menus'
    26482661 *                          - 'post-formats'
     
    26512664 *                          - 'starter-content'
    26522665 *                          - 'title-tag'
    2653  *                          - 'wp-block-styles'
    26542666 *                          - 'widgets'
    26552667 *                          - 'widgets-block-editor'
     2668
    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.