[wp-trac] [WordPress Trac] #26218: add_query_arg() being called incorrectly in ~/wp-includes/cron.php (Version 3.8-beta-1)
WordPress Trac
noreply at wordpress.org
Sun Nov 24 18:19:28 UTC 2013
#26218: add_query_arg() being called incorrectly in ~/wp-includes/cron.php (Version
3.8-beta-1)
-------------------------+-------------------------------------------------
Reporter: | Owner:
datafeedr.com | Status: new
Type: defect | Milestone: Awaiting Review
(bug) | Version: trunk
Priority: normal | Keywords: needs-patch 2nd-opinion dev-
Component: Cron | feedback
Severity: major |
-------------------------+-------------------------------------------------
On line 275 in ~/wp-includes/cron.php an array() is being passed to the
add_query_arg() function:
{{{
'url' => add_query_arg( array( 'doing_wp_cron',
$doing_wp_cron ), site_url( 'wp-cron.php' ) ),
}}}
This is producing a URL where the array indexes 0 and 1 are being used as
keys. The URL looks like this:
'''site.com/wp-
cron.php?0=doing_wp_cron&1=1385316015.1194360256195068359375'''
However the URL should be formatted like this:
'''site.com/wp-cron.php?doing_wp_cron=1385316015.1194360256195068359375'''
Therefore the above line should be changed to:
{{{
'url' => add_query_arg( 'doing_wp_cron', $doing_wp_cron,
site_url( 'wp-cron.php' ) ),
}}}
This will format the URL being passed to wp-cron.php properly and allow
the cron to run.
Eric
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26218>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list