Make WordPress Core


Ignore:
Timestamp:
10/13/2009 10:02:42 AM (15 years ago)
Author:
azaozz
Message:

Merge post.js with page.js and slug.js, optimize categories and tags JS, standardize postboxes IDs and JS.

File:
1 edited

Legend:

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

    r12021 r12022  
    9999    ) );
    100100
    101     $scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), '20091010' );
     101    $scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), '20091012' );
    102102    $scripts->add_data( 'autosave', 'group', 1 );
    103103
     
    266266        $scripts->add( 'xfn', "/wp-admin/js/xfn$suffix.js", false, '3517m' );
    267267
    268         $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable'), '20090618' );
     268        $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable'), '20091012' );
    269269        $scripts->add_data( 'postbox', 'group', 1 );
    270         $scripts->localize( 'postbox', 'postboxL10n', array(
    271             'requestFile' => admin_url('admin-ajax.php')
    272         ) );
    273 
    274         $scripts->add( 'slug', "/wp-admin/js/slug$suffix.js", array('jquery'), '20090207' );
    275         $scripts->add_data( 'slug', 'group', 1 );
    276         $scripts->localize( 'slug', 'slugL10n', array(
    277             'requestFile' => admin_url('admin-ajax.php'),
    278             'save' => __('OK'),
    279             'cancel' => __('Cancel'),
    280             'l10n_print_after' => 'try{convertEntities(slugL10n);}catch(e){};'
    281         ) );
    282 
    283         $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox', 'slug'), '20090825' );
     270
     271        $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox'), '20091012' );
    284272        $scripts->add_data( 'post', 'group', 1 );
    285273        $scripts->localize( 'post', 'postL10n', array(
     
    288276            'addTag' => esc_attr(__('Add new tag')),
    289277            'separate' => __('Separate tags with commas'),
     278            'ok' => __('OK'),
    290279            'cancel' => __('Cancel'),
    291280            'edit' => __('Edit'),
     
    297286            'publish' => __('Publish'),
    298287            'schedule' => __('Schedule'),
    299             'update' => __('Update Post'),
     288            'updatePost' => __('Update Post'),
     289            'updatePage' => __('Update Page'),
    300290            'savePending' => __('Save as Pending'),
    301291            'saveDraft' => __('Save Draft'),
     
    309299        ) );
    310300
    311         $scripts->add( 'page', "/wp-admin/js/page$suffix.js", array('jquery', 'slug', 'wp-lists', 'postbox'), '20090825' );
    312         $scripts->add_data( 'page', 'group', 1 );
    313         $scripts->localize( 'page', 'postL10n', array(
    314             'cancel' => __('Cancel'),
    315             'edit' => __('Edit'),
    316             'publishOn' => __('Publish on:'),
    317             'publishOnFuture' =>  __('Schedule for:'),
    318             'publishOnPast' => __('Published on:'),
    319             'showcomm' => __('Show more comments'),
    320             'endcomm' => __('No more comments found.'),
    321             'publish' => __('Publish'),
    322             'schedule' => __('Schedule'),
    323             'update' => __('Update Page'),
    324             'savePending' => __('Save as Pending'),
    325             'saveDraft' => __('Save Draft'),
    326             'private' => __('Private'),
    327             'public' => __('Public'),
    328             'password' => __('Password Protected'),
    329             'privatelyPublished' => __('Privately Published'),
    330             'published' => __('Published'),
    331             'l10n_print_after' => 'try{convertEntities(postL10n);}catch(e){};'
    332         ) );
    333 
    334301        $scripts->add( 'link', "/wp-admin/js/link$suffix.js", array('wp-lists', 'postbox'), '20090506' );
    335302        $scripts->add_data( 'link', 'group', 1 );
     
    457424    $colors_version = '20091007';
    458425
    459     $styles->add( 'wp-admin', "/wp-admin/wp-admin$suffix.css", array(), '20091007' );
     426    $styles->add( 'wp-admin', "/wp-admin/wp-admin$suffix.css", array(), '20091012' );
    460427    $styles->add_data( 'wp-admin', 'rtl', "/wp-admin/rtl$suffix.css" );
    461428
Note: See TracChangeset for help on using the changeset viewer.