mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-10 13:49:12 +01:00
REST API: Consolidate menu item type_label
schema declaration.
This changeset removes a duplicate definition of the `type_label` property and consolidates the description of this property. Props dlh, SergeyBiryukov. Fixes #56072. Built from https://develop.svn.wordpress.org/trunk@53678 git-svn-id: http://core.svn.wordpress.org/trunk@53237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b5a14f47bb
commit
e17247c78b
@ -745,7 +745,7 @@ class WP_REST_Menu_Items_Controller extends WP_REST_Posts_Controller {
|
||||
);
|
||||
|
||||
$schema['properties']['type_label'] = array(
|
||||
'description' => __( 'Name of type.' ),
|
||||
'description' => __( 'The singular label used to describe this type of menu item.' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit', 'embed' ),
|
||||
'readonly' => true,
|
||||
@ -842,13 +842,6 @@ class WP_REST_Menu_Items_Controller extends WP_REST_Posts_Controller {
|
||||
),
|
||||
);
|
||||
|
||||
$schema['properties']['type_label'] = array(
|
||||
'description' => __( 'The singular label used to describe this type of menu item.' ),
|
||||
'context' => array( 'view', 'edit', 'embed' ),
|
||||
'type' => 'string',
|
||||
'readonly' => true,
|
||||
);
|
||||
|
||||
$schema['properties']['url'] = array(
|
||||
'description' => __( 'The URL to which this menu item points.' ),
|
||||
'type' => 'string',
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-alpha-53677';
|
||||
$wp_version = '6.1-alpha-53678';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user