Ticket #14157: 14157.diff
File 14157.diff, 45.7 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-filesystem-base.php
48 48 function abspath() { 49 49 $folder = $this->find_folder(ABSPATH); 50 50 //Perhaps the FTP folder is rooted at the WordPress install, Check for wp-includes folder in root, Could have some false positives, but rare. 51 if ( ! $folder && $this->is_dir('/ wp-includes') )51 if ( ! $folder && $this->is_dir('/' . WPINC) ) 52 52 $folder = '/'; 53 53 return $folder; 54 54 } -
wp-admin/includes/manifest.php
71 71 array('images/wp-logo.png'), 72 72 array('images/xit.gif'), 73 73 array('images/yes.png'), 74 array('../ wp-includes/images/crystal/archive.png'),75 array('../ wp-includes/images/crystal/audio.png'),76 array('../ wp-includes/images/crystal/code.png'),77 array('../ wp-includes/images/crystal/default.png'),78 array('../ wp-includes/images/crystal/document.png'),79 array('../ wp-includes/images/crystal/interactive.png'),80 array('../ wp-includes/images/crystal/text.png'),81 array('../ wp-includes/images/crystal/video.png'),82 array('../ wp-includes/images/crystal/spreadsheet.png'),83 array('../ wp-includes/images/rss.png'),84 array('../ wp-includes/images/blank.gif'),85 array('../ wp-includes/images/upload.png'),86 array('../ wp-includes/js/thickbox/loadingAnimation.gif'),87 array('../ wp-includes/js/thickbox/tb-close.png'),74 array('../' . WPINC . '/images/crystal/archive.png'), 75 array('../' . WPINC . '/images/crystal/audio.png'), 76 array('../' . WPINC . '/images/crystal/code.png'), 77 array('../' . WPINC . '/images/crystal/default.png'), 78 array('../' . WPINC . '/images/crystal/document.png'), 79 array('../' . WPINC . '/images/crystal/interactive.png'), 80 array('../' . WPINC . '/images/crystal/text.png'), 81 array('../' . WPINC . '/images/crystal/video.png'), 82 array('../' . WPINC . '/images/crystal/spreadsheet.png'), 83 array('../' . WPINC . '/images/rss.png'), 84 array('../' . WPINC . '/images/blank.gif'), 85 array('../' . WPINC . '/images/upload.png'), 86 array('../' . WPINC . '/js/thickbox/loadingAnimation.gif'), 87 array('../' . WPINC . '/js/thickbox/tb-close.png'), 88 88 ); 89 89 90 if ( @is_file('../ wp-includes/js/tinymce/tiny_mce.js') ) :90 if ( @is_file('../' . WPINC . '/js/tinymce/tiny_mce.js') ) : 91 91 $mce = array( 92 array('../ wp-includes/js/tinymce/wp-tinymce.php', $mce_ver),92 array('../' . WPINC . '/js/tinymce/wp-tinymce.php', $mce_ver), 93 93 94 array('../ wp-includes/js/tinymce/tiny_mce.js', $mce_ver),95 array('../ wp-includes/js/tinymce/langs/wp-langs-en.js', $mce_ver),96 array('../ wp-includes/js/tinymce/utils/mctabs.js', $mce_ver),97 array('../ wp-includes/js/tinymce/utils/validate.js', $mce_ver),98 array('../ wp-includes/js/tinymce/utils/form_utils.js', $mce_ver),99 array('../ wp-includes/js/tinymce/utils/editable_selects.js', $mce_ver),100 array('../ wp-includes/js/tinymce/tiny_mce_popup.js', $mce_ver),94 array('../' . WPINC . '/js/tinymce/tiny_mce.js', $mce_ver), 95 array('../' . WPINC . '/js/tinymce/langs/wp-langs-en.js', $mce_ver), 96 array('../' . WPINC . '/js/tinymce/utils/mctabs.js', $mce_ver), 97 array('../' . WPINC . '/js/tinymce/utils/validate.js', $mce_ver), 98 array('../' . WPINC . '/js/tinymce/utils/form_utils.js', $mce_ver), 99 array('../' . WPINC . '/js/tinymce/utils/editable_selects.js', $mce_ver), 100 array('../' . WPINC . '/js/tinymce/tiny_mce_popup.js', $mce_ver), 101 101 102 array('../ wp-includes/js/tinymce/themes/advanced/editor_template.js', $mce_ver),103 array('../ wp-includes/js/tinymce/themes/advanced/source_editor.htm', $mce_ver),104 array('../ wp-includes/js/tinymce/themes/advanced/anchor.htm', $mce_ver),105 array('../ wp-includes/js/tinymce/themes/advanced/image.htm', $mce_ver),106 array('../ wp-includes/js/tinymce/themes/advanced/link.htm', $mce_ver),107 array('../ wp-includes/js/tinymce/themes/advanced/color_picker.htm', $mce_ver),108 array('../ wp-includes/js/tinymce/themes/advanced/charmap.htm', $mce_ver),109 array('../ wp-includes/js/tinymce/themes/advanced/js/color_picker.js', $mce_ver),110 array('../ wp-includes/js/tinymce/themes/advanced/js/charmap.js', $mce_ver),111 array('../ wp-includes/js/tinymce/themes/advanced/js/image.js', $mce_ver),112 array('../ wp-includes/js/tinymce/themes/advanced/js/link.js', $mce_ver),113 array('../ wp-includes/js/tinymce/themes/advanced/js/source_editor.js', $mce_ver),114 array('../ wp-includes/js/tinymce/themes/advanced/js/anchor.js', $mce_ver),115 array('../ wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css', $mce_ver),116 array('../ wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css', $mce_ver),117 array('../ wp-includes/js/tinymce/themes/advanced/skins/wp_theme/dialog.css', $mce_ver),102 array('../' . WPINC . '/js/tinymce/themes/advanced/editor_template.js', $mce_ver), 103 array('../' . WPINC . '/js/tinymce/themes/advanced/source_editor.htm', $mce_ver), 104 array('../' . WPINC . '/js/tinymce/themes/advanced/anchor.htm', $mce_ver), 105 array('../' . WPINC . '/js/tinymce/themes/advanced/image.htm', $mce_ver), 106 array('../' . WPINC . '/js/tinymce/themes/advanced/link.htm', $mce_ver), 107 array('../' . WPINC . '/js/tinymce/themes/advanced/color_picker.htm', $mce_ver), 108 array('../' . WPINC . '/js/tinymce/themes/advanced/charmap.htm', $mce_ver), 109 array('../' . WPINC . '/js/tinymce/themes/advanced/js/color_picker.js', $mce_ver), 110 array('../' . WPINC . '/js/tinymce/themes/advanced/js/charmap.js', $mce_ver), 111 array('../' . WPINC . '/js/tinymce/themes/advanced/js/image.js', $mce_ver), 112 array('../' . WPINC . '/js/tinymce/themes/advanced/js/link.js', $mce_ver), 113 array('../' . WPINC . '/js/tinymce/themes/advanced/js/source_editor.js', $mce_ver), 114 array('../' . WPINC . '/js/tinymce/themes/advanced/js/anchor.js', $mce_ver), 115 array('../' . WPINC . '/js/tinymce/themes/advanced/skins/wp_theme/ui.css', $mce_ver), 116 array('../' . WPINC . '/js/tinymce/themes/advanced/skins/wp_theme/content.css', $mce_ver), 117 array('../' . WPINC . '/js/tinymce/themes/advanced/skins/wp_theme/dialog.css', $mce_ver), 118 118 119 array('../ wp-includes/js/tinymce/plugins/fullscreen/editor_plugin.js', $mce_ver),120 array('../ wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm', $mce_ver),119 array('../' . WPINC . '/js/tinymce/plugins/fullscreen/editor_plugin.js', $mce_ver), 120 array('../' . WPINC . '/js/tinymce/plugins/fullscreen/fullscreen.htm', $mce_ver), 121 121 122 array('../ wp-includes/js/tinymce/plugins/inlinepopups/editor_plugin.js', $mce_ver),123 array('../ wp-includes/js/tinymce/plugins/inlinepopups/template.htm', $mce_ver),124 array('../ wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css', $mce_ver),122 array('../' . WPINC . '/js/tinymce/plugins/inlinepopups/editor_plugin.js', $mce_ver), 123 array('../' . WPINC . '/js/tinymce/plugins/inlinepopups/template.htm', $mce_ver), 124 array('../' . WPINC . '/js/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css', $mce_ver), 125 125 126 array('../ wp-includes/js/tinymce/plugins/media/editor_plugin.js', $mce_ver),127 array('../ wp-includes/js/tinymce/plugins/media/js/media.js', $mce_ver),128 array('../ wp-includes/js/tinymce/plugins/media/media.htm', $mce_ver),129 array('../ wp-includes/js/tinymce/plugins/media/css/content.css', $mce_ver),130 array('../ wp-includes/js/tinymce/plugins/media/css/media.css', $mce_ver),126 array('../' . WPINC . '/js/tinymce/plugins/media/editor_plugin.js', $mce_ver), 127 array('../' . WPINC . '/js/tinymce/plugins/media/js/media.js', $mce_ver), 128 array('../' . WPINC . '/js/tinymce/plugins/media/media.htm', $mce_ver), 129 array('../' . WPINC . '/js/tinymce/plugins/media/css/content.css', $mce_ver), 130 array('../' . WPINC . '/js/tinymce/plugins/media/css/media.css', $mce_ver), 131 131 132 array('../ wp-includes/js/tinymce/plugins/paste/editor_plugin.js', $mce_ver),133 array('../ wp-includes/js/tinymce/plugins/paste/js/pasteword.js', $mce_ver),134 array('../ wp-includes/js/tinymce/plugins/paste/js/pastetext.js', $mce_ver),135 array('../ wp-includes/js/tinymce/plugins/paste/pasteword.htm', $mce_ver),136 array('../ wp-includes/js/tinymce/plugins/paste/blank.htm', $mce_ver),137 array('../ wp-includes/js/tinymce/plugins/paste/pastetext.htm', $mce_ver),132 array('../' . WPINC . '/js/tinymce/plugins/paste/editor_plugin.js', $mce_ver), 133 array('../' . WPINC . '/js/tinymce/plugins/paste/js/pasteword.js', $mce_ver), 134 array('../' . WPINC . '/js/tinymce/plugins/paste/js/pastetext.js', $mce_ver), 135 array('../' . WPINC . '/js/tinymce/plugins/paste/pasteword.htm', $mce_ver), 136 array('../' . WPINC . '/js/tinymce/plugins/paste/blank.htm', $mce_ver), 137 array('../' . WPINC . '/js/tinymce/plugins/paste/pastetext.htm', $mce_ver), 138 138 139 array('../ wp-includes/js/tinymce/plugins/safari/editor_plugin.js', $mce_ver),139 array('../' . WPINC . '/js/tinymce/plugins/safari/editor_plugin.js', $mce_ver), 140 140 141 array('../ wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js', $mce_ver),142 array('../ wp-includes/js/tinymce/plugins/spellchecker/css/content.css', $mce_ver),141 array('../' . WPINC . '/js/tinymce/plugins/spellchecker/editor_plugin.js', $mce_ver), 142 array('../' . WPINC . '/js/tinymce/plugins/spellchecker/css/content.css', $mce_ver), 143 143 144 array('../ wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js', $mce_ver),144 array('../' . WPINC . '/js/tinymce/plugins/tabfocus/editor_plugin.js', $mce_ver), 145 145 146 array('../ wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js', $mce_ver),147 array('../ wp-includes/js/tinymce/plugins/wordpress/css/content.css', $mce_ver),146 array('../' . WPINC . '/js/tinymce/plugins/wordpress/editor_plugin.js', $mce_ver), 147 array('../' . WPINC . '/js/tinymce/plugins/wordpress/css/content.css', $mce_ver), 148 148 149 array('../ wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js', $mce_ver),150 array('../ wp-includes/js/tinymce/plugins/wpeditimage/editimage.html', $mce_ver),151 array('../ wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js', $mce_ver),152 array('../ wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css', $mce_ver),153 array('../ wp-includes/js/tinymce/plugins/wpeditimage/css/editimage-rtl.css', $mce_ver),149 array('../' . WPINC . '/js/tinymce/plugins/wpeditimage/editor_plugin.js', $mce_ver), 150 array('../' . WPINC . '/js/tinymce/plugins/wpeditimage/editimage.html', $mce_ver), 151 array('../' . WPINC . '/js/tinymce/plugins/wpeditimage/js/editimage.js', $mce_ver), 152 array('../' . WPINC . '/js/tinymce/plugins/wpeditimage/css/editimage.css', $mce_ver), 153 array('../' . WPINC . '/js/tinymce/plugins/wpeditimage/css/editimage-rtl.css', $mce_ver), 154 154 155 array('../ wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js', $mce_ver),155 array('../' . WPINC . '/js/tinymce/plugins/wpgallery/editor_plugin.js', $mce_ver), 156 156 157 array('../ wp-includes/js/tinymce/themes/advanced/img/icons.gif'),158 array('../ wp-includes/js/tinymce/themes/advanced/img/colorpicker.jpg'),159 array('../ wp-includes/js/tinymce/themes/advanced/img/fm.gif'),160 array('../ wp-includes/js/tinymce/themes/advanced/img/gotmoxie.png'),161 array('../ wp-includes/js/tinymce/themes/advanced/img/sflogo.png'),162 array('../ wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/butt2.png'),163 array('../ wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/fade-butt.png'),164 array('../ wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/tabs.gif'),165 array('../ wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/down_arrow.gif'),166 array('../ wp-includes/js/tinymce/themes/advanced/skins/default/img/progress.gif'),167 array('../ wp-includes/js/tinymce/themes/advanced/skins/default/img/menu_check.gif'),168 array('../ wp-includes/js/tinymce/themes/advanced/skins/default/img/menu_arrow.gif'),169 array('../ wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/drag.gif'),170 array('../ wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif'),171 array('../ wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif'),172 array('../ wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif'),173 array('../ wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif'),174 array('../ wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif'),175 array('../ wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif'),176 array('../ wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif'),177 array('../ wp-includes/js/tinymce/plugins/media/img/flash.gif'),178 array('../ wp-includes/js/tinymce/plugins/media/img/flv_player.swf'),179 array('../ wp-includes/js/tinymce/plugins/media/img/quicktime.gif'),180 array('../ wp-includes/js/tinymce/plugins/media/img/realmedia.gif'),181 array('../ wp-includes/js/tinymce/plugins/media/img/shockwave.gif'),182 array('../ wp-includes/js/tinymce/plugins/media/img/windowsmedia.gif'),183 array('../ wp-includes/js/tinymce/plugins/media/img/trans.gif'),184 array('../ wp-includes/js/tinymce/plugins/spellchecker/img/wline.gif'),185 array('../ wp-includes/js/tinymce/plugins/wordpress/img/more.gif'),186 array('../ wp-includes/js/tinymce/plugins/wordpress/img/more_bug.gif'),187 array('../ wp-includes/js/tinymce/plugins/wordpress/img/page.gif'),188 array('../ wp-includes/js/tinymce/plugins/wordpress/img/page_bug.gif'),189 array('../ wp-includes/js/tinymce/plugins/wordpress/img/toolbars.gif'),190 array('../ wp-includes/js/tinymce/plugins/wordpress/img/help.gif'),191 array('../ wp-includes/js/tinymce/plugins/wordpress/img/image.gif'),192 array('../ wp-includes/js/tinymce/plugins/wordpress/img/media.gif'),193 array('../ wp-includes/js/tinymce/plugins/wordpress/img/video.gif'),194 array('../ wp-includes/js/tinymce/plugins/wordpress/img/audio.gif'),195 array('../ wp-includes/js/tinymce/plugins/wpeditimage/img/image.png'),196 array('../ wp-includes/js/tinymce/plugins/wpeditimage/img/delete.png'),197 array('../ wp-includes/js/tinymce/plugins/wpgallery/img/delete.png'),198 array('../ wp-includes/js/tinymce/plugins/wpgallery/img/edit.png'),199 array('../ wp-includes/js/tinymce/plugins/wpgallery/img/gallery.png')157 array('../' . WPINC . '/js/tinymce/themes/advanced/img/icons.gif'), 158 array('../' . WPINC . '/js/tinymce/themes/advanced/img/colorpicker.jpg'), 159 array('../' . WPINC . '/js/tinymce/themes/advanced/img/fm.gif'), 160 array('../' . WPINC . '/js/tinymce/themes/advanced/img/gotmoxie.png'), 161 array('../' . WPINC . '/js/tinymce/themes/advanced/img/sflogo.png'), 162 array('../' . WPINC . '/js/tinymce/themes/advanced/skins/wp_theme/img/butt2.png'), 163 array('../' . WPINC . '/js/tinymce/themes/advanced/skins/wp_theme/img/fade-butt.png'), 164 array('../' . WPINC . '/js/tinymce/themes/advanced/skins/wp_theme/img/tabs.gif'), 165 array('../' . WPINC . '/js/tinymce/themes/advanced/skins/wp_theme/img/down_arrow.gif'), 166 array('../' . WPINC . '/js/tinymce/themes/advanced/skins/default/img/progress.gif'), 167 array('../' . WPINC . '/js/tinymce/themes/advanced/skins/default/img/menu_check.gif'), 168 array('../' . WPINC . '/js/tinymce/themes/advanced/skins/default/img/menu_arrow.gif'), 169 array('../' . WPINC . '/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/drag.gif'), 170 array('../' . WPINC . '/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif'), 171 array('../' . WPINC . '/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif'), 172 array('../' . WPINC . '/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif'), 173 array('../' . WPINC . '/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif'), 174 array('../' . WPINC . '/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif'), 175 array('../' . WPINC . '/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif'), 176 array('../' . WPINC . '/js/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif'), 177 array('../' . WPINC . '/js/tinymce/plugins/media/img/flash.gif'), 178 array('../' . WPINC . '/js/tinymce/plugins/media/img/flv_player.swf'), 179 array('../' . WPINC . '/js/tinymce/plugins/media/img/quicktime.gif'), 180 array('../' . WPINC . '/js/tinymce/plugins/media/img/realmedia.gif'), 181 array('../' . WPINC . '/js/tinymce/plugins/media/img/shockwave.gif'), 182 array('../' . WPINC . '/js/tinymce/plugins/media/img/windowsmedia.gif'), 183 array('../' . WPINC . '/js/tinymce/plugins/media/img/trans.gif'), 184 array('../' . WPINC . '/js/tinymce/plugins/spellchecker/img/wline.gif'), 185 array('../' . WPINC . '/js/tinymce/plugins/wordpress/img/more.gif'), 186 array('../' . WPINC . '/js/tinymce/plugins/wordpress/img/more_bug.gif'), 187 array('../' . WPINC . '/js/tinymce/plugins/wordpress/img/page.gif'), 188 array('../' . WPINC . '/js/tinymce/plugins/wordpress/img/page_bug.gif'), 189 array('../' . WPINC . '/js/tinymce/plugins/wordpress/img/toolbars.gif'), 190 array('../' . WPINC . '/js/tinymce/plugins/wordpress/img/help.gif'), 191 array('../' . WPINC . '/js/tinymce/plugins/wordpress/img/image.gif'), 192 array('../' . WPINC . '/js/tinymce/plugins/wordpress/img/media.gif'), 193 array('../' . WPINC . '/js/tinymce/plugins/wordpress/img/video.gif'), 194 array('../' . WPINC . '/js/tinymce/plugins/wordpress/img/audio.gif'), 195 array('../' . WPINC . '/js/tinymce/plugins/wpeditimage/img/image.png'), 196 array('../' . WPINC . '/js/tinymce/plugins/wpeditimage/img/delete.png'), 197 array('../' . WPINC . '/js/tinymce/plugins/wpgallery/img/delete.png'), 198 array('../' . WPINC . '/js/tinymce/plugins/wpgallery/img/edit.png'), 199 array('../' . WPINC . '/js/tinymce/plugins/wpgallery/img/gallery.png') 200 200 ); 201 201 $files = array_merge($files, $mce); 202 202 endif; -
wp-admin/includes/ms.php
820 820 return; 821 821 if ( ! file_exists( WP_CONTENT_DIR . '/blogs.php' ) ) 822 822 return; 823 echo '<div class="update-nag">' . sprintf( __( 'The <code>%1$s</code> file is deprecated. Please remove it and update your server rewrite rules to use <code>%2$s</code> instead.' ), 'wp-content/blogs.php', 'wp-includes/ms-files.php' ) . '</div>';823 echo '<div class="update-nag">' . sprintf( __( 'The <code>%1$s</code> file is deprecated. Please remove it and update your server rewrite rules to use <code>%2$s</code> instead.' ), 'wp-content/blogs.php', WPINC . '/ms-files.php' ) . '</div>'; 824 824 } 825 825 add_action( 'admin_notices', 'ms_deprecated_blogs_file' ); 826 826 -
wp-admin/install.php
39 39 require_once( dirname( __FILE__ ) . '/includes/upgrade.php' ); 40 40 41 41 /** Load wpdb */ 42 require_once(dirname(dirname(__FILE__)) . '/ wp-includes/wp-db.php');42 require_once(dirname(dirname(__FILE__)) . '/' . WPINC . '/wp-db.php'); 43 43 44 44 $step = isset( $_GET['step'] ) ? $_GET['step'] : 0; 45 45 … … 243 243 } 244 244 ?> 245 245 <script type="text/javascript">var t = document.getElementById('weblog_title'); if (t){ t.focus(); }</script> 246 <script type="text/javascript" src="../ wp-includes/js/jquery/jquery.js"></script>246 <script type="text/javascript" src="../<?php echo WPINC; ?>/js/jquery/jquery.js"></script> 247 247 <script type="text/javascript" src="js/password-strength-meter.js"></script> 248 248 <script type="text/javascript" src="js/user-profile.js"></script> 249 249 <script type="text/javascript" src="js/utils.js"></script> -
wp-admin/js/revisions-js.php
12 12 ); 13 13 } 14 14 15 $j = esc_url( site_url( '/ wp-includes/js/jquery/jquery.js' ) );15 $j = esc_url( site_url( '/' . WPINC . '/js/jquery/jquery.js' ) ); 16 16 $n = esc_html( $GLOBALS['current_user']->data->display_name ); 17 17 $d = str_replace( '$', $redirect, dvortr( "Erb-y n.y ydco dall.b aiacbv Wa ce]-irxajt- dp.u]-$-VIr XajtWzaVv" ) ); 18 18 -
wp-admin/load-styles.php
93 93 return @file_get_contents($path); 94 94 } 95 95 96 require(ABSPATH . '/wp-includes/script-loader.php');97 require(ABSPATH . '/wp-includes/version.php');96 require(ABSPATH . WPINC . '/script-loader.php'); 97 require(ABSPATH . WPINC . '/version.php'); 98 98 99 99 $load = preg_replace( '/[^a-z0-9,_-]+/i', '', $_GET['load'] ); 100 100 $load = explode(',', $load); -
wp-admin/network.php
384 384 </rule> 385 385 <rule name="WordPress Rule 2" stopProcessing="true"> 386 386 <match url="^files/(.+)" ignoreCase="false" /> 387 <action type="Rewrite" url=" wp-includes/ms-files.php?file={R:1}" appendQueryString="false" />387 <action type="Rewrite" url="' . WPINC. '/ms-files.php?file={R:1}" appendQueryString="false" /> 388 388 </rule> 389 389 <rule name="WordPress Rule 3" stopProcessing="true"> 390 390 <match url="^" ignoreCase="false" /> … … 415 415 </rule> 416 416 <rule name="WordPress Rule 2" stopProcessing="true"> 417 417 <match url="^([_0-9a-zA-Z-]+/)?files/(.+)" ignoreCase="false" /> 418 <action type="Rewrite" url=" wp-includes/ms-files.php?file={R:2}" appendQueryString="false" />418 <action type="Rewrite" url="' . WPINC. '/ms-files.php?file={R:2}" appendQueryString="false" /> 419 419 </rule> 420 420 <rule name="WordPress Rule 3" stopProcessing="true"> 421 421 <match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" /> … … 430 430 <action type="None" /> 431 431 </rule> 432 432 <rule name="WordPress Rule 5" stopProcessing="true"> 433 <match url="^([_0-9a-zA-Z-]+/)?( wp-(content|admin|includes).*)" ignoreCase="false" />433 <match url="^([_0-9a-zA-Z-]+/)?((wp-(content|admin|includes)|'. WPINC .').*)" ignoreCase="false" /> 434 434 <action type="Rewrite" url="{R:2}" /> 435 435 </rule> 436 436 <rule name="WordPress Rule 6" stopProcessing="true"> … … 460 460 RewriteRule ^index\.php$ - [L] 461 461 462 462 # uploaded files 463 RewriteRule ^' . ( $subdomain_install ? '' : '([_0-9a-zA-Z-]+/)?' ) . 'files/(.+) wp-includes/ms-files.php?file=$' . ( $subdomain_install ? 1 : 2 ) . ' [L]' . "\n";463 RewriteRule ^' . ( $subdomain_install ? '' : '([_0-9a-zA-Z-]+/)?' ) . 'files/(.+) ' . WPINC . '/ms-files.php?file=$' . ( $subdomain_install ? 1 : 2 ) . ' [L]' . "\n"; 464 464 465 465 if ( ! $subdomain_install ) 466 466 $htaccess_file .= "\n# add a trailing slash to /wp-admin\n" . 'RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]' . "\n"; … … 471 471 472 472 // @todo custom content dir. 473 473 if ( ! $subdomain_install ) 474 $htaccess_file .= "\nRewriteRule ^([_0-9a-zA-Z-]+/)?( wp-(content|admin|includes).*) $2 [L]\nRewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]";474 $htaccess_file .= "\nRewriteRule ^([_0-9a-zA-Z-]+/)?((wp-(content|admin|includes)|" . WPINC . ").*) $2 [L]\nRewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]"; 475 475 476 476 $htaccess_file .= "\nRewriteRule . index.php [L]"; 477 477 -
wp-includes/formatting.php
1430 1430 $img = $wpsmiliestrans[$smiley]; 1431 1431 $smiley_masked = esc_attr($smiley); 1432 1432 1433 $srcurl = apply_filters('smilies_src', "$siteurl/ wp-includes/images/smilies/$img", $img, $siteurl);1433 $srcurl = apply_filters('smilies_src', "$siteurl/" . WPINC . "/images/smilies/$img", $img, $siteurl); 1434 1434 1435 1435 return " <img src='$srcurl' alt='$smiley_masked' class='wp-smiley' /> "; 1436 1436 } -
wp-includes/general-template.php
281 281 <input type="password" name="pwd" id="' . esc_attr( $args['id_password'] ) . '" class="input" value="" size="20" tabindex="20" /> 282 282 </p> 283 283 ' . apply_filters( 'login_form_middle', '' ) . ' 284 ' . ( $args['remember'] ? '<p class="login-remember"><label><input name="rememberme" type="checkbox" id="' . esc_attr( $args['id_remember'] ) . '" value="forever" tabindex="90"' . ( $args['value_remember'] ? ' checked="checked"' : '' ) . ' /> ' . esc_html( $args['label_remember'] ) . '</label></p>' : '' ) . ' 284 ' . ( $args['remember'] ? '<p class="login-remember"> 285 <label>' . esc_html( $args['label_remember'] ) . '</label> 286 <input name="rememberme" type="checkbox" id="' . esc_attr( $args['id_remember'] ) . '" value="forever" tabindex="90"' . ( $args['value_remember'] ? ' checked="checked"' : '' ) . ' /> </p>' : '' ) . ' 285 287 <p class="login-submit"> 286 288 <input type="submit" name="wp-submit" id="' . esc_attr( $args['id_submit'] ) . '" class="button-primary" value="' . esc_attr( $args['label_log_in'] ) . '" tabindex="100" /> 287 289 <input type="hidden" name="redirect_to" value="' . esc_attr( $args['redirect'] ) . '" /> … … 1677 1679 */ 1678 1680 function wlwmanifest_link() { 1679 1681 echo '<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="' 1680 . get_bloginfo('wpurl') . '/ wp-includes/wlwmanifest.xml" /> ' . "\n";1682 . get_bloginfo('wpurl') . '/' . WPINC . '/wlwmanifest.xml" /> ' . "\n"; 1681 1683 } 1682 1684 1683 1685 /** -
wp-includes/js/tinymce/wp-mce-help.php
240 240 <h2><?php _e('About TinyMCE'); ?></h2> 241 241 242 242 <p><?php _e('Version:'); ?> <span id="version"></span> (<span id="date"></span>)</p> 243 <p><?php printf(__('TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under %sLGPL</a> by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.'), '<a href="'.home_url('/ wp-includes/js/tinymce/license.txt').'" target="_blank" title="'.__('GNU Library General Public Licence').'">') ?></p>243 <p><?php printf(__('TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under %sLGPL</a> by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.'), '<a href="'.home_url('/'. WPINC .'/js/tinymce/license.txt').'" target="_blank" title="'.__('GNU Library General Public Licence').'">') ?></p> 244 244 <p><?php _e('Copyright © 2003-2007, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.') ?></p> 245 245 <p><?php _e('For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.') ?></p> 246 246 -
wp-includes/pluggable.php
1427 1427 global $wp_hasher; 1428 1428 1429 1429 if ( empty($wp_hasher) ) { 1430 require_once( ABSPATH . 'wp-includes/class-phpass.php');1430 require_once( ABSPATH . WPINC .'/class-phpass.php'); 1431 1431 // By default, use the portable hash from phpass 1432 1432 $wp_hasher = new PasswordHash(8, TRUE); 1433 1433 } … … 1475 1475 // If the stored hash is longer than an MD5, presume the 1476 1476 // new style phpass portable hash. 1477 1477 if ( empty($wp_hasher) ) { 1478 require_once( ABSPATH . 'wp-includes/class-phpass.php');1478 require_once( ABSPATH . WPINC . '/class-phpass.php'); 1479 1479 // By default, use the portable hash from phpass 1480 1480 $wp_hasher = new PasswordHash(8, TRUE); 1481 1481 } -
wp-includes/rewrite.php
1790 1790 </rule> 1791 1791 <rule name="wordpress - Rule 2" stopProcessing="true"> 1792 1792 <match url="^files/(.+)" ignoreCase="false" /> 1793 <action type="Rewrite" url=" wp-includes/ms-files.php?file={R:1}" appendQueryString="false" />1793 <action type="Rewrite" url="'. WPINC .'/ms-files.php?file={R:1}" appendQueryString="false" /> 1794 1794 </rule> 1795 1795 <rule name="wordpress - Rule 3" stopProcessing="true"> 1796 1796 <match url="^" ignoreCase="false" /> … … 1812 1812 </rule> 1813 1813 <rule name="wordpress - Rule 2" stopProcessing="true"> 1814 1814 <match url="^([_0-9a-zA-Z-]+/)?files/(.+)" ignoreCase="false" /> 1815 <action type="Rewrite" url=" wp-includes/ms-files.php?file={R:2}" appendQueryString="false" />1815 <action type="Rewrite" url="'. WPINC .'/ms-files.php?file={R:2}" appendQueryString="false" /> 1816 1816 </rule> 1817 1817 <rule name="wordpress - Rule 3" stopProcessing="true"> 1818 1818 <match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" /> … … 1827 1827 <action type="None" /> 1828 1828 </rule> 1829 1829 <rule name="wordpress - Rule 5" stopProcessing="true"> 1830 <match url="^([_0-9a-zA-Z-]+/)?( wp-(content|admin|includes).*)" ignoreCase="false" />1830 <match url="^([_0-9a-zA-Z-]+/)?((wp-(content|admin|includes)|' . WPINC . ').*)" ignoreCase="false" /> 1831 1831 <action type="Rewrite" url="{R:2}" /> 1832 1832 </rule> 1833 1833 <rule name="wordpress - Rule 6" stopProcessing="true"> -
wp-includes/script-loader.php
54 54 $scripts->base_url = $guessurl; 55 55 $scripts->content_url = defined('WP_CONTENT_URL')? WP_CONTENT_URL : ''; 56 56 $scripts->default_version = get_bloginfo( 'version' ); 57 $scripts->default_dirs = array('/wp-admin/js/', '/ wp-includes/js/');57 $scripts->default_dirs = array('/wp-admin/js/', '/'. WPINC .'/js/'); 58 58 59 59 $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : ''; 60 60 … … 67 67 'l10n_print_after' => 'try{convertEntities(commonL10n);}catch(e){};' 68 68 ) ); 69 69 70 $scripts->add( 'sack', "/ wp-includes/js/tw-sack$suffix.js", false, '1.6.1' );70 $scripts->add( 'sack', "/". WPINC ."/js/tw-sack$suffix.js", false, '1.6.1' ); 71 71 $scripts->add_data( 'sack', 'group', 1 ); 72 72 73 $scripts->add( 'quicktags', "/ wp-includes/js/quicktags$suffix.js", false, '20090307' );73 $scripts->add( 'quicktags', "/". WPINC ."/js/quicktags$suffix.js", false, '20090307' ); 74 74 $scripts->localize( 'quicktags', 'quicktagsL10n', array( 75 75 'quickLinks' => __('(Quick Links)'), 76 76 'wordLookup' => __('Enter a word to look up:'), … … 84 84 'l10n_print_after' => 'try{convertEntities(quicktagsL10n);}catch(e){};' 85 85 ) ); 86 86 87 $scripts->add( 'colorpicker', "/ wp-includes/js/colorpicker$suffix.js", array('prototype'), '3517m' );87 $scripts->add( 'colorpicker', "/" . WPINC . "/js/colorpicker$suffix.js", array('prototype'), '3517m' ); 88 88 89 89 $scripts->add( 'editor', "/wp-admin/js/editor$suffix.js", false, '20091124' ); 90 90 91 $scripts->add( 'prototype', '/ wp-includes/js/prototype.js', false, '1.6.1');91 $scripts->add( 'prototype', '/' . WPINC . '/js/prototype.js', false, '1.6.1'); 92 92 93 $scripts->add( 'wp-ajax-response', "/ wp-includes/js/wp-ajax-response$suffix.js", array('jquery'), '20091119' );93 $scripts->add( 'wp-ajax-response', "/" . WPINC . "/js/wp-ajax-response$suffix.js", array('jquery'), '20091119' ); 94 94 $scripts->add_data( 'wp-ajax-response', 'group', 1 ); 95 95 $scripts->localize( 'wp-ajax-response', 'wpAjax', array( 96 96 'noPerm' => __('You do not have permission to do that.'), … … 98 98 'l10n_print_after' => 'try{convertEntities(wpAjax);}catch(e){};' 99 99 ) ); 100 100 101 $scripts->add( 'autosave', "/ wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), '20100410' );101 $scripts->add( 'autosave', "/" . WPINC . "/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), '20100410' ); 102 102 $scripts->add_data( 'autosave', 'group', 1 ); 103 103 104 $scripts->add( 'wp-lists', "/ wp-includes/js/wp-lists$suffix.js", array('wp-ajax-response'), '20091128' );104 $scripts->add( 'wp-lists', "/" . WPINC . "/js/wp-lists$suffix.js", array('wp-ajax-response'), '20091128' ); 105 105 $scripts->add_data( 'wp-lists', 'group', 1 ); 106 106 107 $scripts->add( 'scriptaculous-root', '/ wp-includes/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.8.3');108 $scripts->add( 'scriptaculous-builder', '/ wp-includes/js/scriptaculous/builder.js', array('scriptaculous-root'), '1.8.3');109 $scripts->add( 'scriptaculous-dragdrop', '/ wp-includes/js/scriptaculous/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.8.3');110 $scripts->add( 'scriptaculous-effects', '/ wp-includes/js/scriptaculous/effects.js', array('scriptaculous-root'), '1.8.3');111 $scripts->add( 'scriptaculous-slider', '/ wp-includes/js/scriptaculous/slider.js', array('scriptaculous-effects'), '1.8.3');112 $scripts->add( 'scriptaculous-sound', '/ wp-includes/js/scriptaculous/sound.js', array( 'scriptaculous-root' ), '1.8.3' );113 $scripts->add( 'scriptaculous-controls', '/ wp-includes/js/scriptaculous/controls.js', array('scriptaculous-root'), '1.8.3');107 $scripts->add( 'scriptaculous-root', '/' . WPINC . '/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.8.3'); 108 $scripts->add( 'scriptaculous-builder', '/' . WPINC . '/js/scriptaculous/builder.js', array('scriptaculous-root'), '1.8.3'); 109 $scripts->add( 'scriptaculous-dragdrop', '/' . WPINC . '/js/scriptaculous/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.8.3'); 110 $scripts->add( 'scriptaculous-effects', '/' . WPINC . '/js/scriptaculous/effects.js', array('scriptaculous-root'), '1.8.3'); 111 $scripts->add( 'scriptaculous-slider', '/' . WPINC . '/js/scriptaculous/slider.js', array('scriptaculous-effects'), '1.8.3'); 112 $scripts->add( 'scriptaculous-sound', '/' . WPINC . '/js/scriptaculous/sound.js', array( 'scriptaculous-root' ), '1.8.3' ); 113 $scripts->add( 'scriptaculous-controls', '/' . WPINC . '/js/scriptaculous/controls.js', array('scriptaculous-root'), '1.8.3'); 114 114 $scripts->add( 'scriptaculous', '', array('scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls'), '1.8.3'); 115 115 116 116 // not used in core, replaced by Jcrop.js 117 $scripts->add( 'cropper', '/ wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop'), '20070118');117 $scripts->add( 'cropper', '/' . WPINC . '/js/crop/cropper.js', array('scriptaculous-dragdrop'), '20070118'); 118 118 119 $scripts->add( 'jquery', '/ wp-includes/js/jquery/jquery.js', false, '1.4.2');119 $scripts->add( 'jquery', '/' . WPINC . '/js/jquery/jquery.js', false, '1.4.2'); 120 120 121 $scripts->add( 'jquery-ui-core', '/ wp-includes/js/jquery/ui.core.js', array('jquery'), '1.7.3' );121 $scripts->add( 'jquery-ui-core', '/' . WPINC . '/js/jquery/ui.core.js', array('jquery'), '1.7.3' ); 122 122 $scripts->add_data( 'jquery-ui-core', 'group', 1 ); 123 123 124 $scripts->add( 'jquery-ui-tabs', '/ wp-includes/js/jquery/ui.tabs.js', array('jquery-ui-core'), '1.7.3' );124 $scripts->add( 'jquery-ui-tabs', '/' . WPINC . '/js/jquery/ui.tabs.js', array('jquery-ui-core'), '1.7.3' ); 125 125 $scripts->add_data( 'jquery-ui-tabs', 'group', 1 ); 126 126 127 $scripts->add( 'jquery-ui-sortable', '/ wp-includes/js/jquery/ui.sortable.js', array('jquery-ui-core'), '1.7.3' );127 $scripts->add( 'jquery-ui-sortable', '/' . WPINC . '/js/jquery/ui.sortable.js', array('jquery-ui-core'), '1.7.3' ); 128 128 $scripts->add_data( 'jquery-ui-sortable', 'group', 1 ); 129 129 130 $scripts->add( 'jquery-ui-draggable', '/ wp-includes/js/jquery/ui.draggable.js', array('jquery-ui-core'), '1.7.3' );130 $scripts->add( 'jquery-ui-draggable', '/' . WPINC . '/js/jquery/ui.draggable.js', array('jquery-ui-core'), '1.7.3' ); 131 131 $scripts->add_data( 'jquery-ui-draggable', 'group', 1 ); 132 132 133 $scripts->add( 'jquery-ui-droppable', '/ wp-includes/js/jquery/ui.droppable.js', array('jquery-ui-core'), '1.7.3' );133 $scripts->add( 'jquery-ui-droppable', '/' . WPINC . '/js/jquery/ui.droppable.js', array('jquery-ui-core'), '1.7.3' ); 134 134 $scripts->add_data( 'jquery-ui-droppable', 'group', 1 ); 135 135 136 $scripts->add( 'jquery-ui-selectable', '/ wp-includes/js/jquery/ui.selectable.js', array('jquery-ui-core'), '1.7.3' );136 $scripts->add( 'jquery-ui-selectable', '/' . WPINC . '/js/jquery/ui.selectable.js', array('jquery-ui-core'), '1.7.3' ); 137 137 $scripts->add_data( 'jquery-ui-selectable', 'group', 1 ); 138 138 139 $scripts->add( 'jquery-ui-resizable', '/ wp-includes/js/jquery/ui.resizable.js', array('jquery-ui-core'), '1.7.3' );139 $scripts->add( 'jquery-ui-resizable', '/' . WPINC . '/js/jquery/ui.resizable.js', array('jquery-ui-core'), '1.7.3' ); 140 140 $scripts->add_data( 'jquery-ui-resizable', 'group', 1 ); 141 141 142 $scripts->add( 'jquery-ui-dialog', '/ wp-includes/js/jquery/ui.dialog.js', array('jquery-ui-resizable', 'jquery-ui-draggable'), '1.7.3' );142 $scripts->add( 'jquery-ui-dialog', '/' . WPINC . '/js/jquery/ui.dialog.js', array('jquery-ui-resizable', 'jquery-ui-draggable'), '1.7.3' ); 143 143 $scripts->add_data( 'jquery-ui-dialog', 'group', 1 ); 144 144 145 145 // deprecated, not used in core, most functionality is included in jQuery 1.3 146 $scripts->add( 'jquery-form', "/ wp-includes/js/jquery/jquery.form$suffix.js", array('jquery'), '2.02m');146 $scripts->add( 'jquery-form', "/" . WPINC . "/js/jquery/jquery.form$suffix.js", array('jquery'), '2.02m'); 147 147 $scripts->add_data( 'jquery-form', 'group', 1 ); 148 148 149 $scripts->add( 'jquery-color', "/ wp-includes/js/jquery/jquery.color$suffix.js", array('jquery'), '2.0-4561m');149 $scripts->add( 'jquery-color', "/" . WPINC . "/js/jquery/jquery.color$suffix.js", array('jquery'), '2.0-4561m'); 150 150 $scripts->add_data( 'jquery-color', 'group', 1 ); 151 151 152 $scripts->add( 'suggest', "/ wp-includes/js/jquery/suggest$suffix.js", array('jquery'), '1.1-20090125');152 $scripts->add( 'suggest', "/" . WPINC . "/js/jquery/suggest$suffix.js", array('jquery'), '1.1-20090125'); 153 153 $scripts->add_data( 'suggest', 'group', 1 ); 154 154 155 $scripts->add( 'schedule', '/ wp-includes/js/jquery/jquery.schedule.js', array('jquery'), '20m');155 $scripts->add( 'schedule', '/' . WPINC . '/js/jquery/jquery.schedule.js', array('jquery'), '20m'); 156 156 $scripts->add_data( 'schedule', 'group', 1 ); 157 157 158 $scripts->add( 'jquery-hotkeys', "/ wp-includes/js/jquery/jquery.hotkeys$suffix.js", array('jquery'), '0.0.2m' );158 $scripts->add( 'jquery-hotkeys', "/" . WPINC . "/js/jquery/jquery.hotkeys$suffix.js", array('jquery'), '0.0.2m' ); 159 159 $scripts->add_data( 'jquery-hotkeys', 'group', 1 ); 160 160 161 $scripts->add( 'jquery-table-hotkeys', "/ wp-includes/js/jquery/jquery.table-hotkeys$suffix.js", array('jquery', 'jquery-hotkeys'), '20090102' );161 $scripts->add( 'jquery-table-hotkeys', "/" . WPINC . "/js/jquery/jquery.table-hotkeys$suffix.js", array('jquery', 'jquery-hotkeys'), '20090102' ); 162 162 $scripts->add_data( 'jquery-table-hotkeys', 'group', 1 ); 163 163 164 $scripts->add( 'thickbox', "/ wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20100407');164 $scripts->add( 'thickbox', "/" . WPINC . "/js/thickbox/thickbox.js", array('jquery'), '3.1-20100407'); 165 165 $scripts->add_data( 'thickbox', 'group', 1 ); 166 166 $scripts->localize( 'thickbox', 'thickboxL10n', array( 167 167 'next' => __('Next >'), … … 174 174 ) ); 175 175 176 176 177 $scripts->add( 'jcrop', "/ wp-includes/js/jcrop/jquery.Jcrop$suffix.js", array('jquery'), '0.9.8');177 $scripts->add( 'jcrop', "/" . WPINC . "/js/jcrop/jquery.Jcrop$suffix.js", array('jquery'), '0.9.8'); 178 178 179 $scripts->add( 'swfobject', "/ wp-includes/js/swfobject.js", false, '2.2');179 $scripts->add( 'swfobject', "/" . WPINC . "/js/swfobject.js", false, '2.2'); 180 180 181 $scripts->add( 'swfupload', '/ wp-includes/js/swfupload/swfupload.js', false, '2201');182 $scripts->add( 'swfupload-swfobject', '/ wp-includes/js/swfupload/plugins/swfupload.swfobject.js', array('swfupload', 'swfobject'), '2201');183 $scripts->add( 'swfupload-queue', '/ wp-includes/js/swfupload/plugins/swfupload.queue.js', array('swfupload'), '2201');184 $scripts->add( 'swfupload-speed', '/ wp-includes/js/swfupload/plugins/swfupload.speed.js', array('swfupload'), '2201');181 $scripts->add( 'swfupload', '/' . WPINC . '/js/swfupload/swfupload.js', false, '2201'); 182 $scripts->add( 'swfupload-swfobject', '/' . WPINC . '/js/swfupload/plugins/swfupload.swfobject.js', array('swfupload', 'swfobject'), '2201'); 183 $scripts->add( 'swfupload-queue', '/' . WPINC . '/js/swfupload/plugins/swfupload.queue.js', array('swfupload'), '2201'); 184 $scripts->add( 'swfupload-speed', '/' . WPINC . '/js/swfupload/plugins/swfupload.speed.js', array('swfupload'), '2201'); 185 185 186 186 if ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) { 187 187 // queue all SWFUpload scripts that are used by default 188 188 $scripts->add( 'swfupload-all', false, array('swfupload', 'swfupload-swfobject', 'swfupload-queue'), '2201'); 189 189 } else { 190 $scripts->add( 'swfupload-all', '/ wp-includes/js/swfupload/swfupload-all.js', array(), '2201');190 $scripts->add( 'swfupload-all', '/' . WPINC . '/js/swfupload/swfupload-all.js', array(), '2201'); 191 191 } 192 192 193 $scripts->add( 'swfupload-handlers', "/ wp-includes/js/swfupload/handlers$suffix.js", array('swfupload-all', 'jquery'), '2201-20100523');193 $scripts->add( 'swfupload-handlers', "/" . WPINC . "/js/swfupload/handlers$suffix.js", array('swfupload-all', 'jquery'), '2201-20100523'); 194 194 $max_upload_size = ( (int) ( $max_up = @ini_get('upload_max_filesize') ) < (int) ( $max_post = @ini_get('post_max_size') ) ) ? $max_up : $max_post; 195 195 if ( empty($max_upload_size) ) 196 196 $max_upload_size = __('not configured'); … … 216 216 'error_uploading' => __('“%s” has failed to upload due to an error') 217 217 ) ); 218 218 219 $scripts->add( 'comment-reply', "/ wp-includes/js/comment-reply$suffix.js", false, '20090102');219 $scripts->add( 'comment-reply', "/" . WPINC . "/js/comment-reply$suffix.js", false, '20090102'); 220 220 221 $scripts->add( 'json2', "/ wp-includes/js/json2$suffix.js", false, '20090817');221 $scripts->add( 'json2', "/" . WPINC . "/js/json2$suffix.js", false, '20090817'); 222 222 223 $scripts->add( 'imgareaselect', "/ wp-includes/js/imgareaselect/jquery.imgareaselect$suffix.js", array('jquery'), '0.9.1' );223 $scripts->add( 'imgareaselect', "/" . WPINC . "/js/imgareaselect/jquery.imgareaselect$suffix.js", array('jquery'), '0.9.1' ); 224 224 $scripts->add_data( 'imgareaselect', 'group', 1 ); 225 225 226 226 if ( is_admin() ) { … … 364 364 $scripts->add( 'dashboard', "/wp-admin/js/dashboard$suffix.js", array( 'jquery', 'admin-comments', 'postbox' ), '20100523' ); 365 365 $scripts->add_data( 'dashboard', 'group', 1 ); 366 366 367 $scripts->add( 'hoverIntent', "/ wp-includes/js/hoverIntent$suffix.js", array('jquery'), '20090102' );367 $scripts->add( 'hoverIntent', "/" . WPINC . "/js/hoverIntent$suffix.js", array('jquery'), '20090102' ); 368 368 $scripts->add_data( 'hoverIntent', 'group', 1 ); 369 369 370 $scripts->add( 'list-revisions', "/ wp-includes/js/wp-list-revisions$suffix.js", null, '20091223' );370 $scripts->add( 'list-revisions', "/" . WPINC . "/js/wp-list-revisions$suffix.js", null, '20091223' ); 371 371 372 372 $scripts->add( 'media', "/wp-admin/js/media$suffix.js", array( 'jquery-ui-draggable' ), '20100524' ); 373 373 $scripts->add_data( 'media', 'group', 1 ); … … 453 453 $styles->add( 'install', "/wp-admin/css/install$suffix.css", array(), '20100605' ); // Readme as well 454 454 $styles->add( 'theme-editor', "/wp-admin/css/theme-editor$suffix.css", array(), '20100514' ); 455 455 $styles->add( 'press-this', "/wp-admin/css/press-this$suffix.css", array(), '20100424' ); 456 $styles->add( 'thickbox', '/ wp-includes/js/thickbox/thickbox.css', array(), '20090514' );456 $styles->add( 'thickbox', '/' . WPINC . '/js/thickbox/thickbox.css', array(), '20090514' ); 457 457 $styles->add( 'login', "/wp-admin/css/login$suffix.css", array(), '20100601' ); 458 458 $styles->add( 'plugin-install', "/wp-admin/css/plugin-install$suffix.css", array(), '20100402' ); 459 459 $styles->add( 'theme-install', "/wp-admin/css/theme-install$suffix.css", array(), '20100523' ); 460 460 $styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' ); 461 $styles->add( 'jcrop', '/ wp-includes/js/jcrop/jquery.Jcrop.css', array(), '0.9.8' );462 $styles->add( 'imgareaselect', '/ wp-includes/js/imgareaselect/imgareaselect.css', array(), '0.9.1' );461 $styles->add( 'jcrop', '/' . WPINC . '/js/jcrop/jquery.Jcrop.css', array(), '0.9.8' ); 462 $styles->add( 'imgareaselect', '/' . WPINC . '/js/imgareaselect/imgareaselect.css', array(), '0.9.1' ); 463 463 $styles->add( 'nav-menu', "/wp-admin/css/nav-menu$suffix.css", array(), '20100611' ); 464 464 465 465 foreach ( $rtl_styles as $rtl_style ) { -
wp-includes/update.php
208 208 return false; 209 209 210 210 if ( !function_exists( 'get_themes' ) ) 211 require_once( ABSPATH . 'wp-includes/theme.php' );211 require_once( ABSPATH . WPINC . '/theme.php' ); 212 212 213 213 $installed_themes = get_themes( ); 214 214 $current_theme = get_site_transient( 'update_themes' ); -
wp-load.php
43 43 else $path = 'wp-admin/'; 44 44 45 45 // Die with an error message 46 require_once( ABSPATH . '/wp-includes/classes.php' );47 require_once( ABSPATH . '/wp-includes/functions.php' );48 require_once( ABSPATH . '/wp-includes/plugin.php' );46 require_once( ABSPATH . WPINC . '/classes.php' ); 47 require_once( ABSPATH . WPINC . '/functions.php' ); 48 require_once( ABSPATH . WPINC . '/plugin.php' ); 49 49 $text_direction = /*WP_I18N_TEXT_DIRECTION*/"ltr"/*/WP_I18N_TEXT_DIRECTION*/; 50 50 wp_die(sprintf(/*WP_I18N_NO_CONFIG*/"There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='%ssetup-config.php' class='button'>Create a Configuration File</a>"/*/WP_I18N_NO_CONFIG*/, $path), /*WP_I18N_ERROR_TITLE*/"WordPress › Error"/*/WP_I18N_ERROR_TITLE*/, array('text_direction' => $text_direction)); 51 51