mirror of
git://develop.git.wordpress.org/
synced 2025-01-16 20:38:35 +01:00
Fix admin.php?import=x pages, which can re-include itself in certain environments. fixes #13184 for 2.8.
git-svn-id: https://develop.svn.wordpress.org/branches/2.8@14336 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
924787332f
commit
b1fd11075f
@ -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 ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user