WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/11/2014 02:01:04 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Skip ALTERNATE_WP_CRON redirect when performing XML-RPC requests.

props markoheijnen.
fixes #27447.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/cron.php

    r29349 r29732  
    246246        return;
    247247
    248     if ( defined('ALTERNATE_WP_CRON') && ALTERNATE_WP_CRON ) {
    249         if ( !empty($_POST) || defined('DOING_AJAX') )
     248    if ( defined( 'ALTERNATE_WP_CRON' ) && ALTERNATE_WP_CRON ) {
     249        if ( ! empty( $_POST ) || defined( 'DOING_AJAX' ) ||  defined( 'XMLRPC_REQUEST' ) ) {
    250250            return;
     251        }
    251252
    252253        $doing_wp_cron = sprintf( '%.22F', $gmt_time );
Note: See TracChangeset for help on using the changeset viewer.