Limited-Time Sale, up to 30% off! Go Pro, offer ends in | see announcement

4.1 Released (very minor update)

Posted on July 5, 2011

Just a quick note to say 4.1 was released in the hopes of giving wordpress.org a nudge so that our blogs receive an update notification. For some reason wordpress did not recognize the 4.0.84 > 4.0.9 update and blogs weren’t being made aware of the new update. Fortunately this corrected the problem.

For more info on the latest changes see the 4.0.9 release post.

Whilst breaking down the API calls to the wordpress plugin repo, I’ve noticed that with a correct version 4.0.83 sent, EM is still not considered as a plugin needing updating.

For those interested, here’s a small script to debug what your wordpress site thinks needs updating (taken from the wp_update_plugins function). Just add that somewhere in your code and visit the admin screen (warning: this will break the admin area, so remove the code when done).

function check_wp_update_responses(){
	global $wp_version;
	// If running blog-side, bail unless we've not checked in the last 12 hours
	if ( !function_exists( 'get_plugins' ) )
		require_once( ABSPATH . 'wp-admin/includes/plugin.php' );

	$plugins = get_plugins();
	$active  = get_option( 'active_plugins', array() );
	$current = get_site_transient( 'update_plugins' );
	if ( ! is_object($current) )
		$current = new stdClass;

	set_site_transient( 'update_plugins', $current );

	$to_send = (object) compact('plugins', 'active');
	$options = array(
		'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3),
		'body' => array( 'plugins' => serialize( $to_send ) ),
		'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' )
	);

	$raw_response = wp_remote_post('http://api.wordpress.org/plugins/update-check/1.0/', $options);
	echo "
<strong>Plugin Object (unserialized)</strong>

";
	echo "
<pre>"; print_r($to_send); echo "</pre>
";
 echo "
<strong>Posting Options to 'http://api.wordpress.org/plugins/update-check/1.0/'</strong>

";
 echo "
<pre>"; print_r($options); echo "</pre>
";
 echo "
<strong>Response</strong>

";
 echo "
<pre>"; print_r($raw_response); echo "</pre>
";
 echo "
<strong>Response Body</strong>

";
 echo "
<pre>"; print_r(unserialize($raw_response['body'])); echo "</pre>
";
 die();
}
add_action('admin_init','check_wp_update_responses');

Comments are closed.



Interested in Events Manager?

Sign up to our newsletter, receive a free add-on and an additional 10% discount for Pro!

You will receive a confirmation email which you must click on, you will then be sent another welcome email with links to your discount and free add-on.