From 87cdca8cd61887cd6685c0e11a06e913415524a7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov <sergeybiryukov.ru@gmail.com> Date: Wed, 4 Nov 2020 02:47:05 +0000 Subject: [PATCH] Docs: Change the `@since` entry for `template` and `template_lock` post type arguments to `5.0.0`. These arguments were introduced with the initial block editor, but not documented previously. Follow-up to [49495]. Props TimothyBlynJacobs. See #46261. Built from https://develop.svn.wordpress.org/trunk@49496 git-svn-id: http://core.svn.wordpress.org/trunk@49255 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-post-type.php | 4 ++-- wp-includes/post.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-post-type.php b/wp-includes/class-wp-post-type.php index 38a47bc677..8b8e427e02 100644 --- a/wp-includes/class-wp-post-type.php +++ b/wp-includes/class-wp-post-type.php @@ -271,7 +271,7 @@ final class WP_Post_Type { * * @link https://developer.wordpress.org/block-editor/developers/block-api/block-templates/ * - * @since 5.6.0 + * @since 5.0.0 * @var array $template */ public $template = array(); @@ -288,7 +288,7 @@ final class WP_Post_Type { * * @link https://developer.wordpress.org/block-editor/developers/block-api/block-templates/ * - * @since 5.6.0 + * @since 5.0.0 * @var string|false $template_lock */ public $template_lock = false; diff --git a/wp-includes/post.php b/wp-includes/post.php index a51a75d5d8..c1a829de91 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1294,8 +1294,8 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) * @since 4.6.0 Post type object returned is now an instance of `WP_Post_Type`. * @since 4.7.0 Introduced `show_in_rest`, `rest_base` and `rest_controller_class` * arguments to register the post type in REST API. + * @since 5.0.0 The `template` and `template_lock` arguments were added. * @since 5.3.0 The `supports` argument will now accept an array of arguments for a feature. - * @since 5.6.0 The `template` and `template_lock` arguments were added. * * @global array $wp_post_types List of post types. * diff --git a/wp-includes/version.php b/wp-includes/version.php index ace0d6b9d1..2c5cbc7fc9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta3-49495'; +$wp_version = '5.6-beta3-49496'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.