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.


Built from https://develop.svn.wordpress.org/trunk@57573


git-svn-id: http://core.svn.wordpress.org/trunk@57074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
isabel_brison 2024-02-09 04:17:13 +00:00
parent 962f2a1508
commit 1739bae7a8
2 changed files with 15 additions and 2 deletions

View File

@ -2612,11 +2612,18 @@ function get_theme_starter_content() {
* @since 5.3.0 The `html5` feature now also accepts 'script' and 'style'.
* @since 5.3.0 Formalized the existing and already documented `...$args` parameter
* by adding it to the function signature.
* @since 5.4.0 The `disable-custom-gradients` feature limits to default gradients or gradients added
* through `editor-gradient-presets` theme support.
* @since 5.5.0 The `core-block-patterns` feature was added and is enabled by default.
* @since 5.5.0 The `custom-logo` feature now also accepts 'unlink-homepage-logo'.
* @since 5.6.0 The `post-formats` feature warns if no array is passed as the second parameter.
* @since 5.8.0 The `widgets-block-editor` feature enables the Widgets block editor.
* @since 5.8.0 The `block-templates` feature indicates whether a theme uses block-based templates.
* @since 6.0.0 The `html5` feature warns if no array is passed as the second parameter.
* @since 6.1.0 The `block-template-parts` feature allows to edit any reusable template part from site editor.
* @since 6.1.0 The `disable-layout-styles` feature disables the default layout styles.
* @since 6.3.0 The `link-color` feature allows to enable the link color setting.
* @since 6.3.0 The `border` feature allows themes without theme.json to add border styles to blocks.
* @since 6.5.0 The `appearance-tools` feature enables a few design tools for blocks,
* see `WP_Theme_JSON::APPEARANCE_TOOLS_OPT_INS` for a complete list.
*
@ -2627,6 +2634,9 @@ function get_theme_starter_content() {
* - 'align-wide'
* - 'appearance-tools'
* - 'automatic-feed-links'
* - 'block-templates'
* - 'block-template-parts'
* - 'border'
* - 'core-block-patterns'
* - 'custom-background'
* - 'custom-header'
@ -2638,21 +2648,24 @@ function get_theme_starter_content() {
* - 'dark-editor-style'
* - 'disable-custom-colors'
* - 'disable-custom-font-sizes'
* - 'disable-custom-gradients'
* - 'disable-layout-styles'
* - 'editor-color-palette'
* - 'editor-gradient-presets'
* - 'editor-font-sizes'
* - 'editor-styles'
* - 'featured-content'
* - 'html5'
* - 'link-color'
* - 'menus'
* - 'post-formats'
* - 'post-thumbnails'
* - 'responsive-embeds'
* - 'starter-content'
* - 'title-tag'
* - 'wp-block-styles'
* - 'widgets'
* - 'widgets-block-editor'
* - 'wp-block-styles'
* @param mixed ...$args Optional extra arguments to pass along with certain features.
* @return void|false Void on success, false on failure.
*/

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.5-alpha-57572';
$wp_version = '6.5-alpha-57573';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.