Make WordPress Core


Ignore:
Timestamp:
10/05/2008 04:43:52 AM (16 years ago)
Author:
azaozz
Message:

Quick Edit for Tags, Categories and Link Categories, improvements to handling errors in quick and bulk edit.

File:
1 edited

Legend:

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

    r9064 r9083  
    3737function wp_default_scripts( &$scripts ) {
    3838    global $current_user;
    39    
     39
    4040    if (!$guessurl = site_url())
    4141        $guessurl = wp_guess_url();
    42    
     42
    4343    $userid = isset($current_user) ? $current_user->ID : 0;
    4444    $scripts->base_url = $guessurl;
     
    242242
    243243        $scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' );
    244        
    245         $scripts->add( 'inline-edit', '/wp-admin/js/inline-edit.js', array( 'jquery', 'jquery-form', 'suggest' ), '20080930' );
    246         $scripts->localize( 'inline-edit', 'inlineEditL10n', array(
     244
     245        $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20080930' );
     246        $scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
    247247            'edit' => __('Double-click to edit')
     248        ) );
     249
     250        $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081003' );
     251        $scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array(
     252            'edit' => __('Double-click to edit'),
     253            'error' => __('Error while saving the changes.')
    248254        ) );
    249255
     
    254260
    255261        $scripts->add( 'farbtastic', '/wp-admin/js/farbtastic.js', array('jquery'), '1.2' );
    256        
     262
    257263        $scripts->add( 'user-settings', '/wp-admin/js/user-settings.js', array(), '20080829' );
    258264        $scripts->localize( 'user-settings', 'userSettings', array(
Note: See TracChangeset for help on using the changeset viewer.