[wp-trac] [WordPress Trac] #34945: HTTPS website with HTTP images
WordPress Trac
noreply at wordpress.org
Wed Dec 9 21:55:54 UTC 2015
#34945: HTTPS website with HTTP images
---------------------------+-----------------------------
Reporter: Angristan | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future Release
Component: Media | Version: 4.4
Severity: normal | Resolution:
Keywords: needs-testing | Focuses:
---------------------------+-----------------------------
Comment (by jb510):
@johnbillion playing devil's advocate a little.
If people want to update/change the url, they should use update_option(),
which perhaps the Codex should make clear.
Currently _if_ someone is using something like:
{{{#!php
<?php
define('WP_SITEURL', 'http://'.$_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://'.$_SERVER['HTTP_HOST']);
}}}
On their local/staging install and go to insert an image, it picks up the
production url from the DB. Changing that behavior might have follow on
consequences. Maybe trivial, just that it worth noting.
Please don't take this as opposing changing it. I do think it's
unexpected behavior from a user's POV, even if it's has always has been
that way.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34945#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list