Make WordPress Core

Ticket #63369: 63369.patch

File 63369.patch, 896 bytes (added by dilipbheda, 7 weeks ago)

We remove the bottom table navbar section directly within the PHP script instead of simply hiding it with CSS.

  • src/wp-admin/includes/class-wp-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-list-table.php b/src/wp-admin/includes/class-wp-list-table.php
    index 4bad78b823..234cfe88a4 100644
    a b class WP_List_Table { 
    10211021         * @param string $which The location of the pagination: Either 'top' or 'bottom'.
    10221022         */
    10231023        protected function pagination( $which ) {
    1024                 if ( empty( $this->_pagination_args ) ) {
     1024                if ( empty( $this->_pagination_args['total_items'] ) ) {
    10251025                        return;
    10261026                }
    10271027
    class WP_List_Table { 
    16691669         * @param string $which The location of the navigation: Either 'top' or 'bottom'.
    16701670         */
    16711671        protected function display_tablenav( $which ) {
     1672                if ( 'bottom' === $which && ! $this->has_items() ) {
     1673                        return;
     1674                }
    16721675                if ( 'top' === $which ) {
    16731676                        wp_nonce_field( 'bulk-' . $this->_args['plural'] );
    16741677                }