Fix admin.php?import=x pages, which can re-include itself in certain environments. fixes #13184 for 2.8.
git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@14336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
077074c6cd
commit
efddc4c955
|
@ -7,7 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@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 (!isset($_GET["page"])) require_once('admin.php');
|
if ( ! defined( 'WP_ADMIN' ) )
|
||||||
|
require_once( 'admin.php' );
|
||||||
|
|
||||||
get_admin_page_title();
|
get_admin_page_title();
|
||||||
$title = esc_html( strip_tags( $title ) );
|
$title = esc_html( strip_tags( $title ) );
|
||||||
|
|
Loading…
Reference in New Issue