[wp-trac] [WordPress Trac] #35407: set_url_scheme() called inconsistently on URLs passed to `preview_post_link` filter

WordPress Trac noreply at wordpress.org
Thu Mar 10 04:41:37 UTC 2016


#35407: set_url_scheme() called inconsistently on URLs passed to
`preview_post_link` filter
-------------------------------+-------------------------
 Reporter:  danielbachhuber    |       Owner:  jeremyfelt
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  4.5
Component:  Posts, Post Types  |     Version:  4.4
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch https    |     Focuses:
-------------------------------+-------------------------
Changes (by jeremyfelt):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36926"]:
 {{{
 #!CommitTicketReference repository="" revision="36926"
 Posts: Call `set_url_scheme()` consistently on URLs passed through
 `preview_post_link`

 After [34170], some preview URLs that passed through `set_url_scheme()` no
 longer do so. We can restore that behavior by applying `set_url_scheme()`
 whenever `get_preview_post_link()` provides the URL.

 Props danielbachhuber.
 Fixes #35407.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35407#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list