From 1af5a438822f66770e686636396da9153aa97836 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 20 Dec 2011 22:10:47 +0000 Subject: [PATCH] Hide the toolbar on all subsequent links in the theme preview. props linuxologos, fixes #19610. git-svn-id: https://develop.svn.wordpress.org/trunk@19617 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 87a3a2bf20..3f55ece980 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1231,7 +1231,7 @@ function preview_theme_ob_filter_callback( $matches ) { ) return $matches[1] . "#$matches[2] onclick=$matches[2]return false;" . $matches[4]; - $link = add_query_arg( array('preview' => 1, 'template' => $_GET['template'], 'stylesheet' => @$_GET['stylesheet'] ), $matches[3] ); + $link = add_query_arg( array( 'preview' => 1, 'template' => $_GET['template'], 'stylesheet' => @$_GET['stylesheet'], 'preview_iframe' => 1 ), $matches[3] ); if ( 0 === strpos($link, 'preview=1') ) $link = "?$link"; return $matches[1] . esc_attr( $link ) . $matches[4];