Make WordPress Core

Ticket #20496: 20496.2.diff

File 20496.2.diff, 536 bytes (added by SergeyBiryukov, 10 years ago)
  • src/wp-includes/canonical.php

     
    7878        if ( !isset($redirect['query']) )
    7979                $redirect['query'] = '';
    8080
    81         // If its not a preview then remove it from URL
    82         if ( ! is_preview() ) {
     81        // It's not a preview, so remove it from URL
     82        if ( get_query_var( 'preview' ) ) {
    8383                $redirect['query'] = remove_query_arg( 'preview', $redirect['query'] );
    8484        }
    8585