From 3f890507d46340d9c7e9ee379b2bae895803a4d0 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@19617 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 87a3a2bf2..3f55ece98 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];