Compatibility with WP 2.6.5

Article by

I am the creator of CommentLuv and site owner and administrator of ComLuv.com

Andy Bailey has written 276 articles for ComLuv.com
I normally write at http://comluv.com

Twitter: @commentluv | Facebook | Google Profile
Become a guest blogger on ComLuv just like Andy Bailey

New commentluv will be compatible with version 2.65 and upwards. I’ve added a check for the WP version and include the hoverIntent.js library if the user isn’t on version 2.7 . If the version of wordpress is less than 2.6.5 then the plugin will notify them and not activate.

wp_enqueue_script('jquery');
global $wp_version;
if (version_compare($wp_version,"2.7","<")){
wp_enqueue_script('hoverIntent','/'.PLUGINDIR.'/'.dirname( plugin_basename(__FILE__)).'/js/hoverIntent.js',array('jquery'));
} else {
wp_enqueue_script('hoverIntent','/'.WPINC.'/js/hoverIntent.js',array('jquery'));
}

Speak Your Mind

*

CommentLuv badge