Make WordPress Core

Ticket #37593: 37593.7.patch

File 37593.7.patch, 41.4 KB (added by Mista-Flo, 9 years ago)

Fix capitalize strings

  • wp-admin/includes/class-wp-ms-users-list-table.php

    diff --git wp-admin/includes/class-wp-ms-users-list-table.php wp-admin/includes/class-wp-ms-users-list-table.php
    index da00131..b298909 100644
    class WP_MS_Users_List_Table extends WP_List_Table { 
    139139                $role_links = array();
    140140                $role_links['all'] = "<a href='" . network_admin_url('users.php') . "'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users, 'users' ), number_format_i18n( $total_users ) ) . '</a>';
    141141                $class = $role === 'super' ? ' class="current"' : '';
    142                 $role_links['super'] = "<a href='" . network_admin_url('users.php?role=super') . "'$class>" . sprintf( _n( 'Super Admin <span class="count">(%s)</span>', 'Super Admins <span class="count">(%s)</span>', $total_admins ), number_format_i18n( $total_admins ) ) . '</a>';
     142                $role_links['super'] = "<a href='" . network_admin_url('users.php?role=super') . "'$class>" . sprintf( _n( 'Network administrator <span class="count">(%s)</span>', 'Network administrators <span class="count">(%s)</span>', $total_admins ), number_format_i18n( $total_admins ) ) . '</a>';
    143143
    144144                return $role_links;
    145145        }
    class WP_MS_Users_List_Table extends WP_List_Table { 
    242242
    243243                ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php
    244244                if ( in_array( $user->user_login, $super_admins ) ) {
    245                         echo ' - ' . __( 'Super Admin' );
     245                        echo ' - ' . __( 'Network Administrator' );
    246246                }
    247247                ?></strong>
    248248        <?php
  • wp-admin/includes/network.php

    diff --git wp-admin/includes/network.php wp-admin/includes/network.php
    index fef6b66..32b3231 100644
    function network_step1( $errors = false ) { 
    310310                                </td>
    311311                        </tr>
    312312                        <tr>
    313                                 <th scope='row'><?php esc_html_e( 'Network Admin Email' ); ?></th>
     313                                <th scope='row'><?php esc_html_e( 'Network Administrator Email' ); ?></th>
    314314                                <td>
    315315                                        <input name='email' type='text' size='45' value='<?php echo esc_attr( $admin_email ); ?>' />
    316316                                        <p class="description">
  • wp-admin/network/settings.php

    diff --git wp-admin/network/settings.php wp-admin/network/settings.php
    index 80c6c33..76925e5 100644
    get_current_screen()->add_help_tab( array( 
    3131                        '<p>' . __('New site settings are defaults applied when a new site is created in the network. These include welcome email for when a new site or user account is registered, and what&#8127;s put in the first post, page, comment, comment author, and comment URL.') . '</p>' .
    3232                        '<p>' . __('Upload settings control the size of the uploaded files and the amount of available upload space for each site. You can change the default value for specific sites when you edit a particular site. Allowed file types are also listed (space separated only).') . '</p>' .
    3333                        '<p>' . __( 'You can set the language, and the translation files will be automatically downloaded and installed (available if your filesystem is writable).' ) . '</p>' .
    34                         '<p>' . __('Menu setting enables/disables the plugin menus from appearing for non super admins, so that only super admins, not site admins, have access to activate plugins.') . '</p>' .
    35                         '<p>' . __('Super admins can no longer be added on the Options screen. You must now go to the list of existing users on Network Admin > Users and click on Username or the Edit action link below that name. This goes to an Edit User page where you can check a box to grant super admin privileges.') . '</p>'
     34                        '<p>' . __('Menu setting enables/disables the plugin menus from appearing for site administrators, so that only network administrators have access to activate plugins.') . '</p>' .
     35                        '<p>' . __('Network administrators can no longer be added on the Options screen. You must now go to the list of existing users on Network Admin > Users and click on Username or the Edit action link below that name. This goes to an Edit User page where you can check a box to grant network administrator privileges.') . '</p>'
    3636) );
    3737
    3838get_current_screen()->set_help_sidebar(
    if ( isset( $_GET['updated'] ) ) { 
    109109                        </tr>
    110110
    111111                        <tr>
    112                                 <th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></th>
     112                                <th scope="row"><label for="admin_email"><?php _e( 'Network Administrator Email' ) ?></label></th>
    113113                                <td>
    114114                                        <input name="admin_email" type="email" id="admin_email" aria-describedby="admin-email-desc" class="regular-text" value="<?php echo esc_attr( get_site_option( 'admin_email' ) ) ?>" />
    115115                                        <p class="description" id="admin-email-desc">
    if ( isset( $_GET['updated'] ) ) { 
    154154                                        update_site_option( 'registrationnotification', 'yes' );
    155155                                ?>
    156156                                <td>
    157                                         <label><input name="registrationnotification" type="checkbox" id="registrationnotification" value="yes"<?php checked( get_site_option( 'registrationnotification' ), 'yes' ) ?> /> <?php _e( 'Send the network admin an email notification every time someone registers a site or user account.' ) ?></label>
     157                                        <label><input name="registrationnotification" type="checkbox" id="registrationnotification" value="yes"<?php checked( get_site_option( 'registrationnotification' ), 'yes' ) ?> /> <?php _e( 'Send the network administrator an email notification every time someone registers a site or user account.' ) ?></label>
    158158                                </td>
    159159                        </tr>
    160160
  • wp-admin/network/site-info.php

    diff --git wp-admin/network/site-info.php wp-admin/network/site-info.php
    index 405e63f..3555fb5 100644
    get_current_screen()->add_help_tab( array( 
    1919        'title'   => __( 'Overview' ),
    2020        'content' =>
    2121                '<p>' . __( 'The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.' ) . '</p>' .
    22                 '<p>' . __( '<strong>Info</strong> &mdash; The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.' ) . '</p>' .
     22                '<p>' . __( '<strong>Info</strong> &mdash; The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network administrators can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.' ) . '</p>' .
    2323                '<p>' . __( '<strong>Users</strong> &mdash; This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.' ) . '</p>' .
    2424                '<p>' . sprintf( __( '<strong>Themes</strong> &mdash; This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site&#8217;s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' .
    2525                '<p>' . __( '<strong>Settings</strong> &mdash; This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.' ) . '</p>'
  • wp-admin/network/site-new.php

    diff --git wp-admin/network/site-new.php wp-admin/network/site-new.php
    index a44064c..b60d669 100644
    get_current_screen()->add_help_tab( array( 
    2020        'id'      => 'overview',
    2121        'title'   => __('Overview'),
    2222        'content' =>
    23                 '<p>' . __('This screen is for Super Admins to add new sites to the network. This is not affected by the registration settings.') . '</p>' .
     23                '<p>' . __('This screen is for network administrators to add new sites. This is not affected by the registration settings.') . '</p>' .
    2424                '<p>' . __('If the admin email for the new site does not exist in the database, a new user will also be created.') . '</p>'
    2525) );
    2626
  • wp-admin/network/site-settings.php

    diff --git wp-admin/network/site-settings.php wp-admin/network/site-settings.php
    index 8e8cd24..7a432d3 100644
    get_current_screen()->add_help_tab( array( 
    1818        'title'   => __('Overview'),
    1919        'content' =>
    2020                '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' .
    21                 '<p>' . __('<strong>Info</strong> &mdash; The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' .
     21                '<p>' . __('<strong>Info</strong> &mdash; The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network administrators can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' .
    2222                '<p>' . __('<strong>Users</strong> &mdash; This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.') . '</p>' .
    2323                '<p>' . sprintf( __('<strong>Themes</strong> &mdash; This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site&#8217;s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' .
    2424                '<p>' . __('<strong>Settings</strong> &mdash; This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.') . '</p>'
  • wp-admin/network/site-themes.php

    diff --git wp-admin/network/site-themes.php wp-admin/network/site-themes.php
    index ec2b1d8..8c2fdaf 100644
    get_current_screen()->add_help_tab( array( 
    1818        'title'   => __('Overview'),
    1919        'content' =>
    2020                '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' .
    21                 '<p>' . __('<strong>Info</strong> &mdash; The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' .
     21                '<p>' . __('<strong>Info</strong> &mdash; The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network administrators can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' .
    2222                '<p>' . __('<strong>Users</strong> &mdash; This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.') . '</p>' .
    2323                '<p>' . sprintf( __('<strong>Themes</strong> &mdash; This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site&#8217;s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' .
    2424                '<p>' . __('<strong>Settings</strong> &mdash; This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.') . '</p>'
  • wp-admin/network/site-users.php

    diff --git wp-admin/network/site-users.php wp-admin/network/site-users.php
    index 5c869eb..31a110b 100644
    get_current_screen()->add_help_tab( array( 
    2121        'title'   => __('Overview'),
    2222        'content' =>
    2323                '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' .
    24                 '<p>' . __('<strong>Info</strong> &mdash; The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' .
     24                '<p>' . __('<strong>Info</strong> &mdash; The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network administrators can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' .
    2525                '<p>' . __('<strong>Users</strong> &mdash; This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.') . '</p>' .
    2626                '<p>' . sprintf( __('<strong>Themes</strong> &mdash; This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site&#8217;s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' .
    2727                '<p>' . __('<strong>Settings</strong> &mdash; This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.') . '</p>'
  • wp-admin/network/themes.php

    diff --git wp-admin/network/themes.php wp-admin/network/themes.php
    index d6e4e95..c19c373 100644
    get_current_screen()->add_help_tab( array( 
    231231        'title'   => __('Overview'),
    232232        'content' =>
    233233                '<p>' . __('This screen enables and disables the inclusion of themes available to choose in the Appearance menu for each site. It does not activate or deactivate which theme a site is currently using.') . '</p>' .
    234                 '<p>' . __('If the network admin disables a theme that is in use, it can still remain selected on that site. If another theme is chosen, the disabled theme will not appear in the site&#8217;s Appearance > Themes screen.') . '</p>' .
    235                 '<p>' . __('Themes can be enabled on a site by site basis by the network admin on the Edit Site screen (which has a Themes tab); get there via the Edit action link on the All Sites screen. Only network admins are able to install or edit themes.') . '</p>'
     234                '<p>' . __('If the network administrator disables a theme that is in use, it can still remain selected on that site. If another theme is chosen, the disabled theme will not appear in the site&#8217;s Appearance > Themes screen.') . '</p>' .
     235                '<p>' . __('Themes can be enabled on a site by site basis by the network administrator on the Edit Site screen (which has a Themes tab); get there via the Edit action link on the All Sites screen. Only network administrators are able to install or edit themes.') . '</p>'
    236236) );
    237237
    238238get_current_screen()->set_help_sidebar(
  • wp-admin/network/users.php

    diff --git wp-admin/network/users.php wp-admin/network/users.php
    index 0d74664..c070e80 100644
    get_current_screen()->add_help_tab( array( 
    182182                '<p>' . __('You can also go to the user&#8217;s profile page by clicking on the individual username.') . '</p>' .
    183183                '<p>' . __( 'You can sort the table by clicking on any of the table headings and switch between list and excerpt views by using the icons above the users list.' ) . '</p>' .
    184184                '<p>' . __('The bulk action will permanently delete selected users, or mark/unmark those selected as spam. Spam users will have posts removed and will be unable to sign up again with the same email addresses.') . '</p>' .
    185                 '<p>' . __('You can make an existing user an additional super admin by going to the Edit User profile page and checking the box to grant that privilege.') . '</p>'
     185                '<p>' . __('You can make an existing user an additional network administrator by going to the Edit User profile page and checking the box to grant that privilege.') . '</p>'
    186186) );
    187187
    188188get_current_screen()->set_help_sidebar(
  • wp-admin/user-edit.php

    diff --git wp-admin/user-edit.php wp-admin/user-edit.php
    index b97cddd..851b09f 100644
    include(ABSPATH . 'wp-admin/admin-header.php'); 
    171171?>
    172172
    173173<?php if ( !IS_PROFILE_PAGE && is_super_admin( $profileuser->ID ) && current_user_can( 'manage_network_options' ) ) { ?>
    174         <div class="updated"><p><strong><?php _e('Important:'); ?></strong> <?php _e('This user has super admin privileges.'); ?></p></div>
     174        <div class="updated"><p><strong><?php _e('Important:'); ?></strong> <?php _e('This user has network administrator privileges.'); ?></p></div>
    175175<?php } ?>
    176176<?php if ( isset($_GET['updated']) ) : ?>
    177177<div id="message" class="updated notice is-dismissible">
    else 
    325325<?php endif; //!IS_PROFILE_PAGE
    326326
    327327if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && !isset($super_admins) ) { ?>
    328 <tr class="user-super-admin-wrap"><th><?php _e('Super Admin'); ?></th>
     328<tr class="user-super-admin-wrap"><th><?php _e('Network Administrator'); ?></th>
    329329<td>
    330330<?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) || ! is_super_admin( $profileuser->ID ) ) : ?>
    331 <p><label><input type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( $profileuser->ID ) ); ?> /> <?php _e( 'Grant this user super admin privileges for the Network.' ); ?></label></p>
     331<p><label><input type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( $profileuser->ID ) ); ?> /> <?php _e( 'Grant this user network administrator privileges for the Network.' ); ?></label></p>
    332332<?php else : ?>
    333 <p><?php _e( 'Super admin privileges cannot be removed because this user has the network admin email.' ); ?></p>
     333<p><?php _e( 'Network administrator privileges cannot be removed because this user has the network admin email.' ); ?></p>
    334334<?php endif; ?>
    335335</td></tr>
    336336<?php } ?>
  • wp-admin/user-new.php

    diff --git wp-admin/user-new.php wp-admin/user-new.php
    index 10cbdd3..92753ec 100644
    if ( is_multisite() && current_user_can('promote_users') && current_user_can('cr 
    172172$help = '<p>' . __('To add a new user to your site, fill in the form on this screen and click the Add New User button at the bottom.') . '</p>';
    173173
    174174if ( is_multisite() ) {
    175         $help .= '<p>' . __('Because this is a multisite installation, you may add accounts that already exist on the Network by specifying a username or email, and defining a role. For more options, such as specifying a password, you have to be a Network Administrator and use the hover link under an existing user&#8217;s name to Edit the user profile under Network Admin > All Users.') . '</p>' .
     175        $help .= '<p>' . __('Because this is a multisite installation, you may add accounts that already exist on the Network by specifying a username or email, and defining a role. For more options, such as specifying a password, you have to be a network administrator and use the hover link under an existing user&#8217;s name to Edit the user profile under Network Admin > All Users.') . '</p>' .
    176176        '<p>' . __('New users will receive an email letting them know they&#8217;ve been added as a user for your site. This email will also contain their password. Check the box if you don&#8217;t want the user to receive a welcome email.') . '</p>';
    177177} else {
    178178        $help .= '<p>' . __('New users are automatically assigned a password, which they can change after logging in. You can view or edit the assigned password by clicking the Show Password button. The username cannot be changed once the user has been added.') . '</p>' .