Make WordPress Core


Ignore:
Timestamp:
03/03/2012 02:40:43 AM (13 years ago)
Author:
koopersmith
Message:

Partially revert [20100]. The list_args JS variable cannot be extended due to its use as an argument in fetch-list. see #19815.

We should reattempt extending the args created in WP_List_Table, but will need to deprecate the current list_args to do so.

Also, infinite scroll on themes pages is no longer broken. Go team.

File:
1 edited

Legend:

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

    r20100 r20104  
    904904     * @access private
    905905     */
    906     function _js_vars( $extra_args = array() ) {
     906    function _js_vars() {
    907907        $current_screen = get_current_screen();
    908908
     
    915915        );
    916916
    917         if ( is_array( $extra_args ) )
    918             $args = array_merge( $args, $extra_args );
    919 
    920917        printf( "<script type='text/javascript'>list_args = %s;</script>\n", json_encode( $args ) );
    921918    }
Note: See TracChangeset for help on using the changeset viewer.