WordPress.org

Make WordPress Core

Changeset 19617


Ignore:
Timestamp:
12/20/2011 10:10:47 PM (6 years ago)
Author:
nacin
Message:

Hide the toolbar on all subsequent links in the theme preview. props linuxologos, fixes #19610.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r19593 r19617  
    12321232        return $matches[1] . "#$matches[2] onclick=$matches[2]return false;" . $matches[4];
    12331233
    1234     $link = add_query_arg( array('preview' => 1, 'template' => $_GET['template'], 'stylesheet' => @$_GET['stylesheet'] ), $matches[3] );
     1234    $link = add_query_arg( array( 'preview' => 1, 'template' => $_GET['template'], 'stylesheet' => @$_GET['stylesheet'], 'preview_iframe' => 1 ), $matches[3] );
    12351235    if ( 0 === strpos($link, 'preview=1') )
    12361236        $link = "?$link";
Note: See TracChangeset for help on using the changeset viewer.