Ticket #12594: path_patch.diff
File path_patch.diff, 45.2 KB (added by , 15 years ago) |
---|
-
wp-activate.php
4 4 /** Sets up the WordPress Environment. */ 5 5 require( dirname(__FILE__) . '/wp-load.php' ); 6 6 7 require( ' wp-blog-header.php' );7 require( './wp-blog-header.php' ); 8 8 9 9 if ( !is_multisite() ) { 10 10 wp_redirect( get_option( 'siteurl' ) . "/wp-login.php?action=register" ); -
wp-admin/admin-ajax.php
19 19 if ( ! isset( $_REQUEST['action'] ) ) 20 20 die('-1'); 21 21 22 require_once(' includes/admin.php');22 require_once('./includes/admin.php'); 23 23 @header('Content-Type: text/html; charset=' . get_option('blog_charset')); 24 24 send_nosniff_header(); 25 25 -
wp-admin/admin-header.php
7 7 */ 8 8 9 9 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 10 if (!isset($_GET["page"])) require_once(' admin.php');10 if (!isset($_GET["page"])) require_once('./admin.php'); 11 11 12 12 get_admin_page_title(); 13 13 $title = esc_html( strip_tags( $title ) ); -
wp-admin/async-upload.php
21 21 if ( empty($_COOKIE[LOGGED_IN_COOKIE]) && !empty($_REQUEST['logged_in_cookie']) ) 22 22 $_COOKIE[LOGGED_IN_COOKIE] = $_REQUEST['logged_in_cookie']; 23 23 unset($current_user); 24 require_once(' admin.php');24 require_once('./admin.php'); 25 25 26 26 header('Content-Type: text/plain; charset=' . get_option('blog_charset')); 27 27 -
wp-admin/comment.php
7 7 */ 8 8 9 9 /** Load WordPress Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 $parent_file = 'edit-comments.php'; 13 13 $submenu_file = 'edit-comments.php'; … … 36 36 */ 37 37 function comment_footer_die( $msg ) { 38 38 echo "<div class='wrap'><p>$msg</p></div>"; 39 include(' admin-footer.php');39 include('./admin-footer.php'); 40 40 die; 41 41 } 42 42 … … 46 46 $title = __('Edit Comment'); 47 47 48 48 wp_enqueue_script('comment'); 49 require_once(' admin-header.php');49 require_once('./admin-header.php'); 50 50 51 51 $comment_id = absint( $_GET['c'] ); 52 52 … … 61 61 62 62 $comment = get_comment_to_edit( $comment_id ); 63 63 64 include(' edit-form-comment.php');64 include('./edit-form-comment.php'); 65 65 66 66 break; 67 67 … … 88 88 die(); 89 89 } 90 90 91 require_once(' admin-header.php');91 require_once('./admin-header.php'); 92 92 93 93 $formaction = $action . 'comment'; 94 94 $nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_'; … … 276 276 277 277 } // end switch 278 278 279 include(' admin-footer.php');279 include('./admin-footer.php'); 280 280 281 281 ?> -
wp-admin/edit-comments.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( !current_user_can('edit_posts') ) 13 13 wp_die(__('Cheatin’ uh?')); … … 105 105 else 106 106 $title = __('Edit Comments'); 107 107 108 require_once(' admin-header.php');108 require_once('./admin-header.php'); 109 109 110 110 $mode = ( empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']); 111 111 … … 468 468 <?php 469 469 wp_comment_reply('-1', true, 'detail'); 470 470 wp_comment_trashnotice(); 471 include(' admin-footer.php'); ?>471 include('./admin-footer.php'); ?> -
wp-admin/edit-form-advanced.php
88 88 $post_type_object = get_post_type_object($post_type); 89 89 90 90 // All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). 91 require_once(' includes/meta-boxes.php');91 require_once('./includes/meta-boxes.php'); 92 92 93 93 add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', $post_type, 'side', 'core'); 94 94 … … 148 148 149 149 add_contextual_help($current_screen, drag_drop_help()); 150 150 151 require_once(' admin-header.php');151 require_once('./admin-header.php'); 152 152 ?> 153 153 154 154 <div class="wrap"> -
wp-admin/edit-link-categories.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 // Handle bulk actions 13 13 if ( isset($_GET['action']) && isset($_GET['delete']) ) { … … 227 227 </div><!-- /wrap --> 228 228 229 229 <?php inline_edit_term_row('edit-link-categories', 'link_category'); ?> 230 <?php include(' admin-footer.php'); ?>230 <?php include('./admin-footer.php'); ?> -
wp-admin/edit-link-form.php
22 22 $nonce_action = 'add-bookmark'; 23 23 } 24 24 25 require_once(' includes/meta-boxes.php');25 require_once('./includes/meta-boxes.php'); 26 26 27 27 add_meta_box('linksubmitdiv', __('Save'), 'link_submit_meta_box', 'link', 'side', 'core'); 28 28 add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', 'link', 'normal', 'core'); -
wp-admin/edit-tags.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 wp_reset_vars( array('action', 'tag', 'taxonomy', 'post_type') ); 13 13 … … 122 122 $tag_ID = (int) $_GET['tag_ID']; 123 123 124 124 $tag = get_term($tag_ID, $taxonomy, OBJECT, 'edit'); 125 include(' edit-tag-form.php');125 include('./edit-tag-form.php'); 126 126 127 127 break; 128 128 … … 402 402 break; 403 403 } 404 404 405 include(' admin-footer.php');405 include('./admin-footer.php'); 406 406 407 407 ?> 408 No newline at end of file -
wp-admin/edit.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( !isset($_GET['post_type']) ) 13 13 $post_type = 'post'; … … 156 156 else 157 157 $num_pages = $wp_query->max_num_pages; 158 158 159 require_once(' admin-header.php');159 require_once('./admin-header.php'); 160 160 161 161 if ( empty($_GET['mode']) ) 162 162 $mode = 'list'; … … 375 375 376 376 <div class="clear"></div> 377 377 378 <?php include( ' edit-post-rows.php' ); ?>378 <?php include( './edit-post-rows.php' ); ?> 379 379 380 380 <div class="tablenav"> 381 381 … … 425 425 </div> 426 426 427 427 <?php 428 include(' admin-footer.php');428 include('./admin-footer.php'); -
wp-admin/export.php
13 13 wp_die(__('You do not have sufficient permissions to export the content of this blog.')); 14 14 15 15 /** Load WordPress export API */ 16 require_once(' includes/export.php');16 require_once('./includes/export.php'); 17 17 $title = __('Export'); 18 18 19 19 if ( isset( $_GET['download'] ) ) { -
wp-admin/index-extra.php
7 7 */ 8 8 9 9 /** Load WordPress Bootstrap */ 10 require_once( ' admin.php' );10 require_once( './admin.php' ); 11 11 12 12 /** Load WordPress Administration Dashboard API */ 13 require( ' includes/dashboard.php' );13 require( './includes/dashboard.php' ); 14 14 15 15 @header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); 16 16 send_nosniff_header(); -
wp-admin/index.php
7 7 */ 8 8 9 9 /** Load WordPress Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 /** Load WordPress dashboard API */ 13 13 require_once(ABSPATH . 'wp-admin/includes/dashboard.php'); … … 26 26 27 27 add_contextual_help($current_screen, '<p>' . __('The modules on this screen can be arranged in several columns. You can select the number of columns from the Screen Options tab.') . "</p>\n" . drag_drop_help() ); 28 28 29 require_once(' admin-header.php');29 require_once('./admin-header.php'); 30 30 31 31 $today = current_time('mysql', 1); 32 32 ?> -
wp-admin/link-add.php
7 7 */ 8 8 9 9 /** Load WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( ! current_user_can('manage_links') ) 13 13 wp_die(__('You do not have sufficient permissions to add links to this blog.')); … … 24 24 wp_enqueue_script('xfn'); 25 25 26 26 $link = get_default_link_to_edit(); 27 include(' edit-link-form.php');27 include('./edit-link-form.php'); 28 28 29 require(' admin-footer.php');29 require('./admin-footer.php'); 30 30 ?> 31 No newline at end of file -
wp-admin/link-category.php
10 10 */ 11 11 12 12 /** Load WordPress Administration Bootstrap */ 13 require_once(' admin.php');13 require_once('./admin.php'); 14 14 15 15 wp_reset_vars(array('action', 'cat')); 16 16 … … 67 67 require_once ('admin-header.php'); 68 68 $cat_ID = (int) $_GET['cat_ID']; 69 69 $category = get_term_to_edit($cat_ID, 'link_category'); 70 include(' edit-link-category-form.php');71 include(' admin-footer.php');70 include('./edit-link-category-form.php'); 71 include('./admin-footer.php'); 72 72 exit; 73 73 break; 74 74 -
wp-admin/link-manager.php
278 278 </div> 279 279 280 280 <?php 281 include(' admin-footer.php');281 include('./admin-footer.php'); -
wp-admin/media-new.php
8 8 9 9 $_GET['inline'] = 'true'; 10 10 /** Administration bootstrap */ 11 require_once(' admin.php');12 require_once(' media-upload.php');11 require_once('./admin.php'); 12 require_once('./media-upload.php'); 13 13 14 14 ?> 15 No newline at end of file -
wp-admin/media-upload.php
10 10 */ 11 11 12 12 /** Load WordPress Administration Bootstrap */ 13 require_once(' admin.php');13 require_once('./admin.php'); 14 14 15 15 if (!current_user_can('upload_files')) 16 16 wp_die(__('You do not have permission to upload files.')); … … 56 56 57 57 $title = __('Upload New Media'); 58 58 $parent_file = 'upload.php'; 59 require_once(' admin-header.php'); ?>59 require_once('./admin-header.php'); ?> 60 60 <div class="wrap"> 61 61 <?php screen_icon(); ?> 62 62 <h2><?php echo esc_html( $title ); ?></h2> … … 86 86 </div> 87 87 88 88 <?php 89 include(' admin-footer.php');89 include('./admin-footer.php'); 90 90 91 91 } else { 92 92 -
wp-admin/media.php
7 7 */ 8 8 9 9 /** Load WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 $parent_file = 'upload.php'; 13 13 $submenu_file = 'upload.php'; … … 67 67 wp_enqueue_script('image-edit'); 68 68 wp_enqueue_style('imgareaselect'); 69 69 70 require( ' admin-header.php' );70 require( './admin-header.php' ); 71 71 72 72 $parent_file = 'upload.php'; 73 73 $message = ''; … … 114 114 115 115 <?php 116 116 117 require( ' admin-footer.php' );117 require( './admin-footer.php' ); 118 118 119 119 exit; 120 120 -
wp-admin/ms-admin.php
1 1 <?php 2 require_once(' admin.php');2 require_once('./admin.php'); 3 3 4 4 if ( !is_multisite() ) 5 5 wp_die( __('Multisite support is not enabled.') ); … … 12 12 } 13 13 add_action( 'admin_head', 'index_css' ); 14 14 15 require_once(' admin-header.php');15 require_once('./admin-header.php'); 16 16 17 17 if ( ! current_user_can( 'manage_network' ) ) 18 18 wp_die( __('You do not have permission to access this page.') ); … … 61 61 </div><!-- rightnow --> 62 62 </div> 63 63 64 <?php include(' admin-footer.php'); ?>64 <?php include('./admin-footer.php'); ?> -
wp-admin/ms-delete-site.php
1 1 <?php 2 require_once(' admin.php');2 require_once('./admin.php'); 3 3 4 4 if ( !is_multisite() ) 5 5 wp_die( __('Multisite support is not enabled.') ); … … 12 12 13 13 $title = __('Delete Blog'); 14 14 $parent_file = 'tools.php'; 15 require_once(' admin-header.php');15 require_once('./admin-header.php'); 16 16 17 17 echo '<div class="wrap">'; 18 18 screen_icon(); … … 63 63 } 64 64 echo '</div>'; 65 65 66 include(' admin-footer.php');66 include('./admin-footer.php'); 67 67 ?> 68 No newline at end of file -
wp-admin/ms-edit.php
1 1 <?php 2 require_once(' admin.php');2 require_once('./admin.php'); 3 3 4 4 if ( !is_multisite() ) 5 5 wp_die( __('Multisite support is not enabled.') ); … … 497 497 wp_die( __('You do not have permission to access this page.') ); 498 498 499 499 if ( isset($_POST['alluser_delete']) ) { 500 require_once(' admin-header.php');500 require_once('./admin-header.php'); 501 501 echo '<div class="wrap" style="position:relative;">'; 502 502 confirm_delete_users( $_POST['allusers'] ); 503 503 echo '</div>'; 504 require_once(' admin-footer.php');504 require_once('./admin-footer.php'); 505 505 } elseif ( isset( $_POST[ 'alluser_transfer_delete' ] ) ) { 506 506 if ( is_array( $_POST[ 'blog' ] ) && !empty( $_POST[ 'blog' ] ) ) { 507 507 foreach ( $_POST[ 'blog' ] as $id => $users ) { -
wp-admin/ms-options.php
1 1 <?php 2 require_once(' admin.php');2 require_once('./admin.php'); 3 3 4 4 if ( !is_multisite() ) 5 5 wp_die( __('Multisite support is not enabled.') ); … … 7 7 $title = __('Network Options'); 8 8 $parent_file = 'ms-admin.php'; 9 9 10 include(' admin-header.php');10 include('./admin-header.php'); 11 11 12 12 if ( ! current_user_can( 'manage_network_options' ) ) 13 13 wp_die( __('You do not have permission to access this page.') ); -
wp-admin/ms-sites.php
1 1 <?php 2 require_once(' admin.php');2 require_once('./admin.php'); 3 3 4 4 if ( !is_multisite() ) 5 5 wp_die( __('Multisite support is not enabled.') ); … … 9 9 10 10 wp_enqueue_script( 'admin-forms' ); 11 11 12 require_once(' admin-header.php');12 require_once('./admin-header.php'); 13 13 14 14 if ( ! current_user_can( 'manage_sites' ) ) 15 15 wp_die( __('You do not have permission to access this page.') ); … … 762 762 break; 763 763 } // end switch( $action ) 764 764 765 include(' admin-footer.php'); ?>765 include('./admin-footer.php'); ?> -
wp-admin/ms-themes.php
1 1 <?php 2 require_once(' admin.php');2 require_once('./admin.php'); 3 3 4 4 $title = __('Network Themes'); 5 5 $parent_file = 'ms-admin.php'; 6 require_once(' admin-header.php');6 require_once('./admin-header.php'); 7 7 8 8 if ( ! current_user_can( 'manage_network_themes' ) ) 9 9 wp_die( __('You do not have permission to access this page.') ); … … 75 75 </p> 76 76 </div> 77 77 78 <?php include(' admin-footer.php'); ?>78 <?php include('./admin-footer.php'); ?> -
wp-admin/ms-upgrade-network.php
1 1 <?php 2 require_once(' admin.php');2 require_once('./admin.php'); 3 3 4 4 if ( !is_multisite() ) 5 5 wp_die( __('Multisite support is not enabled.') ); … … 8 8 9 9 $title = __('Update Network'); 10 10 $parent_file = 'ms-admin.php'; 11 require_once(' admin-header.php');11 require_once('./admin-header.php'); 12 12 13 13 if ( ! current_user_can( 'manage_network' ) ) 14 14 wp_die( __('You do not have permission to access this page.') ); … … 66 66 ?> 67 67 </div> 68 68 69 <?php include(' admin-footer.php'); ?>69 <?php include('./admin-footer.php'); ?> -
wp-admin/ms-users.php
1 1 <?php 2 require_once(' admin.php');2 require_once('./admin.php'); 3 3 4 4 if ( !is_multisite() ) 5 5 wp_die( __('Multisite support is not enabled.') ); … … 9 9 10 10 wp_enqueue_script( 'admin-forms' ); 11 11 12 require_once(' admin-header.php');12 require_once('./admin-header.php'); 13 13 14 14 if ( ! current_user_can( 'manage_network_users' ) ) 15 15 wp_die( __('You do not have permission to access this page.') ); … … 313 313 </div> 314 314 <?php endif; ?> 315 315 316 <?php include(' admin-footer.php'); ?>316 <?php include('./admin-footer.php'); ?> -
wp-admin/my-sites.php
1 1 <?php 2 2 3 require_once(' admin.php');3 require_once('./admin.php'); 4 4 5 5 if ( !is_multisite() ) 6 6 wp_die( __('Multisite support is not enabled.') ); … … 25 25 26 26 $title = __('My Sites'); 27 27 $parent_file = 'index.php'; 28 require_once(' admin-header.php');28 require_once('./admin-header.php'); 29 29 30 30 if ( $updated ) { ?> 31 31 <div id="message" class="updated fade"><p><strong><?php _e( 'Your site preferences have been updated.' ); ?></strong></p></div> … … 83 83 </form> 84 84 </div> 85 85 <?php 86 include(' admin-footer.php');86 include('./admin-footer.php'); 87 87 88 88 ?> 89 No newline at end of file -
wp-admin/nav-menus.php
10 10 */ 11 11 12 12 /** Load WordPress Administration Bootstrap */ 13 require_once( ' admin.php' );13 require_once( './admin.php' ); 14 14 15 15 // Load all the nav menu interface functions 16 16 require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' ); … … 235 235 } 236 236 237 237 // Get the admin header 238 require_once( ' admin-header.php' );238 require_once( './admin-header.php' ); 239 239 ?> 240 240 <div class="wrap"> 241 241 <?php screen_icon(); ?> … … 344 344 <input type="hidden" id="edit-menu-item-id" name="edit-item-id" value="" /> 345 345 </div><!-- /#menu-item-settings--> 346 346 347 <?php include( ' admin-footer.php' ); ?>348 No newline at end of file 347 <?php include( './admin-footer.php' ); ?> 348 No newline at end of file -
wp-admin/options-discussion.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) 13 13 wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); … … 15 15 $title = __('Discussion Settings'); 16 16 $parent_file = 'options-general.php'; 17 17 18 include(' admin-header.php');18 include('./admin-header.php'); 19 19 ?> 20 20 21 21 <div class="wrap"> -
wp-admin/options-media.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) 13 13 wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); … … 15 15 $title = __('Media Settings'); 16 16 $parent_file = 'options-general.php'; 17 17 18 include(' admin-header.php');18 include('./admin-header.php'); 19 19 20 20 ?> 21 21 -
wp-admin/options-permalink.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) 13 13 wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); … … 70 70 } 71 71 add_filter('admin_head', 'add_js'); 72 72 73 include(' admin-header.php');73 include('./admin-header.php'); 74 74 75 75 $home_path = get_home_path(); 76 76 $iis7_permalinks = iis7_supports_permalinks(); -
wp-admin/options-reading.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( ' admin.php' );10 require_once( './admin.php' ); 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) 13 13 wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); … … 15 15 $title = __( 'Reading Settings' ); 16 16 $parent_file = 'options-general.php'; 17 17 18 include( ' admin-header.php' );18 include( './admin-header.php' ); 19 19 ?> 20 20 21 21 <div class="wrap"> -
wp-admin/options-writing.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) 13 13 wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); … … 15 15 $title = __('Writing Settings'); 16 16 $parent_file = 'options-general.php'; 17 17 18 include(' admin-header.php');18 include('./admin-header.php'); 19 19 ?> 20 20 21 21 <div class="wrap"> -
wp-admin/options.php
16 16 */ 17 17 18 18 /** WordPress Administration Bootstrap */ 19 require_once(' admin.php');19 require_once('./admin.php'); 20 20 21 21 $title = __('Settings'); 22 22 $this_file = 'options.php'; … … 161 161 exit; 162 162 } 163 163 164 include(' admin-header.php'); ?>164 include('./admin-header.php'); ?> 165 165 166 166 <div class="wrap"> 167 167 <?php screen_icon(); ?> … … 214 214 215 215 216 216 <?php 217 include(' admin-footer.php');217 include('./admin-footer.php'); 218 218 ?> -
wp-admin/plugin-editor.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( !current_user_can('edit_plugins') ) 13 13 wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>'); … … 102 102 } 103 103 } 104 104 105 require_once(' admin-header.php');105 require_once('./admin-header.php'); 106 106 107 107 update_recently_edited(WP_PLUGIN_DIR . '/' . $file); 108 108 … … 239 239 <?php 240 240 break; 241 241 } 242 include(" admin-footer.php");242 include("./admin-footer.php"); -
wp-admin/plugin-install.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( ! current_user_can('install_plugins') ) 13 13 wp_die(__('You do not have sufficient permissions to install plugins on this blog.')); … … 54 54 55 55 add_contextual_help($current_screen, plugins_search_help()); 56 56 57 include(' admin-header.php');57 include('./admin-header.php'); 58 58 ?> 59 59 <div class="wrap"> 60 60 <?php screen_icon(); ?> … … 75 75 <?php do_action('install_plugins_' . $tab, $paged); ?> 76 76 </div> 77 77 <?php 78 include(' admin-footer.php');78 include('./admin-footer.php'); -
wp-admin/plugins.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( ! current_user_can( 'activate_plugins' ) ) 13 13 wp_die( __( 'You do not have sufficient permissions to manage plugins for this site.' ) ); … … 109 109 $title = __( 'Upgrade Plugins' ); 110 110 $parent_file = 'plugins.php'; 111 111 112 require_once( ' admin-header.php' );112 require_once( './admin-header.php' ); 113 113 114 114 echo '<div class="wrap">'; 115 115 screen_icon(); … … 121 121 122 122 echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>"; 123 123 echo '</div>'; 124 require_once( ' admin-footer.php' );124 require_once( './admin-footer.php' ); 125 125 exit; 126 126 break; 127 127 case 'error_scrape': … … 206 206 207 207 if ( ! isset($_REQUEST['verify-delete']) ) { 208 208 wp_enqueue_script('jquery'); 209 require_once(' admin-header.php');209 require_once('./admin-header.php'); 210 210 ?> 211 211 <div class="wrap"> 212 212 <?php … … 284 284 </div> 285 285 </div> 286 286 <?php 287 require_once(' admin-footer.php');287 require_once('./admin-footer.php'); 288 288 exit; 289 289 } //Endif verify-delete 290 290 $delete_result = delete_plugins($plugins); … … 318 318 } 319 319 320 320 $title = __('Manage Plugins'); 321 require_once(' admin-header.php');321 require_once('./admin-header.php'); 322 322 323 323 $invalid = validate_active_plugins(); 324 324 if ( !empty($invalid) ) … … 766 766 </div> 767 767 768 768 <?php 769 include(' admin-footer.php');769 include('./admin-footer.php'); 770 770 ?> -
wp-admin/post-new.php
7 7 */ 8 8 9 9 /** Load WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( !isset($_GET['post_type']) ) 13 13 $post_type = 'post'; … … 46 46 </p> 47 47 </div> 48 48 <?php 49 include(' admin-footer.php');49 include('./admin-footer.php'); 50 50 exit(); 51 51 } 52 52 … … 54 54 if ( current_user_can($post_type_object->edit_type_cap) ) { 55 55 $post = get_default_post_to_edit( $post_type, true ); 56 56 $post_ID = $post->ID; 57 include(' edit-form-advanced.php');57 include('./edit-form-advanced.php'); 58 58 } 59 59 60 include(' admin-footer.php');60 include('./admin-footer.php'); 61 61 ?> -
wp-admin/post.php
9 9 */ 10 10 11 11 /** WordPress Administration Bootstrap */ 12 require_once(' admin.php');12 require_once('./admin.php'); 13 13 14 14 $parent_file = 'edit.php'; 15 15 $submenu_file = 'edit.php'; … … 189 189 $title = sprintf(__('Edit %s'), $post_type_object->singular_label); 190 190 $post = get_post_to_edit($post_id); 191 191 192 include(' edit-form-advanced.php');192 include('./edit-form-advanced.php'); 193 193 194 194 break; 195 195 … … 278 278 exit(); 279 279 break; 280 280 } // end switch 281 include(' admin-footer.php');281 include('./admin-footer.php'); 282 282 ?> -
wp-admin/press-this.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 12 12 13 13 if ( ! current_user_can('edit_posts') ) -
wp-admin/profile.php
15 15 define('IS_PROFILE_PAGE', true); 16 16 17 17 /** Load User Editing Page */ 18 require_once(' user-edit.php');18 require_once('./user-edit.php'); 19 19 ?> -
wp-admin/revision.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 wp_enqueue_script('list-revisions'); 13 13 … … 49 49 // If we're comparing a revision to itself, redirect to the 'view' page for that revision or the edit page for that post 50 50 if ( $left_revision->ID == $right_revision->ID ) { 51 51 $redirect = get_edit_post_link( $left_revision->ID ); 52 include( ' js/revisions-js.php' );52 include( './js/revisions-js.php' ); 53 53 break; 54 54 } 55 55 … … 142 142 else 143 143 $parent_file = $submenu_file = 'edit.php'; 144 144 145 require_once( ' admin-header.php' );145 require_once( './admin-header.php' ); 146 146 147 147 ?> 148 148 … … 218 218 219 219 <?php 220 220 221 require_once( ' admin-footer.php' );221 require_once( './admin-footer.php' ); -
wp-admin/sidebar.php
13 13 $mode = 'sidebar'; 14 14 15 15 /** WordPress Administration Bootstrap */ 16 require_once(' admin.php');16 require_once('./admin.php'); 17 17 18 18 if ( ! current_user_can('edit_posts') ) 19 19 wp_die(__('Cheatin’ uh?')); -
wp-admin/theme-editor.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( !current_user_can('edit_themes') ) 13 13 wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>'); … … 79 79 80 80 default: 81 81 82 require_once(' admin-header.php');82 require_once('./admin-header.php'); 83 83 84 84 update_recently_edited($file); 85 85 … … 240 240 break; 241 241 } 242 242 243 include(" admin-footer.php");243 include("./admin-footer.php"); -
wp-admin/theme-install.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( ! current_user_can('install_themes') ) 13 13 wp_die(__('You do not have sufficient permissions to install themes on this blog.')); … … 55 55 56 56 add_contextual_help($current_screen, plugins_search_help()); 57 57 58 include(' admin-header.php');58 include('./admin-header.php'); 59 59 ?> 60 60 <div class="wrap"> 61 61 <?php screen_icon(); ?> … … 76 76 <?php do_action('install_themes_' . $tab, $paged); ?> 77 77 </div> 78 78 <?php 79 include(' admin-footer.php');79 include('./admin-footer.php'); -
wp-admin/themes.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( !current_user_can('switch_themes') ) 13 13 wp_die( __( 'Cheatin’ uh?' ) ); … … 42 42 add_thickbox(); 43 43 wp_enqueue_script( 'theme-preview' ); 44 44 45 require_once(' admin-header.php');45 require_once('./admin-header.php'); 46 46 if ( is_multisite() && current_user_can('edit_themes') ) { 47 47 ?><div id="message0" class="updated fade"><p><?php _e('Administrator: new themes must be activated in the <a href="ms-themes.php">Themes Admin</a> page before they appear here.'); ?></p></div><?php 48 48 } … … 308 308 ?> 309 309 </div> 310 310 311 <?php require(' admin-footer.php'); ?>311 <?php require('./admin-footer.php'); ?> -
wp-admin/tools.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 $title = __('Tools'); 13 13 wp_enqueue_script( 'wp-gears' ); 14 14 15 require_once(' admin-header.php');15 require_once('./admin-header.php'); 16 16 17 17 ?> 18 18 <div class="wrap"> … … 102 102 ?> 103 103 </div> 104 104 <?php 105 include(' admin-footer.php');105 include('./admin-footer.php'); 106 106 ?> -
wp-admin/update-core.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( ! current_user_can('update_plugins') ) 13 13 wp_die(__('You do not have sufficient permissions to update plugins for this blog.')); … … 376 376 377 377 if ( 'upgrade-core' == $action ) { 378 378 wp_version_check(); 379 require_once(' admin-header.php');379 require_once('./admin-header.php'); 380 380 core_upgrade_preamble(); 381 381 } elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall' == $action ) { 382 382 check_admin_referer('upgrade-core'); … … 388 388 elseif ( isset( $_POST['undismiss'] ) ) 389 389 do_undismiss_core_update(); 390 390 391 require_once(' admin-header.php');391 require_once('./admin-header.php'); 392 392 if ( 'do-core-reinstall' == $action ) 393 393 $reinstall = true; 394 394 else … … 414 414 415 415 $title = __('Update Plugins'); 416 416 417 require_once(' admin-header.php');417 require_once('./admin-header.php'); 418 418 echo '<div class="wrap">'; 419 419 screen_icon('plugins'); 420 420 echo '<h2>' . esc_html__('Update Plugins') . '</h2>'; … … 437 437 438 438 $title = __('Update Themes'); 439 439 440 require_once(' admin-header.php');440 require_once('./admin-header.php'); 441 441 echo '<div class="wrap">'; 442 442 screen_icon('themes'); 443 443 echo '<h2>' . esc_html__('Update Themes') . '</h2>'; … … 445 445 echo '</div>'; 446 446 } 447 447 448 include(' admin-footer.php');448 include('./admin-footer.php'); -
wp-admin/update.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 13 13 … … 52 52 $title = __('Upgrade Plugin'); 53 53 $parent_file = 'plugins.php'; 54 54 $submenu_file = 'plugins.php'; 55 require_once(' admin-header.php');55 require_once('./admin-header.php'); 56 56 57 57 $nonce = 'upgrade-plugin_' . $plugin; 58 58 $url = 'update.php?action=upgrade-plugin&plugin=' . $plugin; … … 60 60 $upgrader = new Plugin_Upgrader( new Plugin_Upgrader_Skin( compact('title', 'nonce', 'url', 'plugin') ) ); 61 61 $upgrader->upgrade($plugin); 62 62 63 include(' admin-footer.php');63 include('./admin-footer.php'); 64 64 65 65 } elseif ('activate-plugin' == $action ) { 66 66 if ( ! current_user_can('update_plugins') ) … … 105 105 $title = __('Plugin Install'); 106 106 $parent_file = 'plugins.php'; 107 107 $submenu_file = 'plugin-install.php'; 108 require_once(' admin-header.php');108 require_once('./admin-header.php'); 109 109 110 110 $title = sprintf( __('Installing Plugin: %s'), $api->name . ' ' . $api->version ); 111 111 $nonce = 'install-plugin_' . $plugin; … … 115 115 $upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact('title', 'url', 'nonce', 'plugin', 'api') ) ); 116 116 $upgrader->install($api->download_link); 117 117 118 include(' admin-footer.php');118 include('./admin-footer.php'); 119 119 120 120 } elseif ( 'upload-plugin' == $action ) { 121 121 … … 129 129 $title = __('Upload Plugin'); 130 130 $parent_file = 'plugins.php'; 131 131 $submenu_file = 'plugin-install.php'; 132 require_once(' admin-header.php');132 require_once('./admin-header.php'); 133 133 134 134 $title = sprintf( __('Installing Plugin from uploaded file: %s'), basename( $file_upload->filename ) ); 135 135 $nonce = 'plugin-upload'; … … 139 139 $upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact('type', 'title', 'nonce', 'url') ) ); 140 140 $upgrader->install( $file_upload->package ); 141 141 142 include(' admin-footer.php');142 include('./admin-footer.php'); 143 143 144 144 } elseif ( 'upgrade-theme' == $action ) { 145 145 … … 153 153 $title = __('Upgrade Theme'); 154 154 $parent_file = 'themes.php'; 155 155 $submenu_file = 'themes.php'; 156 require_once(' admin-header.php');156 require_once('./admin-header.php'); 157 157 158 158 $nonce = 'upgrade-theme_' . $theme; 159 159 $url = 'update.php?action=upgrade-theme&theme=' . $theme; … … 161 161 $upgrader = new Theme_Upgrader( new Theme_Upgrader_Skin( compact('title', 'nonce', 'url', 'theme') ) ); 162 162 $upgrader->upgrade($theme); 163 163 164 include(' admin-footer.php');164 include('./admin-footer.php'); 165 165 } elseif ( 'update-selected-themes' == $action ) { 166 166 if ( ! current_user_can( 'update_themes' ) ) 167 167 wp_die( __( 'You do not have sufficient permissions to update themes for this blog.' ) ); … … 206 206 $title = __('Install Themes'); 207 207 $parent_file = 'themes.php'; 208 208 $submenu_file = 'themes.php'; 209 require_once(' admin-header.php');209 require_once('./admin-header.php'); 210 210 211 211 $title = sprintf( __('Installing Theme: %s'), $api->name . ' ' . $api->version ); 212 212 $nonce = 'install-theme_' . $theme; … … 216 216 $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact('title', 'url', 'nonce', 'plugin', 'api') ) ); 217 217 $upgrader->install($api->download_link); 218 218 219 include(' admin-footer.php');219 include('./admin-footer.php'); 220 220 221 221 } elseif ( 'upload-theme' == $action ) { 222 222 … … 232 232 $submenu_file = 'theme-install.php'; 233 233 add_thickbox(); 234 234 wp_enqueue_script('theme-preview'); 235 require_once(' admin-header.php');235 require_once('./admin-header.php'); 236 236 237 237 $title = sprintf( __('Installing Theme from uploaded file: %s'), basename( $file_upload->filename ) ); 238 238 $nonce = 'theme-upload'; … … 242 242 $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact('type', 'title', 'nonce', 'url') ) ); 243 243 $upgrader->install( $file_upload->package ); 244 244 245 include(' admin-footer.php');245 include('./admin-footer.php'); 246 246 247 247 } else { 248 248 do_action('update-custom_' . $action); -
wp-admin/upload.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 wp_enqueue_script( 'wp-ajax-response' ); 12 12 wp_enqueue_script( 'jquery-ui-draggable' ); 13 13 … … 161 161 $is_trash = ( isset($_GET['status']) && $_GET['status'] == 'trash' ); 162 162 163 163 wp_enqueue_script('media'); 164 require_once(' admin-header.php');164 require_once('./admin-header.php'); 165 165 ?> 166 166 167 167 <div class="wrap"> … … 448 448 <?php 449 449 450 450 } else { 451 include( ' edit-attachment-rows.php' );451 include( './edit-attachment-rows.php' ); 452 452 } ?> 453 453 454 454 <div id="ajax-response"></div> … … 492 492 </div> 493 493 494 494 <?php 495 include(' admin-footer.php');495 include('./admin-footer.php'); -
wp-admin/user-edit.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( !defined('IS_PROFILE_PAGE') ) 13 13 define('IS_PROFILE_PAGE', false); … … 369 369 break; 370 370 } 371 371 372 include(' admin-footer.php');372 include('./admin-footer.php'); 373 373 ?> -
wp-admin/user-new.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( !current_user_can('create_users') ) 13 13 wp_die(__('Cheatin’ uh?')); … … 245 245 246 246 </div> 247 247 <?php 248 include(' admin-footer.php');248 include('./admin-footer.php'); 249 249 ?> -
wp-admin/users.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 /** WordPress Registration API */ 13 13 require_once( ABSPATH . WPINC . '/registration.php'); … … 202 202 exit; 203 203 } 204 204 205 include(' admin-header.php');205 include('./admin-header.php'); 206 206 207 207 $usersearch = isset($_GET['usersearch']) ? $_GET['usersearch'] : null; 208 208 $userspage = isset($_GET['userspage']) ? $_GET['userspage'] : null; … … 415 415 416 416 } // end of the $doaction switch 417 417 418 include(' admin-footer.php');418 include('./admin-footer.php'); 419 419 ?> -
wp-admin/widgets.php
7 7 */ 8 8 9 9 /** WordPress Administration Bootstrap */ 10 require_once( ' admin.php' );10 require_once( './admin.php' ); 11 11 12 12 /** WordPress Administration Widgets API */ 13 13 require_once(ABSPATH . 'wp-admin/includes/widgets.php'); … … 128 128 129 129 if ( count($wp_registered_sidebars) == 1 ) { 130 130 // If only "wp_inactive_widgets" is defined the theme has no sidebars, die. 131 require_once( ' admin-header.php' );131 require_once( './admin-header.php' ); 132 132 ?> 133 133 134 134 <div class="wrap"> … … 141 141 </div> 142 142 143 143 <?php 144 require_once( ' admin-footer.php' );144 require_once( './admin-footer.php' ); 145 145 exit; 146 146 } 147 147 … … 252 252 $width = ' style="width:' . max($control['width'], 350) . 'px"'; 253 253 $key = isset($_GET['key']) ? (int) $_GET['key'] : 0; 254 254 255 require_once( ' admin-header.php' ); ?>255 require_once( './admin-header.php' ); ?> 256 256 <div class="wrap"> 257 257 <?php screen_icon(); ?> 258 258 <h2><?php echo esc_html( $title ); ?></h2> … … 317 317 </div> 318 318 </div> 319 319 <?php 320 require_once( ' admin-footer.php' );320 require_once( './admin-footer.php' ); 321 321 exit; 322 322 } 323 323 … … 330 330 __('Error in displaying the widget settings form.') 331 331 ); 332 332 333 require_once( ' admin-header.php' ); ?>333 require_once( './admin-header.php' ); ?> 334 334 335 335 <div class="wrap"> 336 336 <?php screen_icon(); ?> … … 403 403 404 404 <?php 405 405 do_action( 'sidebar_admin_page' ); 406 require_once( ' admin-footer.php' );406 require_once( './admin-footer.php' ); -
wp-includes/compat.php
129 129 global $wp_json; 130 130 131 131 if ( !is_a($wp_json, 'Services_JSON') ) { 132 require_once( ' class-json.php' );132 require_once( './class-json.php' ); 133 133 $wp_json = new Services_JSON(); 134 134 } 135 135 … … 142 142 global $wp_json; 143 143 144 144 if ( !is_a($wp_json, 'Services_JSON') ) { 145 require_once( ' class-json.php' );145 require_once( './class-json.php' ); 146 146 $wp_json = new Services_JSON(); 147 147 } 148 148 -
wp-includes/media.php
1329 1329 * @return string The original URL on failure or the embed HTML on success. 1330 1330 */ 1331 1331 function wp_oembed_get( $url, $args = '' ) { 1332 require_once( ' class-oembed.php' );1332 require_once( './class-oembed.php' ); 1333 1333 $oembed = _wp_oembed_get_object(); 1334 1334 return $oembed->get_html( $url, $args ); 1335 1335 } … … 1347 1347 * @param boolean $regex Whether the $format parameter is in a regex format. 1348 1348 */ 1349 1349 function wp_oembed_add_provider( $format, $provider, $regex = false ) { 1350 require_once( ' class-oembed.php' );1350 require_once( './class-oembed.php' ); 1351 1351 $oembed = _wp_oembed_get_object(); 1352 1352 $oembed->providers[$format] = array( $provider, $regex ); 1353 1353 } -
wp-signup.php
5 5 6 6 add_action( 'wp_head', 'signuppageheaders' ) ; 7 7 8 require( ' wp-blog-header.php' );8 require( './wp-blog-header.php' ); 9 9 require_once( ABSPATH . WPINC . '/registration.php' ); 10 10 11 11 if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {