REST API: Register the admin_email setting in single site only.
See [39470]. This time including unit test changes. fixes #38990. git-svn-id: https://develop.svn.wordpress.org/trunk@39471 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ceee0b78e1
commit
4b2cbf6ac3
@ -54,8 +54,6 @@ class WP_Test_REST_Settings_Controller extends WP_Test_REST_Controller_Testcase
|
|||||||
$expected = array(
|
$expected = array(
|
||||||
'title',
|
'title',
|
||||||
'description',
|
'description',
|
||||||
'url',
|
|
||||||
'email',
|
|
||||||
'timezone',
|
'timezone',
|
||||||
'date_format',
|
'date_format',
|
||||||
'time_format',
|
'time_format',
|
||||||
@ -69,8 +67,9 @@ class WP_Test_REST_Settings_Controller extends WP_Test_REST_Controller_Testcase
|
|||||||
'default_comment_status',
|
'default_comment_status',
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( is_multisite() ) {
|
if ( ! is_multisite() ) {
|
||||||
$expected = array_diff( $expected, array( 'url' ) );
|
$expected[] = 'url';
|
||||||
|
$expected[] = 'email';
|
||||||
}
|
}
|
||||||
|
|
||||||
sort( $expected );
|
sort( $expected );
|
||||||
|
Loading…
Reference in New Issue
Block a user