Network Admin: Hide the bulk actions checkbox for the main site.
props ericlewis. fixes #24463. Built from https://develop.svn.wordpress.org/trunk@25125 git-svn-id: http://core.svn.wordpress.org/trunk@25105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7e17787f47
commit
f137f63e13
|
@ -214,8 +214,10 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||||
switch ( $column_name ) {
|
switch ( $column_name ) {
|
||||||
case 'cb': ?>
|
case 'cb': ?>
|
||||||
<th scope="row" class="check-column">
|
<th scope="row" class="check-column">
|
||||||
|
<?php if ( ! is_main_site( $blog['blog_id'] ) ) : ?>
|
||||||
<label class="screen-reader-text" for="blog_<?php echo $blog['blog_id']; ?>"><?php printf( __( 'Select %s' ), $blogname ); ?></label>
|
<label class="screen-reader-text" for="blog_<?php echo $blog['blog_id']; ?>"><?php printf( __( 'Select %s' ), $blogname ); ?></label>
|
||||||
<input type="checkbox" id="blog_<?php echo $blog['blog_id'] ?>" name="allblogs[]" value="<?php echo esc_attr( $blog['blog_id'] ) ?>" />
|
<input type="checkbox" id="blog_<?php echo $blog['blog_id'] ?>" name="allblogs[]" value="<?php echo esc_attr( $blog['blog_id'] ) ?>" />
|
||||||
|
<?php endif; ?>
|
||||||
</th>
|
</th>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue