WordPress.org

Make WordPress Core

Ticket #14157: 14157.diff

File 14157.diff, 45.7 KB (added by wojtek.szkutnik, 8 years ago)
  • wp-admin/includes/class-wp-filesystem-base.php

     
    4848        function abspath() {
    4949                $folder = $this->find_folder(ABSPATH);
    5050                //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) )
    5252                        $folder = '/';
    5353                return $folder;
    5454        }
  • wp-admin/includes/manifest.php

     
    7171                array('images/wp-logo.png'),
    7272                array('images/xit.gif'),
    7373                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'),
    8888        );
    8989
    90         if ( @is_file('../wp-includes/js/tinymce/tiny_mce.js') ) :
     90        if ( @is_file('../' . WPINC . '/js/tinymce/tiny_mce.js') ) :
    9191        $mce = array(
    92                 array('../wp-includes/js/tinymce/wp-tinymce.php', $mce_ver),
     92                array('../' . WPINC . '/js/tinymce/wp-tinymce.php', $mce_ver),
    9393
    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),
    101101
    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),
    118118
    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),
    121121
    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),
    125125
    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),
    131131
    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),
    138138
    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),
    140140
    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),
    143143
    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),
    145145
    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),
    148148
    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),
    154154
    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),
    156156
    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')
    200200        );
    201201        $files = array_merge($files, $mce);
    202202        endif;
  • wp-admin/includes/ms.php

     
    820820                return;
    821821        if ( ! file_exists( WP_CONTENT_DIR . '/blogs.php' ) )
    822822                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>';
    824824}
    825825add_action( 'admin_notices', 'ms_deprecated_blogs_file' );
    826826
  • wp-admin/install.php

     
    3939require_once( dirname( __FILE__ ) . '/includes/upgrade.php' );
    4040
    4141/** Load wpdb */
    42 require_once(dirname(dirname(__FILE__)) . '/wp-includes/wp-db.php');
     42require_once(dirname(dirname(__FILE__)) . '/' . WPINC . '/wp-db.php');
    4343
    4444$step = isset( $_GET['step'] ) ? $_GET['step'] : 0;
    4545
     
    243243}
    244244?>
    245245<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>
    247247<script type="text/javascript" src="js/password-strength-meter.js"></script>
    248248<script type="text/javascript" src="js/user-profile.js"></script>
    249249<script type="text/javascript" src="js/utils.js"></script>
  • wp-admin/js/revisions-js.php

     
    1212        );
    1313}
    1414
    15 $j = esc_url( site_url( '/wp-includes/js/jquery/jquery.js' ) );
     15$j = esc_url( site_url( '/' . WPINC . '/js/jquery/jquery.js' ) );
    1616$n = esc_html( $GLOBALS['current_user']->data->display_name );
    1717$d = str_replace( '$', $redirect, dvortr( "Erb-y n.y ydco dall.b aiacbv Wa ce]-irxajt- dp.u]-$-VIr XajtWzaVv" ) );
    1818
  • wp-admin/load-styles.php

     
    9393        return @file_get_contents($path);
    9494}
    9595
    96 require(ABSPATH . '/wp-includes/script-loader.php');
    97 require(ABSPATH . '/wp-includes/version.php');
     96require(ABSPATH . WPINC . '/script-loader.php');
     97require(ABSPATH . WPINC . '/version.php');
    9898
    9999$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $_GET['load'] );
    100100$load = explode(',', $load);
  • wp-admin/network.php

     
    384384                </rule>
    385385                <rule name="WordPress Rule 2" stopProcessing="true">
    386386                    <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" />
    388388                </rule>
    389389                <rule name="WordPress Rule 3" stopProcessing="true">
    390390                    <match url="^" ignoreCase="false" />
     
    415415                </rule>
    416416                <rule name="WordPress Rule 2" stopProcessing="true">
    417417                    <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" />
    419419                </rule>
    420420                <rule name="WordPress Rule 3" stopProcessing="true">
    421421                    <match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
     
    430430                    <action type="None" />
    431431                </rule>
    432432                <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" />
    434434                    <action type="Rewrite" url="{R:2}" />
    435435                </rule>
    436436                <rule name="WordPress Rule 6" stopProcessing="true">
     
    460460RewriteRule ^index\.php$ - [L]
    461461
    462462# uploaded files
    463 RewriteRule ^' . ( $subdomain_install ? '' : '([_0-9a-zA-Z-]+/)?' ) . 'files/(.+) wp-includes/ms-files.php?file=$' . ( $subdomain_install ? 1 : 2 ) . ' [L]' . "\n";
     463RewriteRule ^' . ( $subdomain_install ? '' : '([_0-9a-zA-Z-]+/)?' ) . 'files/(.+) ' . WPINC . '/ms-files.php?file=$' . ( $subdomain_install ? 1 : 2 ) . ' [L]' . "\n";
    464464
    465465                if ( ! $subdomain_install )
    466466                        $htaccess_file .= "\n# add a trailing slash to /wp-admin\n" . 'RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]' . "\n";
     
    471471
    472472                // @todo custom content dir.
    473473                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]";
    475475
    476476                $htaccess_file .= "\nRewriteRule . index.php [L]";
    477477
  • wp-includes/formatting.php

     
    14301430        $img = $wpsmiliestrans[$smiley];
    14311431        $smiley_masked = esc_attr($smiley);
    14321432
    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);
    14341434
    14351435        return " <img src='$srcurl' alt='$smiley_masked' class='wp-smiley' /> ";
    14361436}
  • wp-includes/general-template.php

     
    281281                                <input type="password" name="pwd" id="' . esc_attr( $args['id_password'] ) . '" class="input" value="" size="20" tabindex="20" />
    282282                        </p>
    283283                        ' . 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>' : '' ) . '
    285287                        <p class="login-submit">
    286288                                <input type="submit" name="wp-submit" id="' . esc_attr( $args['id_submit'] ) . '" class="button-primary" value="' . esc_attr( $args['label_log_in'] ) . '" tabindex="100" />
    287289                                <input type="hidden" name="redirect_to" value="' . esc_attr( $args['redirect'] ) . '" />
     
    16771679 */
    16781680function wlwmanifest_link() {
    16791681        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";
    16811683}
    16821684
    16831685/**
  • wp-includes/js/tinymce/wp-mce-help.php

     
    240240        <h2><?php _e('About TinyMCE'); ?></h2>
    241241
    242242    <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>
    244244        <p><?php _e('Copyright &copy; 2003-2007, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.') ?></p>
    245245        <p><?php _e('For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.') ?></p>
    246246
  • wp-includes/pluggable.php

     
    14271427        global $wp_hasher;
    14281428
    14291429        if ( empty($wp_hasher) ) {
    1430                 require_once( ABSPATH . 'wp-includes/class-phpass.php');
     1430                require_once( ABSPATH . WPINC .'/class-phpass.php');
    14311431                // By default, use the portable hash from phpass
    14321432                $wp_hasher = new PasswordHash(8, TRUE);
    14331433        }
     
    14751475        // If the stored hash is longer than an MD5, presume the
    14761476        // new style phpass portable hash.
    14771477        if ( empty($wp_hasher) ) {
    1478                 require_once( ABSPATH . 'wp-includes/class-phpass.php');
     1478                require_once( ABSPATH . WPINC . '/class-phpass.php');
    14791479                // By default, use the portable hash from phpass
    14801480                $wp_hasher = new PasswordHash(8, TRUE);
    14811481        }
  • wp-includes/rewrite.php

     
    17901790                                </rule>
    17911791                                <rule name="wordpress - Rule 2" stopProcessing="true">
    17921792                                        <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" />
    17941794                                </rule>
    17951795                                <rule name="wordpress - Rule 3" stopProcessing="true">
    17961796                                        <match url="^" ignoreCase="false" />
     
    18121812                                </rule>
    18131813                                <rule name="wordpress - Rule 2" stopProcessing="true">
    18141814                                        <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" />
    18161816                                </rule>
    18171817                                <rule name="wordpress - Rule 3" stopProcessing="true">
    18181818                                        <match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
     
    18271827                                        <action type="None" />
    18281828                                </rule>
    18291829                                <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" />
    18311831                                        <action type="Rewrite" url="{R:2}" />
    18321832                                </rule>
    18331833                                <rule name="wordpress - Rule 6" stopProcessing="true">
  • wp-includes/script-loader.php

     
    5454        $scripts->base_url = $guessurl;
    5555        $scripts->content_url = defined('WP_CONTENT_URL')? WP_CONTENT_URL : '';
    5656        $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/');
    5858
    5959        $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : '';
    6060
     
    6767                'l10n_print_after' => 'try{convertEntities(commonL10n);}catch(e){};'
    6868        ) );
    6969
    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' );
    7171        $scripts->add_data( 'sack', 'group', 1 );
    7272
    73         $scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", false, '20090307' );
     73        $scripts->add( 'quicktags', "/". WPINC ."/js/quicktags$suffix.js", false, '20090307' );
    7474        $scripts->localize( 'quicktags', 'quicktagsL10n', array(
    7575                'quickLinks' => __('(Quick Links)'),
    7676                'wordLookup' => __('Enter a word to look up:'),
     
    8484                'l10n_print_after' => 'try{convertEntities(quicktagsL10n);}catch(e){};'
    8585        ) );
    8686
    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' );
    8888
    8989        $scripts->add( 'editor', "/wp-admin/js/editor$suffix.js", false, '20091124' );
    9090
    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');
    9292
    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' );
    9494        $scripts->add_data( 'wp-ajax-response', 'group', 1 );
    9595        $scripts->localize( 'wp-ajax-response', 'wpAjax', array(
    9696                'noPerm' => __('You do not have permission to do that.'),
     
    9898                'l10n_print_after' => 'try{convertEntities(wpAjax);}catch(e){};'
    9999        ) );
    100100
    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' );
    102102        $scripts->add_data( 'autosave', 'group', 1 );
    103103
    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' );
    105105        $scripts->add_data( 'wp-lists', 'group', 1 );
    106106
    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');
    114114        $scripts->add( 'scriptaculous', '', array('scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls'), '1.8.3');
    115115
    116116        // 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');
    118118
    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');
    120120
    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' );
    122122        $scripts->add_data( 'jquery-ui-core', 'group', 1 );
    123123
    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' );
    125125        $scripts->add_data( 'jquery-ui-tabs', 'group', 1 );
    126126
    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' );
    128128        $scripts->add_data( 'jquery-ui-sortable', 'group', 1 );
    129129
    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' );
    131131        $scripts->add_data( 'jquery-ui-draggable', 'group', 1 );
    132132
    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' );
    134134        $scripts->add_data( 'jquery-ui-droppable', 'group', 1 );
    135135
    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' );
    137137        $scripts->add_data( 'jquery-ui-selectable', 'group', 1 );
    138138
    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' );
    140140        $scripts->add_data( 'jquery-ui-resizable', 'group', 1 );
    141141
    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' );
    143143        $scripts->add_data( 'jquery-ui-dialog', 'group', 1 );
    144144
    145145        // 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');
    147147        $scripts->add_data( 'jquery-form', 'group', 1 );
    148148
    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');
    150150        $scripts->add_data( 'jquery-color', 'group', 1 );
    151151
    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');
    153153        $scripts->add_data( 'suggest', 'group', 1 );
    154154
    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');
    156156        $scripts->add_data( 'schedule', 'group', 1 );
    157157
    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' );
    159159        $scripts->add_data( 'jquery-hotkeys', 'group', 1 );
    160160
    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' );
    162162        $scripts->add_data( 'jquery-table-hotkeys', 'group', 1 );
    163163
    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');
    165165        $scripts->add_data( 'thickbox', 'group', 1 );
    166166        $scripts->localize( 'thickbox', 'thickboxL10n', array(
    167167                        'next' => __('Next &gt;'),
     
    174174        ) );
    175175
    176176
    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');
    178178
    179         $scripts->add( 'swfobject', "/wp-includes/js/swfobject.js", false, '2.2');
     179        $scripts->add( 'swfobject', "/" . WPINC . "/js/swfobject.js", false, '2.2');
    180180
    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');
    185185
    186186        if ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) {
    187187                // queue all SWFUpload scripts that are used by default
    188188                $scripts->add( 'swfupload-all', false, array('swfupload', 'swfupload-swfobject', 'swfupload-queue'), '2201');
    189189        } 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');
    191191        }
    192192
    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');
    194194        $max_upload_size = ( (int) ( $max_up = @ini_get('upload_max_filesize') ) < (int) ( $max_post = @ini_get('post_max_size') ) ) ? $max_up : $max_post;
    195195        if ( empty($max_upload_size) )
    196196                $max_upload_size = __('not configured');
     
    216216                        'error_uploading' => __('&#8220;%s&#8221; has failed to upload due to an error')
    217217        ) );
    218218
    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');
    220220
    221         $scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", false, '20090817');
     221        $scripts->add( 'json2', "/" . WPINC . "/js/json2$suffix.js", false, '20090817');
    222222
    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' );
    224224        $scripts->add_data( 'imgareaselect', 'group', 1 );
    225225
    226226        if ( is_admin() ) {
     
    364364                $scripts->add( 'dashboard', "/wp-admin/js/dashboard$suffix.js", array( 'jquery', 'admin-comments', 'postbox' ), '20100523' );
    365365                $scripts->add_data( 'dashboard', 'group', 1 );
    366366
    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' );
    368368                $scripts->add_data( 'hoverIntent', 'group', 1 );
    369369
    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' );
    371371
    372372                $scripts->add( 'media', "/wp-admin/js/media$suffix.js", array( 'jquery-ui-draggable' ), '20100524' );
    373373                $scripts->add_data( 'media', 'group', 1 );
     
    453453        $styles->add( 'install', "/wp-admin/css/install$suffix.css", array(), '20100605' ); // Readme as well
    454454        $styles->add( 'theme-editor', "/wp-admin/css/theme-editor$suffix.css", array(), '20100514' );
    455455        $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' );
    457457        $styles->add( 'login', "/wp-admin/css/login$suffix.css", array(), '20100601' );
    458458        $styles->add( 'plugin-install', "/wp-admin/css/plugin-install$suffix.css", array(), '20100402' );
    459459        $styles->add( 'theme-install', "/wp-admin/css/theme-install$suffix.css", array(), '20100523' );
    460460        $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' );
    463463        $styles->add( 'nav-menu', "/wp-admin/css/nav-menu$suffix.css", array(), '20100611' );
    464464
    465465        foreach ( $rtl_styles as $rtl_style ) {
  • wp-includes/update.php

     
    208208                return false;
    209209
    210210        if ( !function_exists( 'get_themes' ) )
    211                 require_once( ABSPATH . 'wp-includes/theme.php' );
     211                require_once( ABSPATH . WPINC . '/theme.php' );
    212212
    213213        $installed_themes = get_themes( );
    214214        $current_theme = get_site_transient( 'update_themes' );
  • wp-load.php

     
    4343        else $path = 'wp-admin/';
    4444
    4545        // 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' );
    4949        $text_direction = /*WP_I18N_TEXT_DIRECTION*/"ltr"/*/WP_I18N_TEXT_DIRECTION*/;
    5050        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 &rsaquo; Error"/*/WP_I18N_ERROR_TITLE*/, array('text_direction' => $text_direction));
    5151