diff --git a/src/wp-admin/network/menu.php b/src/wp-admin/network/menu.php
index dbd77fd..58d8118 100644
|
a
|
b
|
if ( current_user_can( 'update_core' ) ) { |
| 24 | 24 | |
| 25 | 25 | $update_data = wp_get_update_data(); |
| 26 | 26 | if ( $update_data['counts']['total'] ) { |
| | 27 | /* translators: %s: the number of available updates to plugins */ |
| 27 | 28 | $submenu['index.php'][10] = array( sprintf( __( 'Updates %s' ), "<span class='update-plugins count-{$update_data['counts']['total']}'><span class='update-count'>" . number_format_i18n( $update_data['counts']['total'] ) . '</span></span>' ), $cap, 'update-core.php' ); |
| 28 | 29 | } else { |
| 29 | 30 | $submenu['index.php'][10] = array( __( 'Updates' ), $cap, 'update-core.php' ); |
| … |
… |
$submenu['users.php'][5] = array( __( 'All Users' ), 'manage_network_users', 'u |
| 45 | 46 | $submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'create_users', 'user-new.php' ); |
| 46 | 47 | |
| 47 | 48 | if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) { |
| | 49 | /* translators: %s: the number of available updates to themes */ |
| 48 | 50 | $menu[15] = array( sprintf( __( 'Themes %s' ), "<span class='update-plugins count-{$update_data['counts']['themes']}'><span class='theme-count'>" . number_format_i18n( $update_data['counts']['themes'] ) . '</span></span>' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' ); |
| 49 | 51 | } else { |
| 50 | 52 | $menu[15] = array( __( 'Themes' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' ); |
| … |
… |
$submenu['themes.php'][10] = array( _x( 'Add New', 'theme' ), 'install_themes', |
| 54 | 56 | $submenu['themes.php'][15] = array( __( 'Theme Editor' ), 'edit_themes', 'theme-editor.php' ); |
| 55 | 57 | |
| 56 | 58 | if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) { |
| | 59 | /* translators: %s: the number of available updates to plugins */ |
| 57 | 60 | $menu[20] = array( sprintf( __( 'Plugins %s' ), "<span class='update-plugins count-{$update_data['counts']['plugins']}'><span class='plugin-count'>" . number_format_i18n( $update_data['counts']['plugins'] ) . '</span></span>' ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' ); |
| 58 | 61 | } else { |
| 59 | 62 | $menu[20] = array( __( 'Plugins' ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' ); |
diff --git a/src/wp-admin/network/settings.php b/src/wp-admin/network/settings.php
index a15462a..38bccb1 100644
|
a
|
b
|
if ( isset( $_GET['updated'] ) ) { |
| 207 | 207 | <?php |
| 208 | 208 | if ( is_subdomain_install() ) { |
| 209 | 209 | echo '<p class="description">'; |
| 210 | | /* translators: 1: NOBLOGREDIRECT, 2: wp-config.php */ |
| 211 | 210 | printf( |
| | 211 | /* translators: 1: NOBLOGREDIRECT; 2: wp-config.php */ |
| 212 | 212 | __( 'If registration is disabled, please set %1$s in %2$s to a URL you will redirect visitors to if they visit a non-existent site.' ), |
| 213 | 213 | '<code>NOBLOGREDIRECT</code>', |
| 214 | 214 | '<code>wp-config.php</code>' |
| … |
… |
if ( isset( $_GET['updated'] ) ) { |
| 362 | 362 | <tr> |
| 363 | 363 | <th scope="row"><?php _e( 'Site upload space' ); ?></th> |
| 364 | 364 | <td> |
| | 365 | <?php /* translators: %s: amount of megabytes to limit uploads to */ ?> |
| 365 | 366 | <label><input type="checkbox" id="upload_space_check_disabled" name="upload_space_check_disabled" value="0"<?php checked( (bool) get_site_option( 'upload_space_check_disabled' ), false ); ?>/> <?php printf( __( 'Limit total size of files uploaded to %s MB' ), '</label><label><input name="blog_upload_space" type="number" min="0" style="width: 100px" id="blog_upload_space" aria-describedby="blog-upload-space-desc" value="' . esc_attr( get_site_option( 'blog_upload_space', 100 ) ) . '" />' ); ?></label><br /> |
| 366 | 367 | <p class="screen-reader-text" id="blog-upload-space-desc"> |
| 367 | 368 | <?php _e( 'Size in megabytes' ); ?> |
diff --git a/src/wp-admin/network/site-new.php b/src/wp-admin/network/site-new.php
index 70d9f1c..81802e0 100644
|
a
|
b
|
if ( isset( $_REQUEST['action'] ) && 'add-site' == $_REQUEST['action'] ) { |
| 52 | 52 | |
| 53 | 53 | if ( in_array( $domain, $subdirectory_reserved_names ) ) { |
| 54 | 54 | wp_die( |
| 55 | | /* translators: %s: reserved names list */ |
| 56 | 55 | sprintf( |
| | 56 | /* translators: %s: reserved names list */ |
| 57 | 57 | __( 'The following words are reserved for use by WordPress functions and cannot be used as blog names: %s' ), |
| 58 | 58 | '<code>' . implode( '</code>, <code>', $subdirectory_reserved_names ) . '</code>' |
| 59 | 59 | ) |
diff --git a/src/wp-admin/network/site-themes.php b/src/wp-admin/network/site-themes.php
index 497de2a..b0ee208 100644
|
a
|
b
|
if ( isset( $_GET['enabled'] ) ) { |
| 190 | 190 | if ( 1 == $enabled ) { |
| 191 | 191 | $message = __( 'Theme enabled.' ); |
| 192 | 192 | } else { |
| | 193 | /* translators: %s: amount of themes enabled in the network */ |
| 193 | 194 | $message = _n( '%s theme enabled.', '%s themes enabled.', $enabled ); |
| 194 | 195 | } |
| 195 | 196 | echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>'; |
| … |
… |
if ( isset( $_GET['enabled'] ) ) { |
| 198 | 199 | if ( 1 == $disabled ) { |
| 199 | 200 | $message = __( 'Theme disabled.' ); |
| 200 | 201 | } else { |
| | 202 | /* translators: %s: amount of themes disabled in the network */ |
| 201 | 203 | $message = _n( '%s theme disabled.', '%s themes disabled.', $disabled ); |
| 202 | 204 | } |
| 203 | 205 | echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>'; |
diff --git a/src/wp-admin/network/sites.php b/src/wp-admin/network/sites.php
index 6c2de15..839aac1 100644
|
a
|
b
|
if ( isset( $_GET['action'] ) ) { |
| 61 | 61 | |
| 62 | 62 | // A list of valid actions and their associated messaging for confirmation output. |
| 63 | 63 | $manage_actions = array( |
| | 64 | /* translators: %s: URL of the site about to be activated */ |
| 64 | 65 | 'activateblog' => __( 'You are about to activate the site %s.' ), |
| | 66 | /* translators: %s: URL of the site about to be deactivated */ |
| 65 | 67 | 'deactivateblog' => __( 'You are about to deactivate the site %s.' ), |
| | 68 | /* translators: %s: URL of the site about to be unarchived */ |
| 66 | 69 | 'unarchiveblog' => __( 'You are about to unarchive the site %s.' ), |
| | 70 | /* translators: %s: URL of the site about to be archived */ |
| 67 | 71 | 'archiveblog' => __( 'You are about to archive the site %s.' ), |
| | 72 | /* translators: %s: URL of the site about to be unspammed */ |
| 68 | 73 | 'unspamblog' => __( 'You are about to unspam the site %s.' ), |
| | 74 | /* translators: %s: URL of the site about to be marked as spam */ |
| 69 | 75 | 'spamblog' => __( 'You are about to mark the site %s as spam.' ), |
| | 76 | /* translators: %s: URL of the site about to be deleted */ |
| 70 | 77 | 'deleteblog' => __( 'You are about to delete the site %s.' ), |
| | 78 | /* translators: %s: URL of the site about to be marked as mature */ |
| 71 | 79 | 'unmatureblog' => __( 'You are about to mark the site %s as mature.' ), |
| | 80 | /* translators: %s: URL of the site about to be marked as not mature */ |
| 72 | 81 | 'matureblog' => __( 'You are about to mark the site %s as not mature.' ), |
| 73 | 82 | ); |
| 74 | 83 | |
| … |
… |
if ( isset( $_GET['action'] ) ) { |
| 151 | 160 | if ( ! current_user_can( 'delete_site', $site_id ) ) { |
| 152 | 161 | $site = get_site( $site_id ); |
| 153 | 162 | $site_address = untrailingslashit( $site->domain . $site->path ); |
| 154 | | |
| | 163 | /* translators: %s: URL of the site user is not allowed to delete */ |
| 155 | 164 | wp_die( sprintf( __( 'Sorry, you are not allowed to delete the site %s.' ), $site_address ), 403 ); |
| 156 | 165 | } |
| 157 | 166 | |
diff --git a/src/wp-admin/network/themes.php b/src/wp-admin/network/themes.php
index fbfa8b4..d037874 100644
|
a
|
b
|
if ( isset( $_GET['enabled'] ) ) { |
| 284 | 284 | if ( 1 == $enabled ) { |
| 285 | 285 | $message = __( 'Theme enabled.' ); |
| 286 | 286 | } else { |
| | 287 | /* translators: %s: amount of themes enabled */ |
| 287 | 288 | $message = _n( '%s theme enabled.', '%s themes enabled.', $enabled ); |
| 288 | 289 | } |
| 289 | 290 | echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>'; |
| … |
… |
if ( isset( $_GET['enabled'] ) ) { |
| 292 | 293 | if ( 1 == $disabled ) { |
| 293 | 294 | $message = __( 'Theme disabled.' ); |
| 294 | 295 | } else { |
| | 296 | /* translators: %s: amount of themes disabled */ |
| 295 | 297 | $message = _n( '%s theme disabled.', '%s themes disabled.', $disabled ); |
| 296 | 298 | } |
| 297 | 299 | echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>'; |
| … |
… |
if ( isset( $_GET['enabled'] ) ) { |
| 300 | 302 | if ( 1 == $deleted ) { |
| 301 | 303 | $message = __( 'Theme deleted.' ); |
| 302 | 304 | } else { |
| | 305 | /* translators: %s: amount of themes deleted */ |
| 303 | 306 | $message = _n( '%s theme deleted.', '%s themes deleted.', $deleted ); |
| 304 | 307 | } |
| 305 | 308 | echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $deleted ) ) . '</p></div>'; |
diff --git a/src/wp-admin/network/users.php b/src/wp-admin/network/users.php
index 3ae8f6f..e9b6c07 100644
|
a
|
b
|
if ( isset( $_GET['action'] ) ) { |
| 71 | 71 | case 'spam': |
| 72 | 72 | $user = get_userdata( $user_id ); |
| 73 | 73 | if ( is_super_admin( $user->ID ) ) { |
| | 74 | /* translators: %s: user login name being modified */ |
| 74 | 75 | wp_die( sprintf( __( 'Warning! User cannot be modified. The user %s is a network administrator.' ), esc_html( $user->user_login ) ) ); |
| 75 | 76 | } |
| 76 | 77 | |