Changeset 42343 for trunk/src/wp-admin/my-sites.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/my-sites.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/my-sites.php
r41796 r42343 10 10 require_once( dirname( __FILE__ ) . '/admin.php' ); 11 11 12 if ( ! is_multisite() )12 if ( ! is_multisite() ) { 13 13 wp_die( __( 'Multisite support is not enabled.' ) ); 14 } 14 15 15 if ( ! current_user_can( 'read') )16 if ( ! current_user_can( 'read' ) ) { 16 17 wp_die( __( 'Sorry, you are not allowed to access this page.' ) ); 18 } 17 19 18 20 $action = isset( $_POST['action'] ) ? $_POST['action'] : 'splash'; … … 33 35 } 34 36 35 $title = __( 'My Sites' );37 $title = __( 'My Sites' ); 36 38 $parent_file = 'index.php'; 37 39 38 get_current_screen()->add_help_tab( array( 39 'id' => 'overview', 40 'title' => __('Overview'), 41 'content' => 42 '<p>' . __('This screen shows an individual user all of their sites in this network, and also allows that user to set a primary site. They can use the links under each site to visit either the front end or the dashboard for that site.') . '</p>' 43 ) ); 40 get_current_screen()->add_help_tab( 41 array( 42 'id' => 'overview', 43 'title' => __( 'Overview' ), 44 'content' => 45 '<p>' . __( 'This screen shows an individual user all of their sites in this network, and also allows that user to set a primary site. They can use the links under each site to visit either the front end or the dashboard for that site.' ) . '</p>', 46 ) 47 ); 44 48 45 49 get_current_screen()->set_help_sidebar( 46 '<p><strong>' . __( 'For more information:') . '</strong></p>' .47 '<p>' . __( '<a href="https://codex.wordpress.org/Dashboard_My_Sites_Screen">Documentation on My Sites</a>') . '</p>' .48 '<p>' . __( '<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'50 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 51 '<p>' . __( '<a href="https://codex.wordpress.org/Dashboard_My_Sites_Screen">Documentation on My Sites</a>' ) . '</p>' . 52 '<p>' . __( '<a href="https://wordpress.org/support/">Support Forums</a>' ) . '</p>' 49 53 ); 50 54 … … 56 60 57 61 <div class="wrap"> 58 <h1 class="wp-heading-inline"><?php 62 <h1 class="wp-heading-inline"> 63 <?php 59 64 echo esc_html( $title ); 60 ?></h1> 65 ?> 66 </h1> 61 67 62 68 <?php … … 111 117 switch_to_blog( $user_blog->userblog_id ); 112 118 113 echo "<li>";119 echo '<li>'; 114 120 echo "<h3>{$user_blog->blogname}</h3>"; 115 121 116 $actions = "<a href='" . esc_url( home_url() ) . "'>" . __( 'Visit' ) . '</a>';122 $actions = "<a href='" . esc_url( home_url() ) . "'>" . __( 'Visit' ) . '</a>'; 117 123 118 124 if ( current_user_can( 'read' ) ) { … … 133 139 /** This filter is documented in wp-admin/my-sites.php */ 134 140 echo apply_filters( 'myblogs_options', '', $user_blog ); 135 echo "</li>";141 echo '</li>'; 136 142 137 143 restore_current_blog(); 138 }?> 144 } 145 ?> 139 146 </ul> 140 147 <?php 141 148 if ( count( $blogs ) > 1 || has_action( 'myblogs_allblogs_options' ) || has_filter( 'myblogs_options' ) ) { 142 ?><input type="hidden" name="action" value="updateblogsettings" /><?php 149 ?> 150 <input type="hidden" name="action" value="updateblogsettings" /> 151 <?php 143 152 wp_nonce_field( 'update-my-sites' ); 144 153 submit_button();
Note: See TracChangeset
for help on using the changeset viewer.