Changeset 9083 for trunk/wp-includes/script-loader.php
- Timestamp:
- 10/05/2008 04:43:52 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/script-loader.php
r9064 r9083 37 37 function wp_default_scripts( &$scripts ) { 38 38 global $current_user; 39 39 40 40 if (!$guessurl = site_url()) 41 41 $guessurl = wp_guess_url(); 42 42 43 43 $userid = isset($current_user) ? $current_user->ID : 0; 44 44 $scripts->base_url = $guessurl; … … 242 242 243 243 $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( 247 247 '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.') 248 254 ) ); 249 255 … … 254 260 255 261 $scripts->add( 'farbtastic', '/wp-admin/js/farbtastic.js', array('jquery'), '1.2' ); 256 262 257 263 $scripts->add( 'user-settings', '/wp-admin/js/user-settings.js', array(), '20080829' ); 258 264 $scripts->localize( 'user-settings', 'userSettings', array(
Note: See TracChangeset
for help on using the changeset viewer.