Skip ALTERNATE_WP_CRON redirect when performing XML-RPC requests.
props markoheijnen. fixes #27447. git-svn-id: https://develop.svn.wordpress.org/trunk@29732 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5a89372970
commit
2becf84579
|
@ -246,8 +246,9 @@ function spawn_cron( $gmt_time = 0 ) {
|
|||
return;
|
||||
|
||||
if ( defined( 'ALTERNATE_WP_CRON' ) && ALTERNATE_WP_CRON ) {
|
||||
if ( !empty($_POST) || defined('DOING_AJAX') )
|
||||
if ( ! empty( $_POST ) || defined( 'DOING_AJAX' ) || defined( 'XMLRPC_REQUEST' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$doing_wp_cron = sprintf( '%.22F', $gmt_time );
|
||||
set_transient( 'doing_cron', $doing_wp_cron );
|
||||
|
|
Loading…
Reference in New Issue