[wp-trac] [WordPress Trac] #15928: wp_get_attachment_url does not check for HTTPS

WordPress Trac noreply at wordpress.org
Tue Feb 24 23:21:43 UTC 2015


#15928: wp_get_attachment_url does not check for HTTPS
-----------------------------------+-----------------------------
 Reporter:  atetlaw                |       Owner:  boonebgorges
     Type:  defect (bug)           |      Status:  accepted
 Priority:  normal                 |   Milestone:  Future Release
Component:  Permalinks             |     Version:  3.0.3
 Severity:  major                  |  Resolution:
 Keywords:  needs-patch 4.2-early  |     Focuses:
-----------------------------------+-----------------------------
Changes (by larryhans):

 * severity:  normal => major


Comment:

 When will this be included in the stable release?

 We fixed it on our website using following code


 {{{

 function sahifa_fix_ssl_url( $url ) {

     if ( is_ssl() )
         $url = str_ireplace( 'http://', 'https://', $url );
     return $url;

 }
 add_filter( 'wp_get_attachment_url', 'sahifa_fix_ssl_url' );

 }}}

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


More information about the wp-trac mailing list