Changeset 45926 for trunk/src/wp-admin/includes/ms.php
- Timestamp:
- 09/01/2019 05:12:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r45734 r45926 580 580 581 581 if ( empty( $blogs ) ) { 582 wp_die( sprintf( __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ), 403 ); 583 } 584 585 $output = '<p>' . sprintf( __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ) . '</p>'; 582 wp_die( 583 sprintf( 584 /* translators: 1: Site title */ 585 __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), 586 $blog_name 587 ), 588 403 589 ); 590 } 591 592 $output = '<p>' . sprintf( 593 /* translators: 1: Site title */ 594 __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), 595 $blog_name 596 ) . '</p>'; 586 597 $output .= '<p>' . __( 'If you reached this screen by accident and meant to visit one of your own sites, here are some shortcuts to help you find your way.' ) . '</p>'; 587 598 … … 691 702 692 703 if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version ) { 693 echo "<div class='update-nag'>" . sprintf( __( 'Thank you for Updating! Please visit the <a href="%s">Upgrade Network</a> page to update all your sites.' ), esc_url( network_admin_url( 'upgrade.php' ) ) ) . '</div>'; 704 echo "<div class='update-nag'>" . sprintf( 705 /* translators: %s: URL to Upgrade Network screen */ 706 __( 'Thank you for Updating! Please visit the <a href="%s">Upgrade Network</a> page to update all your sites.' ), 707 esc_url( network_admin_url( 'upgrade.php' ) ) 708 ) . '</div>'; 694 709 } 695 710 } … … 745 760 <table class="form-table" role="presentation"> 746 761 <tr> 747 <?php /* translators: My sites label */ ?>762 <?php /* translators: My Sites label */ ?> 748 763 <th scope="row"><label for="primary_blog"><?php _e( 'Primary Site' ); ?></label></th> 749 764 <td> … … 863 878 864 879 if ( ! current_user_can( 'delete_user', $delete_user->ID ) ) { 865 wp_die( sprintf( __( 'Warning! User %s cannot be deleted.' ), $delete_user->user_login ) ); 880 wp_die( 881 sprintf( 882 /* translators: %s: user login */ 883 __( 'Warning! User %s cannot be deleted.' ), 884 $delete_user->user_login 885 ) 886 ); 866 887 } 867 888 868 889 if ( in_array( $delete_user->user_login, $site_admins ) ) { 869 wp_die( sprintf( __( 'Warning! User cannot be deleted. The user %s is a network administrator.' ), '<em>' . $delete_user->user_login . '</em>' ) ); 890 wp_die( 891 sprintf( 892 /* translators: %s: user login */ 893 __( 'Warning! User cannot be deleted. The user %s is a network administrator.' ), 894 '<em>' . $delete_user->user_login . '</em>' 895 ) 896 ); 870 897 } 871 898 ?> … … 913 940 ?> 914 941 <ul style="list-style:none;"> 915 <li><?php printf( __( 'Site: %s' ), $user_site ); ?></li> 942 <li> 943 <?php 944 /* translators: %s: link to user's site */ 945 printf( __( 'Site: %s' ), $user_site ); 946 ?> 947 </li> 916 948 <li><label><input type="radio" id="delete_option0" name="delete[<?php echo $details->userblog_id . '][' . $delete_user->ID; ?>]" value="delete" checked="checked" /> 917 949 <?php _e( 'Delete all content.' ); ?></label></li> … … 1100 1132 '<p>' . __( '<strong>Info</strong> — 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>' . 1101 1133 '<p>' . __( '<strong>Users</strong> — 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>' . 1102 '<p>' . sprintf( __( '<strong>Themes</strong> — 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’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>' . 1134 '<p>' . sprintf( 1135 /* translators: %s: URL to Network Themes screen */ 1136 __( '<strong>Themes</strong> — 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’s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), 1137 network_admin_url( 'themes.php' ) 1138 ) . '</p>' . 1103 1139 '<p>' . __( '<strong>Settings</strong> — 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>', 1104 1140 );
Note: See TracChangeset
for help on using the changeset viewer.