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
This commit is contained in:
Andrew Nacin 2010-05-02 18:39:31 +00:00
parent 3b689ba8c8
commit b459f516b9
1 changed files with 2 additions and 1 deletions

View File

@ -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 ) );