Changeset 4970 for trunk/wp-includes/script-loader.php
- Timestamp:
- 03/06/2007 05:35:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/script-loader.php
r4968 r4970 20 20 $this->add( 'wp_tiny_mce', $mce_config, array('tiny_mce'), '20070225' ); 21 21 $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.5.0-0'); 22 $this->add( 'autosave', '/wp-includes/js/autosave-js.php', array('prototype', 'sack'), '20070116'); 23 $this->add( 'wp-ajax', '/wp-includes/js/wp-ajax-js.php', array('prototype'), '20070118'); 24 $this->add( 'listman', '/wp-includes/js/list-manipulation.js', array('wp-ajax', 'fat'), '20070305'); 22 $this->add( 'autosave', '/wp-includes/js/autosave.js', array('prototype', 'sack'), '20070306'); 23 $this->localize( 'autosave', 'autosaveL10n', array( 24 'autosaveInterval' => apply_filters('autosave_interval', '120'), 25 'errorText' => __('Error: %response%'), 26 'saveText' => __('Saved at %time%.'), 27 'requestFile' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php', 28 'savingText' => __('Saving Draft...') 29 ) ); 30 $this->add( 'wp-ajax', '/wp-includes/js/wp-ajax.js', array('prototype'), '20070306'); 31 $this->localize( 'wp-ajax', 'WPAjaxL10n', array( 32 'defaultUrl' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php', 33 'permText' => __("You don't have permission to do that."), 34 'strangeText' => __("Something strange happened. Try refreshing the page."), 35 'whoaText' => __("Slow down, I'm still sending your data!") 36 ) ); 37 $this->add( 'listman', '/wp-includes/js/list-manipulation.js', array('wp-ajax', 'fat'), '20070306'); 25 38 $this->localize( 'listman', 'listManL10n', array( 26 39 'jumpText' => __('Jump to new item'), 27 'delText' => __('Are you sure you want to delete this % s?')40 'delText' => __('Are you sure you want to delete this %thing%?') 28 41 ) ); 29 42 $this->add( 'scriptaculous-root', '/wp-includes/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.7.0'); … … 38 51 $this->add( 'interface', '/wp-includes/js/jquery/interface.js', array('jquery'), '1.1.1'); 39 52 if ( is_admin() ) { 40 $this->add( 'dbx-admin-key', '/wp-admin/dbx-admin-key-js.php', array('dbx'), '3651' ); 41 $this->add( 'ajaxcat', '/wp-admin/cat-js.php', array('listman'), '20070118' ); 53 global $pagenow; 54 $man = false; 55 switch ( $pagenow ) : 56 case 'post.php' : 57 case 'post-new.php' : 58 $man = 'postmeta'; 59 break; 60 case 'page.php' : 61 case 'page-new.php' : 62 $man = 'pagemeta'; 63 break; 64 case 'link.php' : 65 $man = 'linkmeta'; 66 break; 67 endswitch; 68 if ( $man ) { 69 $this->add( 'dbx-admin-key', '/wp-admin/dbx-admin-key.js', array('dbx'), '20070306' ); 70 $this->localize( 'dbx-admin-key', 'dbxL10n', array( 71 'manager' => $man, 72 'open' => __('open'), 73 'close' => __('close'), 74 'moveMouse' => __('click-down and drag to move this box'), 75 'toggleMouse' => __('click to %toggle% this box'), 76 'moveKey' => __('use the arrow keys to move this box'), 77 'toggleKey' => __(', or press the enter key to %toggle% it'), 78 ) ); 79 } 80 $this->add( 'ajaxcat', '/wp-admin/cat.js', array('listman'), '20070306' ); 81 $this->localize( 'ajaxcat', 'catL10n', array( 82 'add' => attribute_escape(__('Add')), 83 'how' => __('Separate multiple categories with commas.') 84 ) ); 42 85 $this->add( 'admin-categories', '/wp-admin/categories.js', array('listman'), '3684' ); 43 86 $this->add( 'admin-custom-fields', '/wp-admin/custom-fields.js', array('listman'), '3733' ); … … 45 88 $this->add( 'admin-users', '/wp-admin/users.js', array('listman'), '4583' ); 46 89 $this->add( 'xfn', '/wp-admin/xfn.js', false, '3517' ); 47 $this->add( 'upload', '/wp-admin/upload-js.php', array('prototype'), '20070118' ); 90 $this->add( 'upload', '/wp-admin/upload.js', array('prototype'), '20070306' ); 91 $this->localize( 'upload', 'uploadL10n', array( 92 'browseTitle' => attribute_escape(__('Browse your files')), 93 'back' => __('« Back'), 94 'directTitle' => attribute_escape(__('Direct link to file')), 95 'edit' => __('Edit'), 96 'thumb' => __('Thumbnail'), 97 'full' => __('Full size'), 98 'icon' => __('Icon'), 99 'title' => __('Title'), 100 'show' => __('Show:'), 101 'link' => __('Link to:'), 102 'file' => __('File'), 103 'page' => __('Page'), 104 'none' => __('None'), 105 'editorText' => attribute_escape(__('Send to editor »')), 106 'insert' => __('Insert'), 107 'urlText' => __('URL'), 108 'desc' => __('Description'), 109 'deleteText' => attribute_escape(__('Delete File')), 110 'saveText' => attribute_escape(__('Save »')), 111 'confirmText' => __("Are you sure you want to delete the file '%title%'?\nClick ok to delete or cancel to go back.") 112 ) ); 48 113 } 49 114 }
Note: See TracChangeset
for help on using the changeset viewer.