Use relative paths when including files, avoiding include_path. fixes #12594, props sorich87.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-04-18 06:14:45 +00:00
parent 0d0902e9e8
commit 6ec7cb4540
50 changed files with 139 additions and 139 deletions

View File

@ -4,7 +4,7 @@ define( "WP_INSTALLING", true );
/** Sets up the WordPress Environment. */
require( dirname(__FILE__) . '/wp-load.php' );
require( 'wp-blog-header.php' );
require( './wp-blog-header.php' );
if ( !is_multisite() ) {
wp_redirect( get_option( 'siteurl' ) . "/wp-login.php?action=register" );

View File

@ -19,7 +19,7 @@ require_once('../wp-load.php');
if ( ! isset( $_REQUEST['action'] ) )
die('-1');
require_once('includes/admin.php');
require_once('./includes/admin.php');
@header('Content-Type: text/html; charset=' . get_option('blog_charset'));
send_nosniff_header();

View File

@ -7,7 +7,7 @@
*/
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
if (!isset($_GET["page"])) require_once('admin.php');
if (!isset($_GET["page"])) require_once('./admin.php');
get_admin_page_title();
$title = esc_html( strip_tags( $title ) );

View File

@ -21,7 +21,7 @@ elseif ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
if ( empty($_COOKIE[LOGGED_IN_COOKIE]) && !empty($_REQUEST['logged_in_cookie']) )
$_COOKIE[LOGGED_IN_COOKIE] = $_REQUEST['logged_in_cookie'];
unset($current_user);
require_once('admin.php');
require_once('./admin.php');
header('Content-Type: text/plain; charset=' . get_option('blog_charset'));

View File

@ -7,7 +7,7 @@
*/
/** Load WordPress Bootstrap */
require_once('admin.php');
require_once('./admin.php');
$parent_file = 'edit-comments.php';
$submenu_file = 'edit-comments.php';
@ -36,7 +36,7 @@ if ( isset( $_GET['dt'] ) ) {
*/
function comment_footer_die( $msg ) {
echo "<div class='wrap'><p>$msg</p></div>";
include('admin-footer.php');
include('./admin-footer.php');
die;
}
@ -46,7 +46,7 @@ case 'editcomment' :
$title = __('Edit Comment');
wp_enqueue_script('comment');
require_once('admin-header.php');
require_once('./admin-header.php');
$comment_id = absint( $_GET['c'] );
@ -61,7 +61,7 @@ case 'editcomment' :
$comment = get_comment_to_edit( $comment_id );
include('edit-form-comment.php');
include('./edit-form-comment.php');
break;
@ -88,7 +88,7 @@ case 'spam' :
die();
}
require_once('admin-header.php');
require_once('./admin-header.php');
$formaction = $action . 'comment';
$nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
@ -276,6 +276,6 @@ default:
} // end switch
include('admin-footer.php');
include('./admin-footer.php');
?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( !current_user_can('edit_posts') )
wp_die(__('Cheatin&#8217; uh?'));
@ -105,7 +105,7 @@ if ( $post_id )
else
$title = __('Edit Comments');
require_once('admin-header.php');
require_once('./admin-header.php');
$mode = ( empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']);
@ -468,4 +468,4 @@ if ( $page_links )
<?php
wp_comment_reply('-1', true, 'detail');
wp_comment_trashnotice();
include('admin-footer.php'); ?>
include('./admin-footer.php'); ?>

View File

@ -102,7 +102,7 @@ if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql
$post_type_object = get_post_type_object($post_type);
// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action).
require_once('includes/meta-boxes.php');
require_once('./includes/meta-boxes.php');
add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', $post_type, 'side', 'core');
@ -165,7 +165,7 @@ do_action('do_meta_boxes', $post_type, 'side', $post);
add_contextual_help($current_screen, drag_drop_help());
require_once('admin-header.php');
require_once('./admin-header.php');
?>
<div class="wrap">

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
// Handle bulk actions
if ( isset($_GET['action']) && isset($_GET['delete']) ) {
@ -227,4 +227,4 @@ if ( $page_links )
</div><!-- /wrap -->
<?php inline_edit_term_row('edit-link-categories', 'link_category'); ?>
<?php include('admin-footer.php'); ?>
<?php include('./admin-footer.php'); ?>

View File

@ -22,7 +22,7 @@ if ( ! empty($link_id) ) {
$nonce_action = 'add-bookmark';
}
require_once('includes/meta-boxes.php');
require_once('./includes/meta-boxes.php');
add_meta_box('linksubmitdiv', __('Save'), 'link_submit_meta_box', 'link', 'side', 'core');
add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', 'link', 'normal', 'core');

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
wp_reset_vars( array('action', 'tag', 'taxonomy', 'post_type') );
@ -122,7 +122,7 @@ case 'edit':
$tag_ID = (int) $_GET['tag_ID'];
$tag = get_term($tag_ID, $taxonomy, OBJECT, 'edit');
include('edit-tag-form.php');
include('./edit-tag-form.php');
break;
@ -402,6 +402,6 @@ do_action($taxonomy . '_add_form', $taxonomy);
break;
}
include('admin-footer.php');
include('./admin-footer.php');
?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( !isset($_GET['post_type']) )
$post_type = 'post';
@ -156,7 +156,7 @@ if ( $post_type_object->hierarchical )
else
$num_pages = $wp_query->max_num_pages;
require_once('admin-header.php');
require_once('./admin-header.php');
if ( empty($_GET['mode']) )
$mode = 'list';
@ -375,7 +375,7 @@ if ( $is_trash && current_user_can($post_type_object->edit_others_cap) ) { ?>
<div class="clear"></div>
<?php include( 'edit-post-rows.php' ); ?>
<?php include( './edit-post-rows.php' ); ?>
<div class="tablenav">
@ -425,4 +425,4 @@ else
</div>
<?php
include('admin-footer.php');
include('./admin-footer.php');

View File

@ -13,7 +13,7 @@ if ( !current_user_can('edit_files') )
wp_die(__('You do not have sufficient permissions to export the content of this blog.'));
/** Load WordPress export API */
require_once('includes/export.php');
require_once('./includes/export.php');
$title = __('Export');
if ( isset( $_GET['download'] ) ) {

View File

@ -7,10 +7,10 @@
*/
/** Load WordPress Bootstrap */
require_once( 'admin.php' );
require_once( './admin.php' );
/** Load WordPress Administration Dashboard API */
require( 'includes/dashboard.php' );
require( './includes/dashboard.php' );
@header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
send_nosniff_header();

View File

@ -7,7 +7,7 @@
*/
/** Load WordPress Bootstrap */
require_once('admin.php');
require_once('./admin.php');
/** Load WordPress dashboard API */
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
@ -26,7 +26,7 @@ $parent_file = 'index.php';
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() );
require_once('admin-header.php');
require_once('./admin-header.php');
$today = current_time('mysql', 1);
?>

View File

@ -7,7 +7,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( ! current_user_can('manage_links') )
wp_die(__('You do not have sufficient permissions to add links to this blog.'));
@ -24,7 +24,7 @@ wp_enqueue_script('link');
wp_enqueue_script('xfn');
$link = get_default_link_to_edit();
include('edit-link-form.php');
include('./edit-link-form.php');
require('admin-footer.php');
require('./admin-footer.php');
?>

View File

@ -10,7 +10,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
wp_reset_vars(array('action', 'cat'));
@ -67,8 +67,8 @@ case 'edit':
require_once ('admin-header.php');
$cat_ID = (int) $_GET['cat_ID'];
$category = get_term_to_edit($cat_ID, 'link_category');
include('edit-link-category-form.php');
include('admin-footer.php');
include('./edit-link-category-form.php');
include('./admin-footer.php');
exit;
break;

View File

@ -278,4 +278,4 @@ echo $select_order;
</div>
<?php
include('admin-footer.php');
include('./admin-footer.php');

View File

@ -8,7 +8,7 @@
$_GET['inline'] = 'true';
/** Administration bootstrap */
require_once('admin.php');
require_once('media-upload.php');
require_once('./admin.php');
require_once('./media-upload.php');
?>

View File

@ -10,7 +10,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if (!current_user_can('upload_files'))
wp_die(__('You do not have permission to upload files.'));
@ -56,7 +56,7 @@ if ( isset($_GET['inline']) ) {
$title = __('Upload New Media');
$parent_file = 'upload.php';
require_once('admin-header.php'); ?>
require_once('./admin-header.php'); ?>
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php echo esc_html( $title ); ?></h2>
@ -86,7 +86,7 @@ if ( isset($_GET['inline']) ) {
</div>
<?php
include('admin-footer.php');
include('./admin-footer.php');
} else {

View File

@ -7,7 +7,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
$parent_file = 'upload.php';
$submenu_file = 'upload.php';
@ -67,7 +67,7 @@ case 'edit' :
wp_enqueue_script('image-edit');
wp_enqueue_style('imgareaselect');
require( 'admin-header.php' );
require( './admin-header.php' );
$parent_file = 'upload.php';
$message = '';
@ -114,7 +114,7 @@ case 'edit' :
<?php
require( 'admin-footer.php' );
require( './admin-footer.php' );
exit;

View File

@ -74,4 +74,4 @@ switch ( $action ) {
?>
</div>
<?php include('admin-footer.php'); ?>
<?php include('./admin-footer.php'); ?>

View File

@ -10,7 +10,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( 'admin.php' );
require_once( './admin.php' );
// Load all the nav menu interface functions
require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' );
@ -235,7 +235,7 @@ if ( !is_nav_menu( $nav_menu_selected_id ) ) {
}
// Get the admin header
require_once( 'admin-header.php' );
require_once( './admin-header.php' );
?>
<div class="wrap">
<?php screen_icon(); ?>
@ -345,4 +345,4 @@ require_once( 'admin-header.php' );
<input type="hidden" id="edit-menu-item-id" name="edit-item-id" value="" />
</div><!-- /#menu-item-settings-->
<?php include( 'admin-footer.php' ); ?>
<?php include( './admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_options' ) )
$title = __('Discussion Settings');
$parent_file = 'options-general.php';
include('admin-header.php');
include('./admin-header.php');
?>
<div class="wrap">

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_options' ) )
$title = __('Media Settings');
$parent_file = 'options-general.php';
include('admin-header.php');
include('./admin-header.php');
?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@ -70,7 +70,7 @@ window.onload = blurry;
}
add_filter('admin_head', 'add_js');
include('admin-header.php');
include('./admin-header.php');
$home_path = get_home_path();
$iis7_permalinks = iis7_supports_permalinks();

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once( 'admin.php' );
require_once( './admin.php' );
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_options' ) )
$title = __( 'Reading Settings' );
$parent_file = 'options-general.php';
include( 'admin-header.php' );
include( './admin-header.php' );
?>
<div class="wrap">

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_options' ) )
$title = __('Writing Settings');
$parent_file = 'options-general.php';
include('admin-header.php');
include('./admin-header.php');
?>
<div class="wrap">

View File

@ -16,7 +16,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
$title = __('Settings');
$this_file = 'options.php';
@ -161,7 +161,7 @@ if ( 'update' == $action ) {
exit;
}
include('admin-header.php'); ?>
include('./admin-header.php'); ?>
<div class="wrap">
<?php screen_icon(); ?>
@ -214,5 +214,5 @@ endforeach;
<?php
include('admin-footer.php');
include('./admin-footer.php');
?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( !current_user_can('edit_plugins') )
wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
@ -102,7 +102,7 @@ default:
}
}
require_once('admin-header.php');
require_once('./admin-header.php');
update_recently_edited(WP_PLUGIN_DIR . '/' . $file);
@ -239,4 +239,4 @@ jQuery(document).ready(function($){
<?php
break;
}
include("admin-footer.php");
include("./admin-footer.php");

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( ! current_user_can('install_plugins') )
wp_die(__('You do not have sufficient permissions to install plugins on this blog.'));
@ -54,7 +54,7 @@ do_action('install_plugins_pre_' . $tab); //Used to override the general interfa
add_contextual_help($current_screen, plugins_search_help());
include('admin-header.php');
include('./admin-header.php');
?>
<div class="wrap">
<?php screen_icon(); ?>
@ -75,4 +75,4 @@ foreach ( (array)$tabs as $action => $text ) {
<?php do_action('install_plugins_' . $tab, $paged); ?>
</div>
<?php
include('admin-footer.php');
include('./admin-footer.php');

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( ! current_user_can( 'activate_plugins' ) )
wp_die( __( 'You do not have sufficient permissions to manage plugins for this site.' ) );
@ -109,7 +109,7 @@ if ( !empty($action) ) {
$title = __( 'Upgrade Plugins' );
$parent_file = 'plugins.php';
require_once( 'admin-header.php' );
require_once( './admin-header.php' );
echo '<div class="wrap">';
screen_icon();
@ -121,7 +121,7 @@ if ( !empty($action) ) {
echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>";
echo '</div>';
require_once( 'admin-footer.php' );
require_once( './admin-footer.php' );
exit;
break;
case 'error_scrape':
@ -206,7 +206,7 @@ if ( !empty($action) ) {
if ( ! isset($_REQUEST['verify-delete']) ) {
wp_enqueue_script('jquery');
require_once('admin-header.php');
require_once('./admin-header.php');
?>
<div class="wrap">
<?php
@ -284,7 +284,7 @@ if ( !empty($action) ) {
</div>
</div>
<?php
require_once('admin-footer.php');
require_once('./admin-footer.php');
exit;
} //Endif verify-delete
$delete_result = delete_plugins($plugins);
@ -318,7 +318,7 @@ if ( is_multisite() && is_super_admin() ) {
}
$title = __('Manage Plugins');
require_once('admin-header.php');
require_once('./admin-header.php');
$invalid = validate_active_plugins();
if ( !empty($invalid) )
@ -776,5 +776,5 @@ print_plugin_actions($status, "action2");
</div>
<?php
include('admin-footer.php');
include('./admin-footer.php');
?>

View File

@ -9,7 +9,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
$parent_file = 'edit.php';
$submenu_file = 'edit.php';
@ -185,7 +185,7 @@ case 'edit':
enqueue_comment_hotkeys_js();
}
include('edit-form-advanced.php');
include('./edit-form-advanced.php');
break;
@ -274,5 +274,5 @@ default:
exit();
break;
} // end switch
include('admin-footer.php');
include('./admin-footer.php');
?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
if ( ! current_user_can('edit_posts') )

View File

@ -15,5 +15,5 @@
define('IS_PROFILE_PAGE', true);
/** Load User Editing Page */
require_once('user-edit.php');
require_once('./user-edit.php');
?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
wp_enqueue_script('list-revisions');
@ -49,7 +49,7 @@ case 'diff' :
// If we're comparing a revision to itself, redirect to the 'view' page for that revision or the edit page for that post
if ( $left_revision->ID == $right_revision->ID ) {
$redirect = get_edit_post_link( $left_revision->ID );
include( 'js/revisions-js.php' );
include( './js/revisions-js.php' );
break;
}
@ -142,7 +142,7 @@ if ( !empty($post->post_type) && 'post' != $post->post_type )
else
$parent_file = $submenu_file = 'edit.php';
require_once( 'admin-header.php' );
require_once( './admin-header.php' );
?>
@ -218,4 +218,4 @@ wp_list_post_revisions( $post, $args );
<?php
require_once( 'admin-footer.php' );
require_once( './admin-footer.php' );

View File

@ -13,7 +13,7 @@
$mode = 'sidebar';
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( ! current_user_can('edit_posts') )
wp_die(__('Cheatin&#8217; uh?'));

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( !current_user_can('edit_themes') )
wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
@ -79,7 +79,7 @@ break;
default:
require_once('admin-header.php');
require_once('./admin-header.php');
update_recently_edited($file);
@ -240,4 +240,4 @@ jQuery(document).ready(function($){
break;
}
include("admin-footer.php");
include("./admin-footer.php");

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( ! current_user_can('install_themes') )
wp_die(__('You do not have sufficient permissions to install themes on this blog.'));
@ -55,7 +55,7 @@ do_action('install_themes_pre_' . $tab); //Used to override the general interfac
add_contextual_help($current_screen, plugins_search_help());
include('admin-header.php');
include('./admin-header.php');
?>
<div class="wrap">
<?php screen_icon(); ?>
@ -76,4 +76,4 @@ foreach ( (array)$tabs as $action => $text ) {
<?php do_action('install_themes_' . $tab, $paged); ?>
</div>
<?php
include('admin-footer.php');
include('./admin-footer.php');

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( !current_user_can('switch_themes') )
wp_die( __( 'Cheatin&#8217; uh?' ) );
@ -42,7 +42,7 @@ add_contextual_help($current_screen, $help);
add_thickbox();
wp_enqueue_script( 'theme-preview' );
require_once('admin-header.php');
require_once('./admin-header.php');
if ( is_multisite() && current_user_can('edit_themes') ) {
?><div id="message0" class="updated"><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
}
@ -313,4 +313,4 @@ if ( current_user_can('edit_themes') && count( $broken_themes ) ) {
?>
</div>
<?php require('admin-footer.php'); ?>
<?php require('./admin-footer.php'); ?>

View File

@ -7,11 +7,11 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
$title = __('Tools');
require_once('admin-header.php');
require_once('./admin-header.php');
?>
<div class="wrap">
@ -45,5 +45,5 @@ do_action( 'tool_box' );
?>
</div>
<?php
include('admin-footer.php');
include('./admin-footer.php');
?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( ! current_user_can('update_plugins') )
wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
@ -376,7 +376,7 @@ $parent_file = 'tools.php';
if ( 'upgrade-core' == $action ) {
wp_version_check();
require_once('admin-header.php');
require_once('./admin-header.php');
core_upgrade_preamble();
} elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall' == $action ) {
check_admin_referer('upgrade-core');
@ -388,7 +388,7 @@ if ( 'upgrade-core' == $action ) {
elseif ( isset( $_POST['undismiss'] ) )
do_undismiss_core_update();
require_once('admin-header.php');
require_once('./admin-header.php');
if ( 'do-core-reinstall' == $action )
$reinstall = true;
else
@ -414,7 +414,7 @@ if ( 'upgrade-core' == $action ) {
$title = __('Update Plugins');
require_once('admin-header.php');
require_once('./admin-header.php');
echo '<div class="wrap">';
screen_icon('plugins');
echo '<h2>' . esc_html__('Update Plugins') . '</h2>';
@ -437,7 +437,7 @@ if ( 'upgrade-core' == $action ) {
$title = __('Update Themes');
require_once('admin-header.php');
require_once('./admin-header.php');
echo '<div class="wrap">';
screen_icon('themes');
echo '<h2>' . esc_html__('Update Themes') . '</h2>';
@ -445,4 +445,4 @@ if ( 'upgrade-core' == $action ) {
echo '</div>';
}
include('admin-footer.php');
include('./admin-footer.php');

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
@ -52,7 +52,7 @@ if ( isset($_GET['action']) ) {
$title = __('Upgrade Plugin');
$parent_file = 'plugins.php';
$submenu_file = 'plugins.php';
require_once('admin-header.php');
require_once('./admin-header.php');
$nonce = 'upgrade-plugin_' . $plugin;
$url = 'update.php?action=upgrade-plugin&plugin=' . $plugin;
@ -60,7 +60,7 @@ if ( isset($_GET['action']) ) {
$upgrader = new Plugin_Upgrader( new Plugin_Upgrader_Skin( compact('title', 'nonce', 'url', 'plugin') ) );
$upgrader->upgrade($plugin);
include('admin-footer.php');
include('./admin-footer.php');
} elseif ('activate-plugin' == $action ) {
if ( ! current_user_can('update_plugins') )
@ -105,7 +105,7 @@ if ( isset($_GET['action']) ) {
$title = __('Plugin Install');
$parent_file = 'plugins.php';
$submenu_file = 'plugin-install.php';
require_once('admin-header.php');
require_once('./admin-header.php');
$title = sprintf( __('Installing Plugin: %s'), $api->name . ' ' . $api->version );
$nonce = 'install-plugin_' . $plugin;
@ -115,7 +115,7 @@ if ( isset($_GET['action']) ) {
$upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact('title', 'url', 'nonce', 'plugin', 'api') ) );
$upgrader->install($api->download_link);
include('admin-footer.php');
include('./admin-footer.php');
} elseif ( 'upload-plugin' == $action ) {
@ -129,7 +129,7 @@ if ( isset($_GET['action']) ) {
$title = __('Upload Plugin');
$parent_file = 'plugins.php';
$submenu_file = 'plugin-install.php';
require_once('admin-header.php');
require_once('./admin-header.php');
$title = sprintf( __('Installing Plugin from uploaded file: %s'), basename( $file_upload->filename ) );
$nonce = 'plugin-upload';
@ -139,7 +139,7 @@ if ( isset($_GET['action']) ) {
$upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact('type', 'title', 'nonce', 'url') ) );
$upgrader->install( $file_upload->package );
include('admin-footer.php');
include('./admin-footer.php');
} elseif ( 'upgrade-theme' == $action ) {
@ -153,7 +153,7 @@ if ( isset($_GET['action']) ) {
$title = __('Upgrade Theme');
$parent_file = 'themes.php';
$submenu_file = 'themes.php';
require_once('admin-header.php');
require_once('./admin-header.php');
$nonce = 'upgrade-theme_' . $theme;
$url = 'update.php?action=upgrade-theme&theme=' . $theme;
@ -161,7 +161,7 @@ if ( isset($_GET['action']) ) {
$upgrader = new Theme_Upgrader( new Theme_Upgrader_Skin( compact('title', 'nonce', 'url', 'theme') ) );
$upgrader->upgrade($theme);
include('admin-footer.php');
include('./admin-footer.php');
} elseif ( 'update-selected-themes' == $action ) {
if ( ! current_user_can( 'update_themes' ) )
wp_die( __( 'You do not have sufficient permissions to update themes for this blog.' ) );
@ -206,7 +206,7 @@ if ( isset($_GET['action']) ) {
$title = __('Install Themes');
$parent_file = 'themes.php';
$submenu_file = 'themes.php';
require_once('admin-header.php');
require_once('./admin-header.php');
$title = sprintf( __('Installing Theme: %s'), $api->name . ' ' . $api->version );
$nonce = 'install-theme_' . $theme;
@ -216,7 +216,7 @@ if ( isset($_GET['action']) ) {
$upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact('title', 'url', 'nonce', 'plugin', 'api') ) );
$upgrader->install($api->download_link);
include('admin-footer.php');
include('./admin-footer.php');
} elseif ( 'upload-theme' == $action ) {
@ -232,7 +232,7 @@ if ( isset($_GET['action']) ) {
$submenu_file = 'theme-install.php';
add_thickbox();
wp_enqueue_script('theme-preview');
require_once('admin-header.php');
require_once('./admin-header.php');
$title = sprintf( __('Installing Theme from uploaded file: %s'), basename( $file_upload->filename ) );
$nonce = 'theme-upload';
@ -242,7 +242,7 @@ if ( isset($_GET['action']) ) {
$upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact('type', 'title', 'nonce', 'url') ) );
$upgrader->install( $file_upload->package );
include('admin-footer.php');
include('./admin-footer.php');
} else {
do_action('update-custom_' . $action);

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
wp_enqueue_script( 'wp-ajax-response' );
wp_enqueue_script( 'jquery-ui-draggable' );
@ -161,7 +161,7 @@ if ( isset($_GET['detached']) ) {
$is_trash = ( isset($_GET['status']) && $_GET['status'] == 'trash' );
wp_enqueue_script('media');
require_once('admin-header.php');
require_once('./admin-header.php');
?>
<div class="wrap">
@ -448,7 +448,7 @@ if ( isset($_GET['detached']) ) { ?>
<?php
} else {
include( 'edit-attachment-rows.php' );
include( './edit-attachment-rows.php' );
} ?>
<div id="ajax-response"></div>
@ -492,4 +492,4 @@ if ( $page_links )
</div>
<?php
include('admin-footer.php');
include('./admin-footer.php');

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
wp_reset_vars(array('action', 'redirect', 'profile', 'user_id', 'wp_http_referer'));
@ -374,5 +374,5 @@ if ( $show_password_fields ) :
break;
}
include('admin-footer.php');
include('./admin-footer.php');
?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
if ( !current_user_can('create_users') )
wp_die(__('Cheatin&#8217; uh?'));
@ -255,5 +255,5 @@ $new_user_send_password = !$_POST || isset($_POST['send_password']);
</div>
<?php
include('admin-footer.php');
include('./admin-footer.php');
?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('admin.php');
require_once('./admin.php');
/** WordPress Registration API */
require_once( ABSPATH . WPINC . '/registration.php');
@ -206,7 +206,7 @@ default:
exit;
}
include('admin-header.php');
include('./admin-header.php');
$usersearch = isset($_GET['usersearch']) ? $_GET['usersearch'] : null;
$userspage = isset($_GET['userspage']) ? $_GET['userspage'] : null;
@ -421,5 +421,5 @@ break;
} // end of the $doaction switch
include('admin-footer.php');
include('./admin-footer.php');
?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once( 'admin.php' );
require_once( './admin.php' );
/** WordPress Administration Widgets API */
require_once(ABSPATH . 'wp-admin/includes/widgets.php');
@ -128,7 +128,7 @@ retrieve_widgets();
if ( count($wp_registered_sidebars) == 1 ) {
// If only "wp_inactive_widgets" is defined the theme has no sidebars, die.
require_once( 'admin-header.php' );
require_once( './admin-header.php' );
?>
<div class="wrap">
@ -141,7 +141,7 @@ if ( count($wp_registered_sidebars) == 1 ) {
</div>
<?php
require_once( 'admin-footer.php' );
require_once( './admin-footer.php' );
exit;
}
@ -252,7 +252,7 @@ if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) {
$width = ' style="width:' . max($control['width'], 350) . 'px"';
$key = isset($_GET['key']) ? (int) $_GET['key'] : 0;
require_once( 'admin-header.php' ); ?>
require_once( './admin-header.php' ); ?>
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php echo esc_html( $title ); ?></h2>
@ -317,7 +317,7 @@ if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) {
</div>
</div>
<?php
require_once( 'admin-footer.php' );
require_once( './admin-footer.php' );
exit;
}
@ -330,7 +330,7 @@ $errors = array(
__('Error in displaying the widget settings form.')
);
require_once( 'admin-header.php' ); ?>
require_once( './admin-header.php' ); ?>
<div class="wrap">
<?php screen_icon(); ?>
@ -403,4 +403,4 @@ foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) {
<?php
do_action( 'sidebar_admin_page' );
require_once( 'admin-footer.php' );
require_once( './admin-footer.php' );

View File

@ -129,7 +129,7 @@ if ( !function_exists('json_encode') ) {
global $wp_json;
if ( !is_a($wp_json, 'Services_JSON') ) {
require_once( 'class-json.php' );
require_once( './class-json.php' );
$wp_json = new Services_JSON();
}
@ -142,7 +142,7 @@ if ( !function_exists('json_decode') ) {
global $wp_json;
if ( !is_a($wp_json, 'Services_JSON') ) {
require_once( 'class-json.php' );
require_once( './class-json.php' );
$wp_json = new Services_JSON();
}

View File

@ -1332,7 +1332,7 @@ function wp_expand_dimensions( $example_width, $example_height, $max_width, $max
* @return string The original URL on failure or the embed HTML on success.
*/
function wp_oembed_get( $url, $args = '' ) {
require_once( 'class-oembed.php' );
require_once( './class-oembed.php' );
$oembed = _wp_oembed_get_object();
return $oembed->get_html( $url, $args );
}
@ -1350,7 +1350,7 @@ function wp_oembed_get( $url, $args = '' ) {
* @param boolean $regex Whether the $format parameter is in a regex format.
*/
function wp_oembed_add_provider( $format, $provider, $regex = false ) {
require_once( 'class-oembed.php' );
require_once( './class-oembed.php' );
$oembed = _wp_oembed_get_object();
$oembed->providers[$format] = array( $provider, $regex );
}

View File

@ -5,7 +5,7 @@ require( dirname(__FILE__) . '/wp-load.php' );
add_action( 'wp_head', 'signuppageheaders' ) ;
require( 'wp-blog-header.php' );
require( './wp-blog-header.php' );
require_once( ABSPATH . WPINC . '/registration.php' );
if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {