Fix admin.php?import=x pages, which can re-include itself in certain environments. fixes #13184 for trunk.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-02 18:39:31 +00:00
parent 54763a0e76
commit 1eb297c982

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