Commit b164ae0f authored by Sergey Biryukov's avatar Sergey Biryukov
Browse files

REST API: Use a consistent name for the `textdomain` schema property between...

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: https://core.svn.wordpress.org/trunk@48389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent a35d2708
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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.