Changeset 11079
- Timestamp:
- 04/24/2009 04:44:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/manifest.php
r11076 r11079 95 95 96 96 function &get_manifest(&$man_ver) { 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 97 global $wp_scripts, $wp_styles, $wp_version; 98 99 $files = array(); 100 foreach ( $wp_scripts->registered as $script ) { 101 if ( empty($script->src) ) continue; 102 $ver = empty($script->ver) ? $wp_version : $script->ver; 103 if ( 'editor' == $script->handle ) $mce_ver = $script->ver; 104 $src = str_replace( array( '/wp-admin/', '/wp-includes/' ), array( '', '../wp-includes/' ), $script->src ); 105 $files[] = array($src, $ver); 106 $man_ver .= $ver; 107 } 108 109 foreach ( $wp_styles->registered as $style ) { 110 if ( empty($style->src) ) continue; 111 112 $ver = empty($style->ver) ? $wp_version : $style->ver; 113 $src = str_replace( array( '/wp-admin/', '/wp-includes/' ), array( '', '../wp-includes/' ), $style->src ); 114 if ( 'colors' == $style->handle ) $src = 'css/colors-classic.css'; 115 $files[] = array($src, $ver); 116 $man_ver .= $ver; 117 118 if ( isset($style->extra['rtl']) && $style->extra['rtl'] ) { 119 if ( is_bool( $style->extra['rtl'] ) ) 120 $rtl_href = str_replace( '.css', '-rtl.css', $src ); 121 else 122 $rtl_href = str_replace( array( '/wp-admin/', '/wp-includes/' ), array( '', '../wp-includes/' ), $style->extra['rtl'] ); 123 124 $files[] = array($rtl_href, $ver); 125 $man_ver .= $ver; 126 } 127 } 128 129 $images = array( 130 array('images/align-center.png'), 131 array('images/align-left.png'), 132 array('images/align-none.png'), 133 array('images/align-right.png'), 134 array('images/archive-link.png'), 135 array('images/blue-grad.png'), 136 array('images/browse-happy.gif'), 137 array('images/bubble_bg.gif'), 138 array('images/bubble_bg-rtl.gif'), 139 array('images/button-grad.png'), 140 array('images/button-grad-active.png'), 141 array('images/comment-grey-bubble.png'), 142 array('images/date-button.gif'), 143 array('images/ed-bg.gif'), 144 array('images/fade-butt.png'), 145 array('images/fav.png'), 146 array('images/fav-arrow.gif'), 147 array('images/fav-arrow-rtl.gif'), 148 array('images/fav-top.png'), 149 array('images/generic.png'), 150 array('images/gray-grad.png'), 151 array('images/icons32.png'), 152 array('images/icons32-vs.png'), 153 array('images/list.png'), 154 array('images/list-vs.png'), 155 array('images/loading.gif'), 156 array('images/loading-publish.gif'), 157 array('images/logo.gif'), 158 array('images/logo-ghost.png'), 159 array('images/logo-login.gif'), 160 array('images/media-button-image.gif'), 161 array('images/media-button-music.gif'), 162 array('images/media-button-other.gif'), 163 array('images/media-button-video.gif'), 164 array('images/menu.png'), 165 array('images/menu-vs.png'), 166 array('images/menu-arrows.gif'), 167 array('images/menu-bits.gif'), 168 array('images/menu-bits-rtl.gif'), 169 array('images/menu-dark.gif'), 170 array('images/menu-dark-rtl.gif'), 171 array('images/no.png'), 172 array('images/required.gif'), 173 array('images/resize.gif'), 174 array('images/screen-options-left.gif'), 175 array('images/screen-options-right.gif'), 176 array('images/screen-options-right-up.gif'), 177 array('images/se.png'), 178 array('images/star.gif'), 179 array('images/toggle-arrow.gif'), 180 array('images/toggle-arrow-rtl.gif'), 181 array('images/white-grad.png'), 182 array('images/white-grad-active.png'), 183 array('images/wordpress-logo.png'), 184 array('images/wp-logo.gif'), 185 array('images/xit.gif'), 186 array('images/yes.png'), 187 array('../wp-includes/images/crystal/archive.png'), 188 array('../wp-includes/images/crystal/audio.png'), 189 array('../wp-includes/images/crystal/code.png'), 190 array('../wp-includes/images/crystal/default.png'), 191 array('../wp-includes/images/crystal/document.png'), 192 array('../wp-includes/images/crystal/interactive.png'), 193 array('../wp-includes/images/crystal/text.png'), 194 array('../wp-includes/images/crystal/video.png'), 195 array('../wp-includes/images/crystal/spreadsheet.png'), 196 array('../wp-includes/images/rss.png'), 197 array('../wp-includes/js/thickbox/loadingAnimation.gif'), 198 array('../wp-includes/js/thickbox/tb-close.png'), 199 ); 200 201 $files = array_merge($files, $images); 202 203 if ( @is_file('../wp-includes/js/tinymce/tiny_mce.js') ) : 204 $mce = array( 205 array('../wp-includes/js/tinymce/wp-tinymce.php', $mce_ver, true), 206 206 array('../wp-includes/js/tinymce/tiny_mce.js', $mce_ver, true), 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 207 array('../wp-includes/js/tinymce/langs/wp-langs-en.js', $mce_ver, true), 208 array('../wp-includes/js/tinymce/utils/mctabs.js', $mce_ver, true), 209 array('../wp-includes/js/tinymce/utils/validate.js', $mce_ver, true), 210 array('../wp-includes/js/tinymce/utils/form_utils.js', $mce_ver, true), 211 array('../wp-includes/js/tinymce/utils/editable_selects.js', $mce_ver, true), 212 array('../wp-includes/js/tinymce/tiny_mce_popup.js', $mce_ver, true), 213 214 array('../wp-includes/js/tinymce/themes/advanced/editor_template.js', $mce_ver, true), 215 array('../wp-includes/js/tinymce/themes/advanced/source_editor.htm', $mce_ver, true), 216 array('../wp-includes/js/tinymce/themes/advanced/anchor.htm', $mce_ver, true), 217 array('../wp-includes/js/tinymce/themes/advanced/image.htm', $mce_ver, true), 218 array('../wp-includes/js/tinymce/themes/advanced/link.htm', $mce_ver, true), 219 array('../wp-includes/js/tinymce/themes/advanced/color_picker.htm', $mce_ver, true), 220 array('../wp-includes/js/tinymce/themes/advanced/charmap.htm', $mce_ver, true), 221 array('../wp-includes/js/tinymce/themes/advanced/js/color_picker.js', $mce_ver, true), 222 array('../wp-includes/js/tinymce/themes/advanced/js/charmap.js', $mce_ver, true), 223 array('../wp-includes/js/tinymce/themes/advanced/js/image.js', $mce_ver, true), 224 array('../wp-includes/js/tinymce/themes/advanced/js/link.js', $mce_ver, true), 225 array('../wp-includes/js/tinymce/themes/advanced/js/source_editor.js', $mce_ver, true), 226 array('../wp-includes/js/tinymce/themes/advanced/js/anchor.js', $mce_ver, true), 227 array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css', $mce_ver, true), 228 array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css', $mce_ver, true), 229 array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/dialog.css', $mce_ver, true), 230 231 array('../wp-includes/js/tinymce/plugins/autosave/editor_plugin.js', $mce_ver, true), 232 233 array('../wp-includes/js/tinymce/plugins/fullscreen/editor_plugin.js', $mce_ver, true), 234 array('../wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm', $mce_ver, true), 235 236 array('../wp-includes/js/tinymce/plugins/inlinepopups/editor_plugin.js', $mce_ver, true), 237 array('../wp-includes/js/tinymce/plugins/inlinepopups/template.htm', $mce_ver, true), 238 array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css', $mce_ver, true), 239 240 array('../wp-includes/js/tinymce/plugins/media/editor_plugin.js', $mce_ver, true), 241 array('../wp-includes/js/tinymce/plugins/media/js/media.js', $mce_ver, true), 242 array('../wp-includes/js/tinymce/plugins/media/media.htm', $mce_ver, true), 243 array('../wp-includes/js/tinymce/plugins/media/css/content.css', $mce_ver, true), 244 array('../wp-includes/js/tinymce/plugins/media/css/media.css', $mce_ver, true), 245 246 array('../wp-includes/js/tinymce/plugins/paste/editor_plugin.js', $mce_ver, true), 247 array('../wp-includes/js/tinymce/plugins/paste/js/pasteword.js', $mce_ver, true), 248 array('../wp-includes/js/tinymce/plugins/paste/js/pastetext.js', $mce_ver, true), 249 array('../wp-includes/js/tinymce/plugins/paste/pasteword.htm', $mce_ver, true), 250 array('../wp-includes/js/tinymce/plugins/paste/blank.htm', $mce_ver, true), 251 array('../wp-includes/js/tinymce/plugins/paste/pastetext.htm', $mce_ver, true), 252 array('../wp-includes/js/tinymce/plugins/paste/css/pasteword.css', $mce_ver, true), 253 array('../wp-includes/js/tinymce/plugins/paste/css/blank.css', $mce_ver, true), 254 255 array('../wp-includes/js/tinymce/plugins/safari/editor_plugin.js', $mce_ver, true), 256 257 array('../wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js', $mce_ver, true), 258 array('../wp-includes/js/tinymce/plugins/spellchecker/css/content.css', $mce_ver, true), 259 260 array('../wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js', $mce_ver, true), 261 262 array('../wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js', $mce_ver, true), 263 array('../wp-includes/js/tinymce/plugins/wordpress/css/content.css', $mce_ver, true), 264 265 array('../wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js', $mce_ver, true), 266 array('../wp-includes/js/tinymce/plugins/wpeditimage/editimage.html', $mce_ver, true), 267 array('../wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js', $mce_ver, true), 268 array('../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css', $mce_ver, true), 269 array('../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage-rtl.css', $mce_ver, true), 270 271 array('../wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js', $mce_ver, true), 272 273 array('../wp-includes/js/tinymce/themes/advanced/img/icons.gif'), 274 array('../wp-includes/js/tinymce/themes/advanced/img/colorpicker.jpg'), 275 array('../wp-includes/js/tinymce/themes/advanced/img/fm.gif'), 276 array('../wp-includes/js/tinymce/themes/advanced/img/gotmoxie.png'), 277 array('../wp-includes/js/tinymce/themes/advanced/img/sflogo.png'), 278 array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/butt2.png'), 279 array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/fade-butt.png'), 280 array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/tabs.gif'), 281 array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/down_arrow.gif'), 282 array('../wp-includes/js/tinymce/themes/advanced/skins/default/img/progress.gif'), 283 array('../wp-includes/js/tinymce/themes/advanced/skins/default/img/menu_check.gif'), 284 array('../wp-includes/js/tinymce/themes/advanced/skins/default/img/menu_arrow.gif'), 285 array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/drag.gif'), 286 array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif'), 287 array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif'), 288 array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif'), 289 array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif'), 290 array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif'), 291 array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif'), 292 array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif'), 293 array('../wp-includes/js/tinymce/plugins/media/img/flash.gif'), 294 array('../wp-includes/js/tinymce/plugins/media/img/flv_player.swf'), 295 array('../wp-includes/js/tinymce/plugins/media/img/quicktime.gif'), 296 array('../wp-includes/js/tinymce/plugins/media/img/realmedia.gif'), 297 array('../wp-includes/js/tinymce/plugins/media/img/shockwave.gif'), 298 array('../wp-includes/js/tinymce/plugins/media/img/windowsmedia.gif'), 299 array('../wp-includes/js/tinymce/plugins/media/img/trans.gif'), 300 array('../wp-includes/js/tinymce/plugins/spellchecker/img/wline.gif'), 301 array('../wp-includes/js/tinymce/plugins/wordpress/img/more.gif'), 302 array('../wp-includes/js/tinymce/plugins/wordpress/img/more_bug.gif'), 303 array('../wp-includes/js/tinymce/plugins/wordpress/img/page.gif'), 304 array('../wp-includes/js/tinymce/plugins/wordpress/img/page_bug.gif'), 305 array('../wp-includes/js/tinymce/plugins/wordpress/img/toolbars.gif'), 306 array('../wp-includes/js/tinymce/plugins/wordpress/img/help.gif'), 307 array('../wp-includes/js/tinymce/plugins/wordpress/img/image.gif'), 308 array('../wp-includes/js/tinymce/plugins/wordpress/img/media.gif'), 309 array('../wp-includes/js/tinymce/plugins/wordpress/img/video.gif'), 310 array('../wp-includes/js/tinymce/plugins/wordpress/img/audio.gif'), 311 array('../wp-includes/js/tinymce/plugins/wpeditimage/img/image.png'), 312 array('../wp-includes/js/tinymce/plugins/wpeditimage/img/delete.png'), 313 array('../wp-includes/js/tinymce/plugins/wpgallery/img/delete.png'), 314 array('../wp-includes/js/tinymce/plugins/wpgallery/img/edit.png'), 315 array('../wp-includes/js/tinymce/plugins/wpgallery/img/gallery.png') 316 ); 317 $files = array_merge($files, $mce); 318 endif; 319 320 return $files; 321 321 }
Note: See TracChangeset
for help on using the changeset viewer.