mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@48627 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user