Ticket #38210: 38210.2.diff
File 38210.2.diff, 1.8 KB (added by , 8 years ago) |
---|
-
wp-admin/includes/class-wp-ms-sites-list-table.php
226 226 public function get_columns() { 227 227 $sites_columns = array( 228 228 'cb' => '<input type="checkbox" />', 229 'blogname' => __( ' URL' ),229 'blogname' => __( 'Name & URL' ), 230 230 'lastupdated' => __( 'Last Updated' ), 231 231 'registered' => _x( 'Registered', 'site' ), 232 232 'users' => __( 'Users' ), … … 302 302 public function column_blogname( $blog ) { 303 303 global $mode; 304 304 305 // Display the Blog Name and get the Description if on Excerpt Mode. 306 switch_to_blog( $blog['blog_id'] ); 307 echo get_option( 'blogname' ) . '<br/>'; 308 if ( 'list' !== $mode ) { 309 $blog_description = '<p><em>' . get_option( 'blogdescription ' ) . '</em></p>'; 310 } 311 restore_current_blog(); 312 // END Display the Blog Name and get the Description if on Excerpt Mode. 313 305 314 $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); 306 315 $blog_states = array(); 307 316 reset( $this->status_list ); … … 329 338 <?php echo $blog_state; ?> 330 339 </strong> 331 340 <?php 332 if ( 'list' !== $mode ) { 333 switch_to_blog( $blog['blog_id'] ); 334 echo '<p>'; 335 printf( 336 /* translators: 1: site name, 2: site tagline. */ 337 __( '%1$s – %2$s' ), 338 get_option( 'blogname' ), 339 '<em>' . get_option( 'blogdescription ' ) . '</em>' 340 ); 341 echo '</p>'; 342 restore_current_blog(); 343 } 341 // Outputs blog description if on Excerpt Mode 342 if ( 'list' !== $mode ) { 343 echo $blog_description; 344 } 345 // END Outputs blog description if on Excerpt Mode 344 346 } 345 347 346 348 /**