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); define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */ /** 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. */ /** Sets up the WordPress Environment. */
require( dirname(__FILE__) . '/wp-load.php' ); require( dirname(__FILE__) . '/wp-load.php' );
require( './wp-blog-header.php' ); require( dirname( __FILE__ ) . '/wp-blog-header.php' );
if ( !is_multisite() ) { if ( !is_multisite() ) {
wp_redirect( site_url( '/wp-login.php?action=register' ) ); wp_redirect( site_url( '/wp-login.php?action=register' ) );
@ -126,4 +126,4 @@ get_header();
var key_input = document.getElementById('key'); var key_input = document.getElementById('key');
key_input && key_input.focus(); key_input && key_input.focus();
</script> </script>
<?php get_footer(); ?> <?php get_footer(); ?>

View File

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

View File

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

View File

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

View File

@ -11,7 +11,7 @@ define('WP_ADMIN', true);
if ( defined('ABSPATH') ) if ( defined('ABSPATH') )
require_once(ABSPATH . 'wp-load.php'); require_once(ABSPATH . 'wp-load.php');
else else
require_once('../wp-load.php'); require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
if ( ! ( isset( $_REQUEST['action'] ) && 'upload-attachment' == $_REQUEST['action'] ) ) { 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 // 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); unset($current_user);
} }
require_once('./admin.php'); require_once( ABSPATH . 'wp-admin/admin.php' );
if ( !current_user_can('upload_files') ) if ( !current_user_can('upload_files') )
wp_die(__('You do not have permission to upload files.')); wp_die(__('You do not have permission to upload files.'));

View File

@ -7,7 +7,7 @@
*/ */
/** Load WordPress Bootstrap */ /** Load WordPress Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
$parent_file = 'edit-comments.php'; $parent_file = 'edit-comments.php';
$submenu_file = 'edit-comments.php'; $submenu_file = 'edit-comments.php';
@ -36,7 +36,7 @@ if ( isset( $_GET['dt'] ) ) {
*/ */
function comment_footer_die( $msg ) { function comment_footer_die( $msg ) {
echo "<div class='wrap'><p>$msg</p></div>"; echo "<div class='wrap'><p>$msg</p></div>";
include('./admin-footer.php'); include( ABSPATH . 'wp-admin/admin-footer.php' );
die; die;
} }
@ -60,7 +60,7 @@ case 'editcomment' :
); );
wp_enqueue_script('comment'); wp_enqueue_script('comment');
require_once('./admin-header.php'); require_once( ABSPATH . 'wp-admin/admin-header.php' );
$comment_id = absint( $_GET['c'] ); $comment_id = absint( $_GET['c'] );
@ -75,7 +75,7 @@ case 'editcomment' :
$comment = get_comment_to_edit( $comment_id ); $comment = get_comment_to_edit( $comment_id );
include('./edit-form-comment.php'); include( ABSPATH . 'wp-admin/edit-form-comment.php' );
break; break;
@ -104,7 +104,7 @@ case 'spam' :
die(); die();
} }
require_once('./admin-header.php'); require_once( ABSPATH . 'wp-admin/admin-header.php' );
$formaction = $action . 'comment'; $formaction = $action . 'comment';
$nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_'; $nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
@ -300,4 +300,4 @@ default:
} // end switch } // end switch
include('./admin-footer.php'); include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

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

View File

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

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( !current_user_can('edit_posts') ) if ( !current_user_can('edit_posts') )
wp_die(__('Cheatin&#8217; uh?')); 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>' '<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"> <div class="wrap">
@ -252,4 +252,4 @@ if ( isset($_REQUEST['approved']) || isset($_REQUEST['deleted']) || isset($_REQU
<?php <?php
wp_comment_reply('-1', true, 'detail'); wp_comment_reply('-1', true, 'detail');
wp_comment_trashnotice(); 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); $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). // 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; $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"> <div class="wrap">

View File

@ -22,7 +22,7 @@ if ( ! empty($link_id) ) {
$nonce_action = 'add-bookmark'; $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('linksubmitdiv', __('Save'), 'link_submit_meta_box', null, 'side', 'core');
add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', null, 'normal', '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>' '<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"> <div class="wrap">

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@
*/ */
/** Load WordPress Bootstrap */ /** Load WordPress Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
/** Load WordPress dashboard API */ /** Load WordPress dashboard API */
require_once(ABSPATH . 'wp-admin/includes/dashboard.php'); 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' ); require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
/** Load WordPress Administration Upgrade API */ /** Load WordPress Administration Upgrade API */
require_once( dirname( __FILE__ ) . '/includes/upgrade.php' ); require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
/** Load wpdb */ /** 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; $step = isset( $_GET['step'] ) ? (int) $_GET['step'] : 0;

View File

@ -7,7 +7,7 @@
*/ */
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can('manage_links') ) if ( ! current_user_can('manage_links') )
wp_die(__('You do not have sufficient permissions to add links to this site.')); 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' ); wp_enqueue_script( 'jquery-touch-punch' );
$link = get_default_link_to_edit(); $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 */ /** Load WordPress Administration Bootstrap */
require_once ('admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_links' ) ) if ( ! current_user_can( 'manage_links' ) )
wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) ); 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>' '<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') ) if ( ! current_user_can('manage_links') )
wp_die(__("You do not have sufficient permissions to edit the links for this site.")); wp_die(__("You do not have sufficient permissions to edit the links for this site."));
@ -97,4 +97,4 @@ if ( isset($_REQUEST['deleted']) ) {
</div> </div>
<?php <?php
include('./admin-footer.php'); include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

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

View File

@ -7,7 +7,7 @@
*/ */
define('WP_REPAIRING', true); 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' ); header( 'Content-Type: text/html; charset=utf-8' );
?> ?>

View File

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

View File

@ -7,7 +7,7 @@
*/ */
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
$parent_file = 'upload.php'; $parent_file = 'upload.php';
$submenu_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>' '<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'; $parent_file = 'upload.php';
$message = ''; $message = '';
@ -136,7 +136,7 @@ if ( current_user_can( 'upload_files' ) ) { ?>
<?php <?php
require( './admin-footer.php' ); require( ABSPATH . 'wp-admin/admin-footer.php' );
exit; exit;

View File

@ -7,6 +7,6 @@
* @package WordPress * @package WordPress
* @subpackage Administration * @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') ); wp_redirect( admin_url('edit-comments.php?comment_status=moderated') );
exit; exit;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@
* @since 3.0.0 * @since 3.0.0
*/ */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( !is_multisite() ) if ( !is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); 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>' '<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 ) { ?> if ( $updated ) { ?>
<div id="message" class="updated"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div> <div id="message" class="updated"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div>
@ -117,4 +117,4 @@ else :
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php <?php
include( './admin-footer.php' ); include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -10,7 +10,7 @@
*/ */
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
// Load all the nav menu interface functions // Load all the nav menu interface functions
require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' ); require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' );
@ -530,7 +530,7 @@ get_current_screen()->set_help_sidebar(
); );
// Get the admin header // Get the admin header
require_once( './admin-header.php' ); require_once( ABSPATH . 'wp-admin/admin-header.php' );
?> ?>
<div class="wrap"> <div class="wrap">
<?php screen_icon(); ?> <?php screen_icon(); ?>
@ -762,4 +762,4 @@ require_once( './admin-header.php' );
</div><!-- /#nav-menus-frame --> </div><!-- /#nav-menus-frame -->
<?php endif; ?> <?php endif; ?>
</div><!-- /.wrap--> </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 ); define( 'WP_INSTALLING_NETWORK', true );
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_super_admin() ) if ( ! is_super_admin() )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );

View File

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

View File

@ -8,9 +8,9 @@
*/ */
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); 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 */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
/** Load WordPress dashboard API */ /** Load WordPress dashboard API */
require_once( ABSPATH . 'wp-admin/includes/dashboard.php' ); require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
@ -62,7 +62,7 @@ add_thickbox();
add_screen_option('layout_columns', array('max' => 4, 'default' => 2) ); 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 --> </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 */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); 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 ); define( 'IFRAME_REQUEST', true );
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); 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 */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); 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 */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); 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 */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); wp_die( __( 'Multisite support is not enabled.' ) );
@ -71,7 +71,7 @@ if ( $_POST ) {
exit(); exit();
} }
include( '../admin-header.php' ); include( ABSPATH . 'wp-admin/admin-header.php' );
if ( isset( $_GET['updated'] ) ) { if ( isset( $_GET['updated'] ) ) {
?><div id="message" class="updated"><p><?php _e( 'Options saved.' ) ?></p></div><?php ?><div id="message" class="updated"><p><?php _e( 'Options saved.' ) ?></p></div><?php
@ -300,4 +300,4 @@ if ( isset( $_GET['updated'] ) ) {
</form> </form>
</div> </div>
<?php include( '../admin-footer.php' ); ?> <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -8,9 +8,9 @@
*/ */
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); 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 ); define( 'IFRAME_REQUEST', true );
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); 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 */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); wp_die( __( 'Multisite support is not enabled.' ) );

View File

@ -8,9 +8,9 @@
*/ */
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); 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 ); define( 'IFRAME_REQUEST', true );
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); 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 */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); 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>' '<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' ) ) if ( ! current_user_can( 'manage_network' ) )
wp_die( __( 'You do not have permission to access this page.' ) ); wp_die( __( 'You do not have permission to access this page.' ) );
@ -99,4 +99,4 @@ switch ( $action ) {
?> ?>
</div> </div>
<?php include('../admin-footer.php'); ?> <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

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

View File

@ -8,7 +8,7 @@
*/ */
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); 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 $_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle with arrays
$title = __( 'Users' ); $title = __( 'Users' );
$parent_file = 'users.php'; $parent_file = 'users.php';
require_once( '../admin-header.php' ); require_once( ABSPATH . 'wp-admin/admin-header.php' );
echo '<div class="wrap">'; echo '<div class="wrap">';
confirm_delete_users( $_POST['allusers'] ); confirm_delete_users( $_POST['allusers'] );
echo '</div>'; echo '</div>';
require_once( '../admin-footer.php' ); require_once( ABSPATH . 'wp-admin/admin-footer.php' );
} else { } else {
wp_redirect( network_admin_url( 'users.php' ) ); 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.' ) ); wp_die( __( 'You do not have permission to access this page.' ) );
$title = __( 'Users' ); $title = __( 'Users' );
$parent_file = 'users.php'; $parent_file = 'users.php';
require_once( '../admin-header.php' ); require_once( ABSPATH . 'wp-admin/admin-header.php' );
echo '<div class="wrap">'; echo '<div class="wrap">';
confirm_delete_users( $_POST['allusers'] ); confirm_delete_users( $_POST['allusers'] );
echo '</div>'; echo '</div>';
require_once( '../admin-footer.php' ); require_once( ABSPATH . 'wp-admin/admin-footer.php' );
exit(); exit();
break; 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>' '<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'] ) ) { if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( $_REQUEST['action'] ) ) {
?> ?>
@ -296,4 +296,4 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
</form> </form>
</div> </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 */ /** WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_options' ) ) if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 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>' '<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"> <div class="wrap">
@ -249,4 +249,4 @@ echo apply_filters('default_avatar_select', $avatar_list);
</form> </form>
</div> </div>
<?php include('./admin-footer.php'); ?> <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_options' ) ) if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 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>' '<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"> <div class="wrap">
@ -324,4 +324,4 @@ endfor;
</div> </div>
<?php include('./admin-footer.php') ?> <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_options' ) ) if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 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>' '<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> </div>
<?php include('./admin-footer.php'); ?> <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_options' ) ) if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 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> </div>
<?php require('./admin-footer.php'); ?> <?php require( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_options' ) ) if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 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>' '<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"> <div class="wrap">
@ -167,4 +167,4 @@ else :
<?php submit_button(); ?> <?php submit_button(); ?>
</form> </form>
</div> </div>
<?php include( './admin-footer.php' ); ?> <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'manage_options' ) ) if ( ! current_user_can( 'manage_options' ) )
wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); 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>' '<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"> <div class="wrap">
@ -192,4 +192,4 @@ if ( apply_filters( 'enable_update_services_configuration', true ) ) {
</form> </form>
</div> </div>
<?php include('./admin-footer.php') ?> <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>

View File

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

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( is_multisite() && ! is_network_admin() ) { if ( is_multisite() && ! is_network_admin() ) {
wp_redirect( network_admin_url( 'plugin-editor.php' ) ); 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. * WordPress Administration Bootstrap.
*/ */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can('install_plugins') ) if ( ! current_user_can('install_plugins') )
wp_die(__('You do not have sufficient permissions to install plugins on this site.')); wp_die(__('You do not have sufficient permissions to install plugins on this site.'));

View File

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

View File

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

View File

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

View File

@ -9,7 +9,7 @@
define('IFRAME_REQUEST' , true); define('IFRAME_REQUEST' , true);
/** WordPress Administration Bootstrap */ /** 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')); header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));

View File

@ -15,4 +15,4 @@
define('IS_PROFILE_PAGE', true); define('IS_PROFILE_PAGE', true);
/** Load User Editing Page */ /** 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 */ /** WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
require ABSPATH . 'wp-admin/includes/revision.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 ); 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 <?php
require_once( './admin-footer.php' ); require_once( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( is_multisite() && ! is_network_admin() ) { if ( is_multisite() && ! is_network_admin() ) {
wp_redirect( network_admin_url( 'theme-editor.php' ) ); 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 ); define( 'IFRAME_REQUEST', true );
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can('install_themes') ) if ( ! current_user_can('install_themes') )
wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) ); wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) );

View File

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

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
$title = __('Tools'); $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>' '<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"> <div class="wrap">
@ -68,4 +68,4 @@ do_action( 'tool_box' );
?> ?>
</div> </div>
<?php <?php
include('./admin-footer.php'); include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once('./admin.php'); require_once( dirname( __FILE__ ) . '/admin.php' );
wp_enqueue_style( 'plugin-install' ); wp_enqueue_style( 'plugin-install' );
wp_enqueue_script( 'plugin-install' ); wp_enqueue_script( 'plugin-install' );
@ -552,4 +552,4 @@ if ( 'upgrade-core' == $action ) {
} else { } else {
do_action('update-core-custom_' . $action); do_action('update-core-custom_' . $action);
} }

View File

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

View File

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

View File

@ -7,7 +7,7 @@
*/ */
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( !current_user_can('upload_files') ) if ( !current_user_can('upload_files') )
wp_die( __( 'You do not have permission to 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>' '<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"> <div class="wrap">
@ -247,4 +247,4 @@ if ( !empty($message) ) { ?>
</div> </div>
<?php <?php
include('./admin-footer.php'); include( ABSPATH . 'wp-admin/admin-footer.php' );

View File

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

View File

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

View File

@ -8,6 +8,6 @@
*/ */
/** Load WordPress Administration Bootstrap */ /** 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 */ /** 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 */ /** 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 * @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 * @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 * @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 */ /** WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'list_users' ) ) if ( ! current_user_can( 'list_users' ) )
wp_die( __( 'Cheatin&#8217; uh?' ) ); wp_die( __( 'Cheatin&#8217; uh?' ) );
@ -211,7 +211,7 @@ case 'delete':
add_action( 'admin_head', 'delete_users_add_js' ); 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"> <form action="" method="post" name="updateusers" id="updateusers">
<?php wp_nonce_field('delete-users') ?> <?php wp_nonce_field('delete-users') ?>
@ -316,7 +316,7 @@ case 'remove':
else else
$userids = $_REQUEST['users']; $userids = $_REQUEST['users'];
include ('admin-header.php'); include( ABSPATH . 'wp-admin/admin-header.php' );
?> ?>
<form action="" method="post" name="updateusers" id="updateusers"> <form action="" method="post" name="updateusers" id="updateusers">
<?php wp_nonce_field('remove-users') ?> <?php wp_nonce_field('remove-users') ?>
@ -368,7 +368,7 @@ default:
exit; exit;
} }
include('./admin-header.php'); include( ABSPATH . 'wp-admin/admin-header.php' );
$messages = array(); $messages = array();
if ( isset($_GET['update']) ) : if ( isset($_GET['update']) ) :
@ -455,4 +455,4 @@ break;
} // end of the $doaction switch } // 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 */ /** WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( dirname( __FILE__ ) . '/admin.php' );
/** WordPress Administration Widgets API */ /** WordPress Administration Widgets API */
require_once(ABSPATH . 'wp-admin/includes/widgets.php'); 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"'; $width = ' style="width:' . max($control['width'], 350) . 'px"';
$key = isset($_GET['key']) ? (int) $_GET['key'] : 0; $key = isset($_GET['key']) ? (int) $_GET['key'] : 0;
require_once( './admin-header.php' ); ?> require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
<div class="wrap"> <div class="wrap">
<?php screen_icon(); ?> <?php screen_icon(); ?>
<h2><?php echo esc_html( $title ); ?></h2> <h2><?php echo esc_html( $title ); ?></h2>
@ -289,7 +289,7 @@ if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) {
</div> </div>
</div> </div>
<?php <?php
require_once( './admin-footer.php' ); require_once( ABSPATH . 'wp-admin/admin-footer.php' );
exit; exit;
} }
@ -302,7 +302,7 @@ $errors = array(
__('Error in displaying the widget settings form.') __('Error in displaying the widget settings form.')
); );
require_once( './admin-header.php' ); ?> require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
<div class="wrap"> <div class="wrap">
<?php screen_icon(); ?> <?php screen_icon(); ?>
@ -397,4 +397,4 @@ foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) {
<?php <?php
do_action( 'sidebar_admin_page' ); 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') ) { if ( !defined('ABSPATH') ) {
/** Set up WordPress environment */ /** Set up WordPress environment */
require_once('./wp-load.php'); require_once( dirname( __FILE__ ) . '/wp-load.php' );
} }
// Uncached doing_cron transient fetch // Uncached doing_cron transient fetch

View File

@ -1,7 +1,7 @@
<?php <?php
if ( !class_exists('SimplePie') ) 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 { 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 * @return WP_Error|SimplePie WP_Error object on failure or SimplePie object on success
*/ */
function fetch_feed( $url ) { function fetch_feed( $url ) {
require_once ( ABSPATH . WPINC . '/class-feed.php' ); require_once( ABSPATH . WPINC . '/class-feed.php' );
$feed = new SimplePie(); $feed = new SimplePie();

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