WordPress.org

Make WordPress Core

Ticket #16290: 16290.patch

File 16290.patch, 1.1 KB (added by SergeyBiryukov, 7 years ago)
  • wp-includes/script-loader.php

     
    299299                $scripts->add( 'admin-custom-fields', "/wp-admin/js/custom-fields$suffix.js", array('wp-lists'), '20090106' );
    300300                $scripts->add_data( 'admin-custom-fields', 'group', 1 );
    301301
     302                $scripts->add( 'list-table', "/wp-admin/js/list-table$suffix.js", array( 'jquery-query', 'jquery-serialize-object' ), '20110111a' );
     303                $scripts->add_data( 'list-table', 'group', 1 );
     304                $scripts->localize( 'list-table', 'listTableL10n', array(
     305                        'error' => __('An error has occurred while loading the items.'),
     306                        'search' => __('Search results for “%s”'),
     307                        'l10n_print_after' => 'try{convertEntities(listTableL10n);}catch(e){};'
     308                ) );
     309
    302310                $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'list-table', 'jquery-ui-resizable', 'quicktags'), '20101223' );
    303311                $scripts->add_data( 'admin-comments', 'group', 1 );
    304312                $scripts->localize( 'admin-comments', 'adminCommentsL10n', array(