Skip to content

Commit

Permalink
Update: Followups to the template and template_lock rest api addition. (
Browse files Browse the repository at this point in the history
#62696)

Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
  • Loading branch information
3 people committed Jun 20, 2024
1 parent 5fbf9d0 commit b3fc5b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions backport-changelog/6.6/6864.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
https://github.com/WordPress/wordpress-develop/pull/6864

* https://github.com/WordPress/gutenberg/pull/62488
* https://github.com/WordPress/gutenberg/pull/62696
4 changes: 2 additions & 2 deletions lib/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function gutenberg_register_wp_rest_post_types_controller_fields() {
},
'schema' => array(
'type' => 'array',
'description' => __( 'The template associated with the post type.', 'gutenberg' ),
'description' => __( 'The block template associated with the post type, if it exists.', 'gutenberg' ),
'readonly' => true,
'context' => array( 'view', 'edit', 'embed' ),
),
Expand All @@ -67,7 +67,7 @@ function gutenberg_register_wp_rest_post_types_controller_fields() {
'schema' => array(
'type' => 'string',
'enum' => array( 'all', 'insert', 'contentOnly' ),
'description' => __( 'The template_lock specified for the post type.', 'gutenberg' ),
'description' => __( 'The template_lock associated with the post type, if any.', 'gutenberg' ),
'readonly' => true,
'context' => array( 'view', 'edit', 'embed' ),
),
Expand Down

0 comments on commit b3fc5b4

Please sign in to comment.