WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/30/2015 12:46:15 AM (6 years ago)
Author:
wonderboymusic
Message:

List Tables: only hide bulk actions when there are no items, don't hide all of the extra table nav.

Fixes #33824.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r34467 r34707  
    11421142            wp_nonce_field( 'bulk-' . $this->_args['plural'] );
    11431143        }
    1144         if ( $this->has_items() ) : ?>
     1144        ?>
    11451145    <div class="tablenav <?php echo esc_attr( $which ); ?>">
    11461146
     1147        <?php if ( $this->has_items() ): ?>
    11471148        <div class="alignleft actions bulkactions">
    11481149            <?php $this->bulk_actions( $which ); ?>
    11491150        </div>
    1150 <?php
     1151        <?php endif;
    11511152        $this->extra_tablenav( $which );
    11521153        $this->pagination( $which );
     
    11561157    </div>
    11571158<?php
    1158         endif;
    11591159    }
    11601160
Note: See TracChangeset for help on using the changeset viewer.