Network Admin: Hide the bulk actions checkbox for the main site.

props ericlewis.
fixes #24463.


git-svn-id: https://develop.svn.wordpress.org/trunk@25125 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-08-26 18:45:30 +00:00
parent 42dee6ccf0
commit d41c30be7a

View File

@ -214,8 +214,10 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
switch ( $column_name ) {
case 'cb': ?>
<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>
<input type="checkbox" id="blog_<?php echo $blog['blog_id'] ?>" name="allblogs[]" value="<?php echo esc_attr( $blog['blog_id'] ) ?>" />
<?php endif; ?>
</th>
<?php
break;