[wp-trac] [WordPress Trac] #34945: HTTPS website with HTTP images

WordPress Trac noreply at wordpress.org
Tue Dec 22 11:06:14 UTC 2015


#34945: HTTPS website with HTTP images
--------------------------+--------------------------
 Reporter:  Angristan     |       Owner:  johnbillion
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Media         |     Version:  4.4
 Severity:  normal        |  Resolution:  invalid
 Keywords:  https         |     Focuses:
--------------------------+--------------------------
Changes (by johnbillion):

 * keywords:  needs-testing https => https
 * status:  accepted => closed
 * resolution:   => invalid
 * milestone:  4.4.1 =>


Comment:

 Try as I might, I'm unable to reproduce this problem. Given:

  * A site with the `home` and `siteurl` options set to URLs with `http`
 schemes
  * `WP_HOME` and `WP_SITEURL` constants defined with `https` schemes
  * Accessing the admin over `https`
  * Inserting media into a post results in a URL with an `https` scheme
 being inserted, as expected

 The only thing that can break this is if the `WP_CONTENT_URL` constant is
 defined and set to a URL with an `http` scheme.

 The `WP_HOME` and `WP_SITEURL` constants override the `home` and `siteurl`
 options via filters on the `option_home` and `option_siteurl` values
 respectively. This behaviour works as expected.

 Unless @Angristan can pinpoint another issue on his site which is the
 cause of the problem, I'm closing this as invalid.

 Related: #13941, #34109, #35120.

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


More information about the wp-trac mailing list