Make WordPress Core


Ignore:
Timestamp:
12/03/2016 05:38:38 AM (8 years ago)
Author:
nacin
Message:

REST API: Register the admin_email setting in single site only.

fixes #38990.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/option.php

    r39468 r39470  
    17511751    }
    17521752
    1753     register_setting( 'general', 'admin_email', array(
    1754         'show_in_rest' => array(
    1755             'name'    => 'email',
    1756             'schema'  => array(
    1757                 'format' => 'email',
     1753    if ( ! is_multisite() ) {
     1754        register_setting( 'general', 'admin_email', array(
     1755            'show_in_rest' => array(
     1756                'name'    => 'email',
     1757                'schema'  => array(
     1758                    'format' => 'email',
     1759                ),
    17581760            ),
    1759         ),
    1760         'type'         => 'string',
    1761         '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.' ),
    1762     ) );
     1761            'type'         => 'string',
     1762            'description'  => __( 'This address is used for admin purposes, like new user notification.' ),
     1763        ) );
     1764    }
    17631765
    17641766    register_setting( 'general', 'timezone_string', array(
Note: See TracChangeset for help on using the changeset viewer.