[wp-trac] [WordPress Trac] #36770: Enabling FORCE_SSL_ADMIN and FULL SITE breaks wp-cron.php
WordPress Trac
noreply at wordpress.org
Fri May 6 07:49:15 UTC 2016
#36770: Enabling FORCE_SSL_ADMIN and FULL SITE breaks wp-cron.php
--------------------------+------------------------------
Reporter: idarek | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cron API | Version: 4.5.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by idarek):
Also, as I don't think change in CloudFlare will change anything I have
added this to my functions.php
{{{
add_filter( 'https_local_ssl_verify', '__return_false' );
}}}
and also got this already in wp-config.php
{{{
/* Backend ssl with redirect loop fix */
define('FORCE_SSL_ADMIN', true);
// in some setups HTTP_X_FORWARDED_PROTO might contain
// a comma-separated list e.g. http,https
// so check for https existence
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
}}}
Will report later on, are Cron is working.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36770#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list