MF-Timeline plugin fix for WordPress 3.5

WordPress
WordPress (Photo credit: Adriano Gasparri)

Ah, it’s that time again – time for WordPress plugins to break because a new version of WordPress! 🙂

This time it’s MF-Timeline Plugin for WordPress.  I use this plugin over at MidnightRyder.org (you can see it in action here), and after an update, it would display on the page just fine, but it broke quite a few things on the admin side of WordPress.

I dug into the code real quick and made one change, and presto-changeo, it’s fixed.  jQuery is loaded already, so there’s no need for the plugin to load it.  So, if you’re needing to get it back up and running, just go to the MF-Timeline plugin under Installed Plugins, and hit “edit” under MF-Timeline.

Scroll down until you find:

 wp_register_script( 'jquery-ui', ("http://www.midnightryder.org/wp-includes/js/jquery/ui/jquery.ui.core.min.js") ); 
 wp_register_script( 'mf_timeline_admin_js', plugins_url( 'scripts/js/jquery.mf_timeline_admin.min.js', __FILE__ ), true );
 wp_register_style( 'mf_timeline_admin_styles', plugins_url( 'styles/admin.min.css', __FILE__ ) );
 wp_register_style( 'jquery-ui', plugins_url( 'styles/jquery-ui/theme-wordpress.css', __FILE__ ) );

We’re going to make that code inactive for now, until the plugin author fixes it himself by commenting out the code.  To do that, we’ll just add /* and */:

/* wp_register_script( 'jquery-ui', ("http://www.midnightryder.org/wp-includes/js/jquery/ui/jquery.ui.core.min.js") ); 
 wp_register_script( 'mf_timeline_admin_js', plugins_url( 'scripts/js/jquery.mf_timeline_admin.min.js', __FILE__ ), true );
 wp_register_style( 'mf_timeline_admin_styles', plugins_url( 'styles/admin.min.css', __FILE__ ) );
 wp_register_style( 'jquery-ui', plugins_url( 'styles/jquery-ui/theme-wordpress.css', __FILE__ ) ); */

Save the plugin, and enjoy!

Enhanced by Zemanta

1 thought on “MF-Timeline plugin fix for WordPress 3.5”

Leave a Comment