[wp-trac] [WordPress Trac] #24345: preview link for published posts does not apply the preview_post_link filter

WordPress Trac noreply at wordpress.org
Wed May 15 15:59:25 UTC 2013


#24345: preview link for published posts does not apply the preview_post_link
filter
----------------------------+-------------------------------------
 Reporter:  joeybvi         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.5.1
 Severity:  normal          |   Keywords:  has-patch needs-testing
----------------------------+-------------------------------------
 The "Preview Changes" button in the admin section (as created in wp-
 admin/includes/meta-boxes.php lines 40-49) does not apply the
 preview_post_link filter if the post has already been published (line 41).

 The patch from #19378 ensures that the javascript that is called to open
 the preview link in a new tab/window DOES apply the preview_post_link
 filter, so if you click the link normally it will use the correct URL.
 However, hovering over the "Preview Changes" button shows the incorrect
 URL, and right-clicking the button and opening in a new tab/window opens
 the incorrect URL as well.

 I have attached a patch that applies the preview_post_link filter to the
 link created for published posts.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24345>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list