mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Docs: Add @since notes for html5 theme feature changes in add_theme_support():
* As of WordPress 3.6.1, the `html5` feature requires an array of types to be passed. Defaults to `comment-list`, `comment-form`, `search-form` for backward compatibility. * As of WordPress 6.0, the previously added `_doing_it_wrong()` notice is actually displayed as expected. Follow-up to [25193], [25235], [25785], [49344], [49354], [52828]. Props bobbingwide. See #51657, #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@53513 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
43879c01f6
commit
17554d89aa
@ -2523,6 +2523,8 @@ function get_theme_starter_content() {
|
||||
* @since 2.9.0
|
||||
* @since 3.4.0 The `custom-header-uploads` feature was deprecated.
|
||||
* @since 3.6.0 The `html5` feature was added.
|
||||
* @since 3.6.1 The `html5` feature requires an array of types to be passed. Defaults to
|
||||
* 'comment-list', 'comment-form', 'search-form' for backward compatibility.
|
||||
* @since 3.9.0 The `html5` feature now also accepts 'gallery' and 'caption'.
|
||||
* @since 4.1.0 The `title-tag` feature was added.
|
||||
* @since 4.5.0 The `customize-selective-refresh-widgets` feature was added.
|
||||
@ -2535,8 +2537,9 @@ function get_theme_starter_content() {
|
||||
* by adding it to the function signature.
|
||||
* @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.
|
||||
* @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 6.0.0 The `html5` feature warns if no array is passed as the second parameter.
|
||||
*
|
||||
* @global array $_wp_theme_features
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user