Make WordPress Core


Ignore:
Timestamp:
11/23/2010 08:17:22 PM (14 years ago)
Author:
scribu
Message:

Ajaxify theme feature filter. Props ocean90 for initial patch. See #14936

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r16540 r16553  
    304304        $scripts->add( 'admin-custom-fields', "/wp-admin/js/custom-fields$suffix.js", array('wp-lists'), '20090106' );
    305305        $scripts->add_data( 'admin-custom-fields', 'group', 1 );
     306
     307        $scripts->add( 'list-table', "/wp-admin/js/list-table$suffix.js", array( 'jquery-query', 'jquery-serialize-object' ), '20101121' );
     308        $scripts->add_data( 'list-table', 'group', 1 );
     309        $scripts->localize( 'list-table', 'listTableL10n', array(
     310            'loading' => __('Loading...'),
     311            'error' => __('An error has occurred while loading the items.'),
     312            'search' => __('Search results for “%s”'),
     313            'l10n_print_after' => 'try{convertEntities(listTableL10n);}catch(e){};'
     314        ) );
    306315
    307316        $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'list-table', 'jquery-ui-resizable', 'quicktags'), '20101121' );
     
    374383        ));
    375384
    376         $scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'thickbox', 'jquery' ), '20101123' );
     385        $scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'thickbox', 'list-table' ), '20101123' );
    377386        $scripts->add_data( 'theme', 'group', 1 );
    378387
    379388        $scripts->add( 'theme-preview', "/wp-admin/js/theme-preview$suffix.js", array( 'thickbox', 'jquery' ), '20100407' );
    380389        $scripts->add_data( 'theme-preview', 'group', 1 );
    381 
    382         $scripts->add( 'list-table', "/wp-admin/js/list-table$suffix.js", array( 'jquery-query', 'jquery-serialize-object' ), '20101121' );
    383         $scripts->add_data( 'list-table', 'group', 1 );
    384         $scripts->localize( 'list-table', 'listTableL10n', array(
    385             'loading' => __('Loading...'),
    386             'error' => __('An error has occurred while loading the items.'),
    387             'search' => __('Search results for “%s”'),
    388             'l10n_print_after' => 'try{convertEntities(listTableL10n);}catch(e){};'
    389         ) );
    390390
    391391        $scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest' ), '20100707' );
Note: See TracChangeset for help on using the changeset viewer.