Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r19020 r20198  
    213213<p class="search-box">
    214214        <label class="screen-reader-text" for="<?php echo $input_id ?>"><?php echo $text; ?>:</label>
    215         <input type="text" id="<?php echo $input_id ?>" name="s" value="<?php _admin_search_query(); ?>" />
     215        <input type="search" id="<?php echo $input_id ?>" name="s" value="<?php _admin_search_query(); ?>" />
    216216        <?php submit_button( $text, 'button', false, false, array('id' => 'search-submit') ); ?>
    217217</p>
    … …  
    387387                                selected( $m, $year . $month, false ),
    388388                                esc_attr( $arc_row->year . $month ),
    389                                 $wp_locale->get_month( $month ) . " $year"
     389                                /* translators: 1: month name, 2: 4-digit year */
     390                                sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month ), $year )
    390391                        );
    391392                }
    … …  
    484485                        return;
    485486
    486                 extract( $this->_pagination_args );
     487                extract( $this->_pagination_args, EXTR_SKIP );
    487488
    488489                $output = '<span class="displaying-num">' . sprintf( _n( '1 item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>';
    … …  
    519520                        $html_current_page = $current;
    520521                else
    521                         $html_current_page = sprintf( "<input class='current-page' title='%s' type='text' name='%s' value='%s' size='%d' />",
     522                        $html_current_page = sprintf( "<input class='current-page' title='%s' type='text' name='paged' value='%s' size='%d' />",
    522523                                esc_attr__( 'Current page' ),
    523                                 esc_attr( 'paged' ),
    524524                                $current,
    525525                                strlen( $total_pages )
    … …  
    543543                );
    544544
    545                 $output .= "\n<span class='pagination-links'>" . join( "\n", $page_links ) . '</span>';
     545                $pagination_links_class = 'pagination-links';
     546                if ( ! empty( $infinite_scroll ) )
     547                        $pagination_links_class = ' hide-if-js';
     548                $output .= "\n<span class='$pagination_links_class'>" . join( "\n", $page_links ) . '</span>';
    546549
    547550                if ( $total_pages )
    … …  
    872875
    873876                extract( $this->_args );
    874                 extract( $this->_pagination_args );
     877                extract( $this->_pagination_args, EXTR_SKIP );
    875878
    876879                ob_start();
    … …  
    914917        }
    915918}
    916 ?>
Note: See TracChangeset for help on using the changeset viewer.