mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-24 21:24:34 +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:
@@ -977,7 +977,7 @@ class WP_REST_Plugins_Controller_Test extends WP_Test_REST_Controller_Testcase {
|
||||
$this->assertArrayHasKey( 'network_only', $properties );
|
||||
$this->assertArrayHasKey( 'requires_wp', $properties );
|
||||
$this->assertArrayHasKey( 'requires_php', $properties );
|
||||
$this->assertArrayHasKey( 'text_domain', $properties );
|
||||
$this->assertArrayHasKey( 'textdomain', $properties );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1001,7 +1001,7 @@ class WP_REST_Plugins_Controller_Test extends WP_Test_REST_Controller_Testcase {
|
||||
$this->assertEquals( $network_only, $data['network_only'] );
|
||||
$this->assertEquals( '5.6.0', $data['requires_php'] );
|
||||
$this->assertEquals( '5.4.0', $data['requires_wp'] );
|
||||
$this->assertEquals( 'test-plugin', $data['text_domain'] );
|
||||
$this->assertEquals( 'test-plugin', $data['textdomain'] );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user