If we are previewing don't show the admin bar. See #15856
git-svn-id: http://svn.automattic.com/wordpress/trunk@17020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1ae98a24ab
commit
c1b7a3ef59
|
@ -1147,6 +1147,10 @@ function preview_theme() {
|
||||||
if ( !current_user_can( 'switch_themes' ) )
|
if ( !current_user_can( 'switch_themes' ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Admin Thickbox requests
|
||||||
|
if ( isset( $_GET['preview_iframe'] ) )
|
||||||
|
show_admin_bar( false );
|
||||||
|
|
||||||
$_GET['template'] = preg_replace('|[^a-z0-9_./-]|i', '', $_GET['template']);
|
$_GET['template'] = preg_replace('|[^a-z0-9_./-]|i', '', $_GET['template']);
|
||||||
|
|
||||||
if ( validate_file($_GET['template']) )
|
if ( validate_file($_GET['template']) )
|
||||||
|
|
Loading…
Reference in New Issue