Make WordPress Core


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

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

See [39470]. This time including unit test changes.

fixes #38990.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-settings-controller.php

    r39468 r39471  
    5555            'title',
    5656            'description',
    57             'url',
    58             'email',
    5957            'timezone',
    6058            'date_format',
     
    7068        );
    7169
    72         if ( is_multisite() ) {
    73             $expected = array_diff( $expected, array( 'url' ) );
     70        if ( ! is_multisite() ) {
     71            $expected[] = 'url';
     72            $expected[] = 'email';
    7473        }
    7574
Note: See TracChangeset for help on using the changeset viewer.