Don't rely on include_path to include files.

Always use dirname() or, once available, ABSPATH.

props ketwaroo, hakre.
fixes #17092.

Built from https://develop.svn.wordpress.org/trunk@25616


git-svn-id: http://core.svn.wordpress.org/trunk@25533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-09-25 00:18:11 +00:00
parent 0e620877fd
commit fd57b239d2
105 changed files with 225 additions and 225 deletions

View File

@ -14,4 +14,4 @@
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

View File

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

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
$title = __( 'About' );

View File

@ -8,7 +8,7 @@
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
if ( ! defined( 'WP_ADMIN' ) )
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
// In case admin-header.php is included in a function.
global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version,

View File

@ -14,7 +14,7 @@ define('WP_ADMIN', true);
if ( defined('ABSPATH') )
require_once(ABSPATH . 'wp-load.php');
else
require_once('../wp-load.php');
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
/** Allow for cross-domain requests (from the frontend). */
send_origin_headers();

View File

@ -11,7 +11,7 @@ define('WP_ADMIN', true);
if ( defined('ABSPATH') )
require_once(ABSPATH . 'wp-load.php');
else
require_once('../wp-load.php');
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
if ( ! ( isset( $_REQUEST['action'] ) && 'upload-attachment' == $_REQUEST['action'] ) ) {
// Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead
@ -24,7 +24,7 @@ if ( ! ( isset( $_REQUEST['action'] ) && 'upload-attachment' == $_REQUEST['actio
unset($current_user);
}
require_once('./admin.php');
require_once( ABSPATH . 'wp-admin/admin.php' );
if ( !current_user_can('upload_files') )
wp_die(__('You do not have permission to upload files.'));

View File

@ -7,7 +7,7 @@
*/
/** Load WordPress Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/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( ABSPATH . 'wp-admin/admin-footer.php' );
die;
}
@ -60,7 +60,7 @@ case 'editcomment' :
);
wp_enqueue_script('comment');
require_once('./admin-header.php');
require_once( ABSPATH . 'wp-admin/admin-header.php' );
$comment_id = absint( $_GET['c'] );
@ -75,7 +75,7 @@ case 'editcomment' :
$comment = get_comment_to_edit( $comment_id );
include('./edit-form-comment.php');
include( ABSPATH . 'wp-admin/edit-form-comment.php' );
break;
@ -104,7 +104,7 @@ case 'spam' :
die();
}
require_once('./admin-header.php');
require_once( ABSPATH . 'wp-admin/admin-header.php' );
$formaction = $action . 'comment';
$nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
@ -300,4 +300,4 @@ default:
} // end switch
include('./admin-footer.php');
include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
$title = __( 'Credits' );

View File

@ -9,7 +9,7 @@
define( 'IFRAME_REQUEST', true );
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'edit_theme_options' ) )
wp_die( __( 'Cheatin&#8217; uh?' ) );

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( !current_user_can('edit_posts') )
wp_die(__('Cheatin&#8217; uh?'));
@ -136,7 +136,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
);
require_once('./admin-header.php');
require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
@ -252,4 +252,4 @@ if ( isset($_REQUEST['approved']) || isset($_REQUEST['deleted']) || isset($_REQU
<?php
wp_comment_reply('-1', true, 'detail');
wp_comment_trashnotice();
include('./admin-footer.php'); ?>
include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -107,7 +107,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( ABSPATH . 'wp-admin/includes/meta-boxes.php' );
$publish_callback_args = null;
@ -309,7 +309,7 @@ if ( 'post' == $post_type ) {
) );
}
require_once('./admin-header.php');
require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">

View File

@ -22,7 +22,7 @@ if ( ! empty($link_id) ) {
$nonce_action = 'add-bookmark';
}
require_once('./includes/meta-boxes.php');
require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' );
add_meta_box('linksubmitdiv', __('Save'), 'link_submit_meta_box', null, 'side', 'core');
add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', null, 'normal', 'core');
@ -54,7 +54,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
);
require_once ('admin-header.php');
require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! $taxnow )
wp_die( __( 'Invalid taxonomy' ) );
@ -126,8 +126,8 @@ case 'edit':
$tag = get_term( $tag_ID, $taxonomy, OBJECT, 'edit' );
if ( ! $tag )
wp_die( __( 'You attempted to edit an item that doesn&#8217;t exist. Perhaps it was deleted?' ) );
require_once ( 'admin-header.php' );
include( './edit-tag-form.php' );
require_once( ABSPATH . 'wp-admin/admin-header.php' );
include( ABSPATH . 'wp-admin/edit-tag-form.php' );
break;
@ -247,7 +247,7 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t
unset( $help );
}
require_once ('admin-header.php');
require_once( ABSPATH . 'wp-admin/admin-header.php' );
if ( !current_user_can($tax->cap->edit_terms) )
wp_die( __('You are not allowed to edit this item.') );
@ -462,4 +462,4 @@ try{document.forms.addtag['tag-name'].focus();}catch(e){}
break;
}
include('./admin-footer.php');
include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! $typenow )
wp_die( __( 'Invalid post type' ) );
@ -262,7 +262,7 @@ $bulk_messages['page'] = array(
$bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts );
$bulk_counts = array_filter( $bulk_counts );
require_once('./admin-header.php');
require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
<?php screen_icon(); ?>
@ -322,4 +322,4 @@ if ( $wp_list_table->has_items() )
</div>
<?php
include('./admin-footer.php');
include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -7,13 +7,13 @@
*/
/** Load WordPress Bootstrap */
require_once ('admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( !current_user_can('export') )
wp_die(__('You do not have sufficient permissions to export the content of this site.'));
/** Load WordPress export API */
require_once('./includes/export.php');
require_once( ABSPATH . 'wp-admin/includes/export.php' );
$title = __('Export');
/**
@ -107,7 +107,7 @@ if ( isset( $_GET['download'] ) ) {
die();
}
require_once ('admin-header.php');
require_once( ABSPATH . 'wp-admin/admin-header.php' );
/**
* Create the date options fields for exporting a given post type.
@ -241,4 +241,4 @@ do_action( 'export_filters' );
</form>
</div>
<?php include('admin-footer.php'); ?>
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
$title = __( 'Freedoms' );

View File

@ -9,7 +9,7 @@
define('WP_LOAD_IMPORTERS', true);
/** Load WordPress Bootstrap */
require_once ('admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( !current_user_can('import') )
wp_die(__('You do not have sufficient permissions to import content in this site.'));
@ -47,7 +47,7 @@ if ( ! empty( $_GET['invalid'] ) && isset( $popular_importers[ $_GET['invalid']
add_thickbox();
wp_enqueue_script( 'plugin-install' );
require_once ('admin-header.php');
require_once( ABSPATH . 'wp-admin/admin-header.php' );
$parent_file = 'tools.php';
?>
@ -130,4 +130,4 @@ if ( current_user_can('install_plugins') )
<?php
include ('admin-footer.php');
include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -7,7 +7,7 @@
*/
/** Load WordPress Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
/** Load WordPress dashboard API */
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');

View File

@ -36,10 +36,10 @@ define( 'WP_INSTALLING', true );
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
/** Load WordPress Administration Upgrade API */
require_once( dirname( __FILE__ ) . '/includes/upgrade.php' );
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
/** Load wpdb */
require_once(dirname(dirname(__FILE__)) . '/wp-includes/wp-db.php');
require_once( ABSPATH . 'wp-includes/wp-db.php' );
$step = isset( $_GET['step'] ) ? (int) $_GET['step'] : 0;

View File

@ -7,7 +7,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can('manage_links') )
wp_die(__('You do not have sufficient permissions to add links to this site.'));
@ -24,6 +24,6 @@ if ( wp_is_mobile() )
wp_enqueue_script( 'jquery-touch-punch' );
$link = get_default_link_to_edit();
include('./edit-link-form.php');
include( ABSPATH . 'wp-admin/edit-link-form.php' );
require('./admin-footer.php');
require( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -7,7 +7,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once ('admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_links' ) )
wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) );
@ -61,7 +61,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
);
include_once ('./admin-header.php');
include_once( ABSPATH . 'wp-admin/admin-header.php' );
if ( ! current_user_can('manage_links') )
wp_die(__("You do not have sufficient permissions to edit the links for this site."));
@ -97,4 +97,4 @@ if ( isset($_REQUEST['deleted']) ) {
</div>
<?php
include('./admin-footer.php');
include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -10,7 +10,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once ('admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) );
@ -111,8 +111,8 @@ switch ($action) {
if (!$link = get_link_to_edit($link_id))
wp_die(__('Link not found.'));
include ('edit-link-form.php');
include ('admin-footer.php');
include( ABSPATH . 'wp-admin/edit-link-form.php' );
include( ABSPATH . 'wp-admin/admin-footer.php' );
break;
default :

View File

@ -7,7 +7,7 @@
*/
define('WP_REPAIRING', true);
require_once('../../wp-load.php');
require_once( dirname( dirname( dirname( __FILE__ ) ) ) . '/wp-load.php' );
header( 'Content-Type: text/html; charset=utf-8' );
?>

View File

@ -10,7 +10,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if (!current_user_can('upload_files'))
wp_die(__('You do not have permission to upload files.'));

View File

@ -13,7 +13,7 @@ if ( ! isset( $_GET['inline'] ) )
define( 'IFRAME_REQUEST' , true );
/** Load WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if (!current_user_can('upload_files'))
wp_die(__('You do not have permission to upload files.'));

View File

@ -7,7 +7,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
$parent_file = 'upload.php';
$submenu_file = 'upload.php';
@ -84,7 +84,7 @@ case 'edit' :
'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
);
require( './admin-header.php' );
require( ABSPATH . 'wp-admin/admin-header.php' );
$parent_file = 'upload.php';
$message = '';
@ -136,7 +136,7 @@ if ( current_user_can( 'upload_files' ) ) { ?>
<?php
require( './admin-footer.php' );
require( ABSPATH . 'wp-admin/admin-footer.php' );
exit;

View File

@ -7,6 +7,6 @@
* @package WordPress
* @subpackage Administration
*/
require_once('../wp-load.php');
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
wp_redirect( admin_url('edit-comments.php?comment_status=moderated') );
exit;

View File

@ -7,7 +7,7 @@
* @since 3.0.0
*/
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
wp_redirect( network_admin_url() );
exit;

View File

@ -7,7 +7,7 @@
* @since 3.0.0
*/
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( !is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
@ -29,7 +29,7 @@ $blog = get_blog_details();
$title = __( 'Delete Site' );
$parent_file = 'tools.php';
require_once( './admin-header.php' );
require_once( ABSPATH . 'wp-admin/admin-header.php' );
echo '<div class="wrap">';
screen_icon();
@ -89,4 +89,4 @@ Webmaster
}
echo '</div>';
include( './admin-footer.php' );
include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -7,7 +7,7 @@
* @since 3.0.0
*/
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
wp_redirect( network_admin_url() );
exit;

View File

@ -7,6 +7,6 @@
* @since 3.0.0
*/
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
wp_redirect( network_admin_url('settings.php') );

View File

@ -7,7 +7,7 @@
* @since 3.0.0
*/
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
wp_redirect( network_admin_url('sites.php') );
exit;

View File

@ -7,7 +7,7 @@
* @since 3.0.0
*/
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
wp_redirect( network_admin_url('themes.php') );
exit;

View File

@ -7,7 +7,7 @@
* @since 3.0.0
*/
require_once('admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
wp_redirect( network_admin_url('upgrade.php') );
exit;

View File

@ -7,7 +7,7 @@
* @since 3.0.0
*/
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
wp_redirect( network_admin_url('users.php') );
exit;

View File

@ -7,7 +7,7 @@
* @since 3.0.0
*/
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( !is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
@ -49,7 +49,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
);
require_once( './admin-header.php' );
require_once( ABSPATH . 'wp-admin/admin-header.php' );
if ( $updated ) { ?>
<div id="message" class="updated"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div>
@ -117,4 +117,4 @@ else :
<?php endif; ?>
</div>
<?php
include( './admin-footer.php' );
include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -10,7 +10,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
// Load all the nav menu interface functions
require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' );
@ -530,7 +530,7 @@ get_current_screen()->set_help_sidebar(
);
// Get the admin header
require_once( './admin-header.php' );
require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
<?php screen_icon(); ?>
@ -762,4 +762,4 @@ require_once( './admin-header.php' );
</div><!-- /#nav-menus-frame -->
<?php endif; ?>
</div><!-- /.wrap-->
<?php include( './admin-footer.php' ); ?>
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -13,7 +13,7 @@
define( 'WP_INSTALLING_NETWORK', true );
/** WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_super_admin() )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );

View File

@ -8,9 +8,9 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../about.php' );
require( ABSPATH . 'wp-admin/about.php' );

View File

@ -8,9 +8,9 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../credits.php' );
require( ABSPATH . 'wp-admin/credits.php' );

View File

@ -8,7 +8,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );

View File

@ -8,9 +8,9 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../freedoms.php' );
require( ABSPATH . 'wp-admin/freedoms.php' );

View File

@ -8,7 +8,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
/** Load WordPress dashboard API */
require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
@ -62,7 +62,7 @@ add_thickbox();
add_screen_option('layout_columns', array('max' => 4, 'default' => 2) );
require_once( '../admin-header.php' );
require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>
@ -79,4 +79,4 @@ require_once( '../admin-header.php' );
</div><!-- wrap -->
<?php include( '../admin-footer.php' ); ?>
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -8,9 +8,9 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../plugin-editor.php' );
require( ABSPATH . 'wp-admin/plugin-editor.php' );

View File

@ -11,9 +11,9 @@ if ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) )
define( 'IFRAME_REQUEST', true );
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../plugin-install.php' );
require( ABSPATH . 'wp-admin/plugin-install.php' );

View File

@ -8,9 +8,9 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../plugins.php' );
require( ABSPATH . 'wp-admin/plugins.php' );

View File

@ -8,9 +8,9 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../profile.php' );
require( ABSPATH . 'wp-admin/profile.php' );

View File

@ -8,7 +8,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
@ -71,7 +71,7 @@ if ( $_POST ) {
exit();
}
include( '../admin-header.php' );
include( ABSPATH . 'wp-admin/admin-header.php' );
if ( isset( $_GET['updated'] ) ) {
?><div id="message" class="updated"><p><?php _e( 'Options saved.' ) ?></p></div><?php
@ -300,4 +300,4 @@ if ( isset( $_GET['updated'] ) ) {
</form>
</div>
<?php include( '../admin-footer.php' ); ?>
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -8,9 +8,9 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../network.php' );
require( ABSPATH . 'wp-admin/network.php' );

View File

@ -8,7 +8,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
@ -91,7 +91,7 @@ $title = sprintf( __('Edit Site: %s'), $site_url_no_http );
$parent_file = 'sites.php';
$submenu_file = 'sites.php';
require('../admin-header.php');
require( ABSPATH . 'wp-admin/admin-header.php' );
?>
@ -177,4 +177,4 @@ if ( ! empty( $messages ) ) {
</div>
<?php
require('../admin-footer.php');
require( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -8,7 +8,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
@ -107,7 +107,7 @@ if ( isset($_GET['update']) ) {
$title = __('Add New Site');
$parent_file = 'sites.php';
require('../admin-header.php');
require( ABSPATH . 'wp-admin/admin-header.php' );
?>
@ -150,4 +150,4 @@ if ( ! empty( $messages ) ) {
</form>
</div>
<?php
require('../admin-footer.php');
require( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -8,7 +8,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
@ -77,7 +77,7 @@ $title = sprintf( __('Edit Site: %s'), $site_url_no_http );
$parent_file = 'sites.php';
$submenu_file = 'sites.php';
require('../admin-header.php');
require( ABSPATH . 'wp-admin/admin-header.php' );
?>
@ -152,4 +152,4 @@ if ( ! empty( $messages ) ) {
</div>
<?php
require('../admin-footer.php');
require( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -8,7 +8,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
@ -132,7 +132,7 @@ $title = sprintf( __('Edit Site: %s'), $site_url_no_http );
$parent_file = 'sites.php';
$submenu_file = 'sites.php';
require('../admin-header.php'); ?>
require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
<div class="wrap">
<?php screen_icon('ms-admin'); ?>

View File

@ -8,7 +8,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
@ -167,7 +167,7 @@ $submenu_file = 'sites.php';
if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) )
wp_enqueue_script( 'user-suggest' );
require('../admin-header.php'); ?>
require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
<script type='text/javascript'>
/* <![CDATA[ */
@ -307,4 +307,4 @@ endif; ?>
<?php endif; ?>
</div>
<?php
require('../admin-footer.php');
require( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -8,7 +8,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
@ -225,7 +225,7 @@ if ( isset( $_GET['updated'] ) ) {
$wp_list_table->prepare_items();
require_once( '../admin-header.php' );
require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
@ -254,4 +254,4 @@ require_once( '../admin-header.php' );
</div>
<?php
require_once( '../admin-footer.php' ); ?>
require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -8,9 +8,9 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../theme-editor.php' );
require( ABSPATH . 'wp-admin/theme-editor.php' );

View File

@ -11,9 +11,9 @@ if ( isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) )
define( 'IFRAME_REQUEST', true );
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../theme-install.php' );
require( ABSPATH . 'wp-admin/theme-install.php' );

View File

@ -8,7 +8,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );

View File

@ -8,9 +8,9 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../update-core.php' );
require( ABSPATH . 'wp-admin/update-core.php' );

View File

@ -11,9 +11,9 @@ if ( isset( $_GET['action'] ) && in_array( $_GET['action'], array( 'update-selec
define( 'IFRAME_REQUEST', true );
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../update.php' );
require( ABSPATH . 'wp-admin/update.php' );

View File

@ -8,7 +8,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
@ -33,7 +33,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
);
require_once('../admin-header.php');
require_once( ABSPATH . 'wp-admin/admin-header.php' );
if ( ! current_user_can( 'manage_network' ) )
wp_die( __( 'You do not have permission to access this page.' ) );
@ -99,4 +99,4 @@ switch ( $action ) {
?>
</div>
<?php include('../admin-footer.php'); ?>
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -8,9 +8,9 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../user-edit.php' );
require( ABSPATH . 'wp-admin/user-edit.php' );

View File

@ -8,7 +8,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
@ -66,7 +66,7 @@ if ( isset($_GET['update']) ) {
$title = __('Add New User');
$parent_file = 'users.php';
require('../admin-header.php'); ?>
require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
<div class="wrap">
<?php screen_icon(); ?>
@ -104,4 +104,4 @@ if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { ?>
</form>
</div>
<?php
require('../admin-footer.php');
require( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -8,7 +8,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
@ -101,11 +101,11 @@ if ( isset( $_GET['action'] ) ) {
$_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle with arrays
$title = __( 'Users' );
$parent_file = 'users.php';
require_once( '../admin-header.php' );
require_once( ABSPATH . 'wp-admin/admin-header.php' );
echo '<div class="wrap">';
confirm_delete_users( $_POST['allusers'] );
echo '</div>';
require_once( '../admin-footer.php' );
require_once( ABSPATH . 'wp-admin/admin-footer.php' );
} else {
wp_redirect( network_admin_url( 'users.php' ) );
}
@ -130,11 +130,11 @@ if ( isset( $_GET['action'] ) ) {
wp_die( __( 'You do not have permission to access this page.' ) );
$title = __( 'Users' );
$parent_file = 'users.php';
require_once( '../admin-header.php' );
require_once( ABSPATH . 'wp-admin/admin-header.php' );
echo '<div class="wrap">';
confirm_delete_users( $_POST['allusers'] );
echo '</div>';
require_once( '../admin-footer.php' );
require_once( ABSPATH . 'wp-admin/admin-footer.php' );
exit();
break;
@ -245,7 +245,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __('<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
);
require_once( '../admin-header.php' );
require_once( ABSPATH . 'wp-admin/admin-header.php' );
if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( $_REQUEST['action'] ) ) {
?>
@ -296,4 +296,4 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
</form>
</div>
<?php require_once( '../admin-footer.php' ); ?>
<?php require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@ -28,7 +28,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
);
include('./admin-header.php');
include( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
@ -249,4 +249,4 @@ echo apply_filters('default_avatar_select', $avatar_list);
</form>
</div>
<?php include('./admin-footer.php'); ?>
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@ -80,7 +80,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
);
include('./admin-header.php');
include( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
@ -324,4 +324,4 @@ endfor;
</div>
<?php include('./admin-footer.php') ?>
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@ -35,7 +35,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
);
include('./admin-header.php');
include( ABSPATH . 'wp-admin/admin-header.php' );
?>
@ -134,4 +134,4 @@ if ( get_option('upload_url_path') || ( get_option('upload_path') != 'wp-content
</div>
<?php include('./admin-footer.php'); ?>
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@ -286,4 +286,4 @@ printf( __('If you like, you may enter custom structures for your category and t
</div>
<?php require('./admin-footer.php'); ?>
<?php require( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@ -72,7 +72,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
);
include( './admin-header.php' );
include( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
@ -167,4 +167,4 @@ else :
<?php submit_button(); ?>
</form>
</div>
<?php include( './admin-footer.php' ); ?>
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
@ -58,7 +58,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
);
include('./admin-header.php');
include( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
@ -192,4 +192,4 @@ if ( apply_filters( 'enable_update_services_configuration', true ) ) {
</form>
</div>
<?php include('./admin-footer.php') ?>
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

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

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( is_multisite() && ! is_network_admin() ) {
wp_redirect( network_admin_url( 'plugin-editor.php' ) );

View File

@ -12,7 +12,7 @@ if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-informat
/**
* WordPress Administration Bootstrap.
*/
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can('install_plugins') )
wp_die(__('You do not have sufficient permissions to install plugins on this site.'));

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can('activate_plugins') )
wp_die( __( 'You do not have sufficient permissions to manage plugins for this site.' ) );

View File

@ -7,7 +7,7 @@
*/
/** Load WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( !isset($_GET['post_type']) )
$post_type = 'post';
@ -62,5 +62,5 @@ if ( is_multisite() ) {
// Show post form.
$post = get_default_post_to_edit( $post_type, true );
$post_ID = $post->ID;
include('edit-form-advanced.php');
include('./admin-footer.php');
include( ABSPATH . 'wp-admin/edit-form-advanced.php' );
include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -9,7 +9,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
$parent_file = 'edit.php';
$submenu_file = 'edit.php';
@ -195,7 +195,7 @@ case 'edit':
enqueue_comment_hotkeys_js();
}
include('./edit-form-advanced.php');
include( ABSPATH . 'wp-admin/edit-form-advanced.php' );
break;
@ -309,4 +309,4 @@ default:
exit();
break;
} // end switch
include('./admin-footer.php');
include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -9,7 +9,7 @@
define('IFRAME_REQUEST' , true);
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));

View File

@ -15,4 +15,4 @@
define('IS_PROFILE_PAGE', true);
/** Load User Editing Page */
require_once('./user-edit.php');
require_once( dirname( __FILE__ ) . '/user-edit.php' );

View File

@ -16,7 +16,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
require ABSPATH . 'wp-admin/includes/revision.php';
@ -119,7 +119,7 @@ $revisions_sidebar .= '<p>' . __( '<a href="http://wordpress.org/support/" targe
get_current_screen()->set_help_sidebar( $revisions_sidebar );
require_once( './admin-header.php' );
require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>
@ -216,4 +216,4 @@ require_once( './admin-header.php' );
<?php
require_once( './admin-footer.php' );
require_once( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( is_multisite() && ! is_network_admin() ) {
wp_redirect( network_admin_url( 'theme-editor.php' ) );

View File

@ -10,7 +10,7 @@ if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'theme-informati
define( 'IFRAME_REQUEST', true );
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can('install_themes') )
wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) );

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( !current_user_can('switch_themes') && !current_user_can('edit_theme_options') )
wp_die( __( 'Cheatin&#8217; uh?' ) );
@ -91,7 +91,7 @@ get_current_screen()->set_help_sidebar(
wp_enqueue_script( 'theme' );
wp_enqueue_script( 'customize-loader' );
require_once('./admin-header.php');
require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap"><?php
@ -213,7 +213,7 @@ $customize_title = sprintf( __( 'Customize &#8220;%s&#8221;' ), $ct->display('Na
<?php
if ( ! current_user_can( 'switch_themes' ) ) {
echo '</div>';
require( './admin-footer.php' );
require( ABSPATH . 'wp-admin/admin-footer.php' );
exit;
}
?>
@ -308,4 +308,4 @@ if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_
?>
</div>
<?php require('./admin-footer.php'); ?>
<?php require( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
$title = __('Tools');
@ -29,7 +29,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
);
require_once('./admin-header.php');
require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
@ -68,4 +68,4 @@ do_action( 'tool_box' );
?>
</div>
<?php
include('./admin-footer.php');
include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
wp_enqueue_style( 'plugin-install' );
wp_enqueue_script( 'plugin-install' );

View File

@ -10,7 +10,7 @@ if ( ! defined( 'IFRAME_REQUEST' ) && isset( $_GET['action'] ) && in_array( $_GE
define( 'IFRAME_REQUEST', true );
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';

View File

@ -15,7 +15,7 @@
define( 'WP_INSTALLING', true );
/** Load WordPress Bootstrap */
require( '../wp-load.php' );
require( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
nocache_headers();

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( !current_user_can('upload_files') )
wp_die( __( 'You do not have permission to upload files.' ) );
@ -173,7 +173,7 @@ get_current_screen()->set_help_sidebar(
'<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
);
require_once('./admin-header.php');
require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
@ -247,4 +247,4 @@ if ( !empty($message) ) { ?>
</div>
<?php
include('./admin-footer.php');
include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
wp_reset_vars( array( 'action', 'user_id', 'wp_http_referer' ) );

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( is_multisite() ) {
if ( ! current_user_can( 'create_users' ) && ! current_user_can( 'promote_users' ) )
@ -201,7 +201,7 @@ if ( is_multisite() && current_user_can( 'promote_users' ) && ! wp_is_large_netw
wp_enqueue_script( 'user-suggest' );
}
require_once( 'admin-header.php' );
require_once( ABSPATH . 'wp-admin/admin-header.php' );
if ( isset($_GET['update']) ) {
$messages = array();
@ -418,4 +418,4 @@ if ( apply_filters( 'show_password_fields', true ) ) : ?>
<?php } // current_user_can('create_users') ?>
</div>
<?php
include('./admin-footer.php');
include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -8,6 +8,6 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
require( '../about.php' );
require( ABSPATH . 'wp-admin/about.php' );

View File

@ -8,6 +8,6 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
require( '../credits.php' );
require( ABSPATH . 'wp-admin/credits.php' );

View File

@ -8,6 +8,6 @@
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
require( '../freedoms.php' );
require( ABSPATH . 'wp-admin/freedoms.php' );

View File

@ -7,6 +7,6 @@
* @since 3.1.0
*/
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
require( '../index.php' );
require( ABSPATH . 'wp-admin/index.php' );

View File

@ -7,6 +7,6 @@
* @since 3.1.0
*/
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
require( '../profile.php' );
require( ABSPATH . 'wp-admin/profile.php' );

View File

@ -7,6 +7,6 @@
* @since 3.1.0
*/
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
require( '../user-edit.php' );
require( ABSPATH . 'wp-admin/user-edit.php' );

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'list_users' ) )
wp_die( __( 'Cheatin&#8217; uh?' ) );
@ -211,7 +211,7 @@ case 'delete':
add_action( 'admin_head', 'delete_users_add_js' );
include ('admin-header.php');
include( ABSPATH . 'wp-admin/admin-header.php' );
?>
<form action="" method="post" name="updateusers" id="updateusers">
<?php wp_nonce_field('delete-users') ?>
@ -316,7 +316,7 @@ case 'remove':
else
$userids = $_REQUEST['users'];
include ('admin-header.php');
include( ABSPATH . 'wp-admin/admin-header.php' );
?>
<form action="" method="post" name="updateusers" id="updateusers">
<?php wp_nonce_field('remove-users') ?>
@ -368,7 +368,7 @@ default:
exit;
}
include('./admin-header.php');
include( ABSPATH . 'wp-admin/admin-header.php' );
$messages = array();
if ( isset($_GET['update']) ) :
@ -455,4 +455,4 @@ break;
} // end of the $doaction switch
include('./admin-footer.php');
include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( dirname( __FILE__ ) . '/admin.php' );
/** WordPress Administration Widgets API */
require_once(ABSPATH . 'wp-admin/includes/widgets.php');
@ -222,7 +222,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( ABSPATH . 'wp-admin/admin-header.php' ); ?>
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php echo esc_html( $title ); ?></h2>
@ -289,7 +289,7 @@ if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) {
</div>
</div>
<?php
require_once( './admin-footer.php' );
require_once( ABSPATH . 'wp-admin/admin-footer.php' );
exit;
}
@ -302,7 +302,7 @@ $errors = array(
__('Error in displaying the widget settings form.')
);
require_once( './admin-header.php' ); ?>
require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
<div class="wrap">
<?php screen_icon(); ?>
@ -397,4 +397,4 @@ foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) {
<?php
do_action( 'sidebar_admin_page' );
require_once( './admin-footer.php' );
require_once( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -23,7 +23,7 @@ define('DOING_CRON', true);
if ( !defined('ABSPATH') ) {
/** Set up WordPress environment */
require_once('./wp-load.php');
require_once( dirname( __FILE__ ) . '/wp-load.php' );
}
// Uncached doing_cron transient fetch

View File

@ -1,7 +1,7 @@
<?php
if ( !class_exists('SimplePie') )
require_once (ABSPATH . WPINC . '/class-simplepie.php');
require_once( ABSPATH . WPINC . '/class-simplepie.php' );
class WP_Feed_Cache extends SimplePie_Cache {
/**

View File

@ -527,7 +527,7 @@ function feed_content_type( $type = '' ) {
* @return WP_Error|SimplePie WP_Error object on failure or SimplePie object on success
*/
function fetch_feed( $url ) {
require_once ( ABSPATH . WPINC . '/class-feed.php' );
require_once( ABSPATH . WPINC . '/class-feed.php' );
$feed = new SimplePie();

Some files were not shown because too many files have changed in this diff Show More