Make WordPress Core


Ignore:
Timestamp:
03/02/2012 10:09:26 PM (13 years ago)
Author:
nacin
Message:

Output themes and theme-install infinite scrolling args in JS, rather than parsing query strings. props DH-Shredder, helenyhou. Make WP_Theme_Install_List_Table extend WP_Themes_List_Table. Doesn't help much yet, but we should be able to dry things up further. see #19815.

File:
1 edited

Legend:

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

    r19819 r20094  
    485485            return;
    486486
    487         extract( $this->_pagination_args );
     487        extract( $this->_pagination_args, EXTR_SKIP );
    488488
    489489        $output = '<span class="displaying-num">' . sprintf( _n( '1 item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>';
     
    544544        );
    545545
    546         $output .= "\n<span class='pagination-links'>" . join( "\n", $page_links ) . '</span>';
     546        $pagination_links_class = 'pagination-links';
     547        if ( ! empty( $infinite_scroll ) )
     548            $pagination_links_class = ' hide-if-js';
     549        $output .= "\n<span class='$pagination_links_class'>" . join( "\n", $page_links ) . '</span>';
    547550
    548551        if ( $total_pages )
     
    873876
    874877        extract( $this->_args );
    875         extract( $this->_pagination_args );
     878        extract( $this->_pagination_args, EXTR_SKIP );
    876879
    877880        ob_start();
Note: See TracChangeset for help on using the changeset viewer.