From 2a1e9e1dd8b10f79612155d2110ea55802c7b533 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 16 Jun 2022 15:21:15 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@53513 git-svn-id: http://core.svn.wordpress.org/trunk@53102 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 5 ++++- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 2e7e1dbbb8..ee544e25dc 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -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 * diff --git a/wp-includes/version.php b/wp-includes/version.php index 946f6ecc36..eb876ae45c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53512'; +$wp_version = '6.1-alpha-53513'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.