Make WordPress Core


Ignore:
Timestamp:
06/30/2014 05:18:23 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Replace a redundant ! is_preview() check with a more appropriate one.

fixes #20496.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/canonical.php

    r28878 r28928  
    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    }
Note: See TracChangeset for help on using the changeset viewer.