[wp-trac] [WordPress Trac] #34144: `url_to_postid` doesn't recognize URLs with wrong scheme

WordPress Trac noreply at wordpress.org
Wed Oct 7 01:07:00 UTC 2015


#34144: `url_to_postid` doesn't recognize URLs with wrong scheme
--------------------------------------+-----------------------------
 Reporter:  swissspidy                |       Owner:  wonderboymusic
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.4
Component:  Rewrite Rules             |     Version:  1.0
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34890"]:
 {{{
 #!CommitTicketReference repository="" revision="34890"
 Rewrite/Permalinks/Canonical: in `url_to_postid()`, call
 `set_url_scheme()` on the URL to combat mixed content issues and find
 posts cross-scheme.

 Adds unit tests.

 Props swissspidy.
 Fixes #34144.
 }}}

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


More information about the wp-trac mailing list