REST API: Use a consistent name for the textdomain schema property between plugins, themes, and block directory controllers.

Follow-up to [48242].

See #50321, #50776.
Built from https://develop.svn.wordpress.org/trunk@48627


git-svn-id: http://core.svn.wordpress.org/trunk@48389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-07-26 21:49:03 +00:00
parent 61b2cb7761
commit e7eaaa97b1
2 changed files with 3 additions and 3 deletions

View File

@ -548,7 +548,7 @@ class WP_REST_Plugins_Controller extends WP_REST_Controller {
'network_only' => $item['Network'],
'requires_wp' => $item['RequiresWP'],
'requires_php' => $item['RequiresPHP'],
'text_domain' => $item['TextDomain'],
'textdomain' => $item['TextDomain'],
);
$data = $this->add_additional_fields_to_object( $data, $request );
@ -908,7 +908,7 @@ class WP_REST_Plugins_Controller extends WP_REST_Controller {
'readonly' => true,
'context' => array( 'view', 'edit', 'embed' ),
),
'text_domain' => array(
'textdomain' => array(
'description' => __( 'The plugin\'s text domain.' ),
'type' => 'string',
'readonly' => true,

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-beta3-48626';
$wp_version = '5.5-beta3-48627';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.