Changeset 39472
- Timestamp:
- 12/03/2016 05:41:52 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
- Property svn:mergeinfo changed
/trunk merged: 39470-39471
- Property svn:mergeinfo changed
-
branches/4.7/src/wp-includes/option.php
r39469 r39472 1751 1751 } 1752 1752 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 ), 1758 1760 ), 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 } 1763 1765 1764 1766 register_setting( 'general', 'timezone_string', array( -
branches/4.7/tests/phpunit/tests/rest-api/rest-settings-controller.php
r39469 r39472 55 55 'title', 56 56 'description', 57 'url',58 'email',59 57 'timezone', 60 58 'date_format', … … 70 68 ); 71 69 72 if ( is_multisite() ) { 73 $expected = array_diff( $expected, array( 'url' ) ); 70 if ( ! is_multisite() ) { 71 $expected[] = 'url'; 72 $expected[] = 'email'; 74 73 } 75 74
Note: See TracChangeset
for help on using the changeset viewer.