Make WordPress Core


Ignore:
Timestamp:
02/02/2014 11:49:05 PM (12 years ago)
Author:
azaozz
Message:

Open previews of different posts in different windows/tabs. Prevent confusion when using a former preview window again if the user navigated to edit another post. If the first post is still being edited, clicking Preview there will use the current window to show the preview. Props ippetkov, fixes #20233.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r27036 r27079  
    5454}
    5555?>
    56 <a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview"><?php echo $preview_button; ?></a>
     56<a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview-<?php echo (int) $post->ID; ?>" id="post-preview"><?php echo $preview_button; ?></a>
    5757<input type="hidden" name="wp-preview" id="wp-preview" value="" />
    5858</div>
Note: See TracChangeset for help on using the changeset viewer.