mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@49496 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1d2ecc5b6e
commit
da97d6779a
@ -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;
|
||||
|
||||
@ -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.
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user