WordPress.org

Make WordPress Core

Ticket #19610: 19610.patch

File 19610.patch, 714 bytes (added by linuxologos, 3 years ago)
  • wp-includes/theme.php

     
    12311231        ) 
    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"; 
    12371237        return $matches[1] . esc_attr( $link ) . $matches[4];