[wp-trac] [WordPress Trac] #43127: Error with Mixed Content when using https

WordPress Trac noreply at wordpress.org
Wed Sep 5 08:50:28 UTC 2018


#43127: Error with Mixed Content when using https
-----------------------------+------------------------------
 Reporter:  jeremyschiff     |       Owner:  (none)
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |     Focuses:
-----------------------------+------------------------------
Changes (by jeremyschiff):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 This seems to fix it without the code changes:

 /* SSL Settings */
 define('FORCE_SSL_ADMIN', true);

 /* Turn HTTPS 'on' if HTTP_X_FORWARDED_PROTO matches 'https' */
 if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) {
     $_SERVER['HTTPS'] = 'on';
 }

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


More information about the wp-trac mailing list