[wp-trac] [WordPress Trac] #32112: wp_get_attachment_url returns https when it should not

WordPress Trac noreply at wordpress.org
Wed May 6 16:20:57 UTC 2015


#32112: wp_get_attachment_url returns https when it should not
--------------------------+---------------------------
 Reporter:  zabatonni     |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.2.2
Component:  Media         |     Version:  4.2
 Severity:  normal        |  Resolution:  fixed
 Keywords:  fixed-major   |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

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


Comment:

 In [changeset:"32384"]:
 {{{
 #!CommitTicketReference repository="" revision="32384"
 Attachment URLs should only be forced to SSL on the front end.

 Detecting SSL status on the Dashboard introduces problems when writing
 content
 that is saved to the database and then displayed on the front end, where
 SSL
 may be optional (or impossible, due to self-signed certificates). The new
 approach parallels the logic in `get_home_url()` for forcing HTTPS.

 See [31614] #15928 for background.

 Fixes #32112 for 4.2 branch.
 }}}

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


More information about the wp-trac mailing list