REST API: Correct the `admin_email` setting description for single site installs.

Display different descriptions for multisite or single site installations.

Props johnbillion, ocean90.
Fixes #38990.

Built from https://develop.svn.wordpress.org/trunk@39406


git-svn-id: http://core.svn.wordpress.org/trunk@39346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Rachel Baker 2016-12-01 03:03:43 +00:00
parent bfdb5f5cd4
commit 1448bfc96f
2 changed files with 2 additions and 2 deletions

View File

@ -1756,7 +1756,7 @@ function register_initial_settings() {
),
),
'type' => 'string',
'description' => __( '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.' ),
'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.' ),
) );
register_setting( 'general', 'timezone_string', array(

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-39404';
$wp_version = '4.8-alpha-39406';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.