REST API: Register the admin_email setting in single site only.
fixes #38990. git-svn-id: https://develop.svn.wordpress.org/trunk@39470 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
55e972cab3
commit
ceee0b78e1
|
@ -1750,6 +1750,7 @@ function register_initial_settings() {
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ! is_multisite() ) {
|
||||||
register_setting( 'general', 'admin_email', array(
|
register_setting( 'general', 'admin_email', array(
|
||||||
'show_in_rest' => array(
|
'show_in_rest' => array(
|
||||||
'name' => 'email',
|
'name' => 'email',
|
||||||
|
@ -1758,8 +1759,9 @@ function register_initial_settings() {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'description' => is_multisite() ? __( 'This address is used for admin purposes. If you change this we will send you an email at your new address to confirm it. The new address will not become active until confirmed.' ) : __( 'This address is used for admin purposes, like new user notification.' ),
|
'description' => __( 'This address is used for admin purposes, like new user notification.' ),
|
||||||
) );
|
) );
|
||||||
|
}
|
||||||
|
|
||||||
register_setting( 'general', 'timezone_string', array(
|
register_setting( 'general', 'timezone_string', array(
|
||||||
'show_in_rest' => array(
|
'show_in_rest' => array(
|
||||||
|
|
Loading…
Reference in New Issue