From b459f516b9c7fe78fac07aecc03557b685a354b0 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 2 May 2010 18:39:31 +0000 Subject: [PATCH] Fix admin.php?import=x pages, which can re-include itself in certain environments. fixes #13184 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@14334 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-header.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index fb02061ac0..709418ba25 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -7,7 +7,8 @@ */ @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); -if (!isset($_GET["page"])) require_once('./admin.php'); +if ( ! defined( 'WP_ADMIN' ) ) + require_once( './admin.php' ); get_admin_page_title(); $title = esc_html( strip_tags( $title ) );