<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: [Plugin: WP-Crontrol] Making it work in WordPress 2.7</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: [Plugin: WP-Crontrol] Making it work in WordPress 2.7</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 13:55:02 +0000</pubDate>

<item>
<title>0xTC on "[Plugin: WP-Crontrol] Making it work in WordPress 2.7"</title>
<link>http://wordpress.org/support/topic/225656#post-925693</link>
<pubDate>Mon, 15 Dec 2008 10:28:44 +0000</pubDate>
<dc:creator>0xTC</dc:creator>
<guid isPermaLink="false">925693@http://wordpress.org/support/</guid>
<description>&#60;p&#62;If you run a job manually with &#34;Do now&#34; from the Tools-&#38;gt;Crontrol screen in WP2.7, you'll most likely get a &#34;missing argument 1 for spawn_cron()&#34; error. In order to fix this, edit the &#34;run_cron&#34; function in wp-crontrol.php file.&#60;/p&#62;
&#60;p&#62;You need to add $local_time to the spawn_cron call.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function run_cron($hookname, $sig) {
// Add this:
	$local_time = time();
//
    	$crons = _get_cron_array();
        foreach( $crons as $time=&#38;gt;$cron ) {
            if( isset( $cron[$hookname][$sig] ) ) {
                $args = $cron[$hookname][$sig][&#38;#39;args&#38;#39;];
                wp_schedule_single_event(time()-1, $hookname, $args);
// Change this:
                spawn_cron($local_time);
//
                return true;
            }
        }
        return false;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This will make this function call spawn_cron() correctly allow the plug-in to work again.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
