Clicking On View Post In Draft Opens New Tab
-
Since 4.0, when you save a post as a Draft the View Post link opens the saved post in a new tab. (target =”_blank”)
Is there a way to revert back to the previous behaviour (which was to open the Preview version in the -same- tab?
What’s weird is that once the post is published, the saved version opens in the same tab (as in previous WP versions.)
I found that by editing line 93 from edit-form-advanced.php:
10 => sprintf( __('Post draft updated. Preview post'), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ),
to
10 => sprintf( __('Post draft updated. Preview post'), esc_url( add_query_arg( 'preview', 'false', $permalink ) ) ),
That does what I want (open the Preview in the same tab). HOWEVER, that’s hacking the core. Is there a way to get back the old behaviour WITHOUT hacking this file?
It’s seriously annoying and frankly I don’t understand why this was changed.
TIA,
- The topic ‘Clicking On View Post In Draft Opens New Tab’ is closed to new replies.