GeotagPhoto plugin thickbox feature not working with WordPress 3.0.
-
The proper scripts are not registered properly for WordPress 3.0. To register them properly you must edit the script.
Apply to : GeotagPhoto Version 0.8.6
Change module : geotagphoto.phpComment lines 271, 273, 275 :
271 // echo ‘<script type=”text/javascript” src=”‘ . get_bloginfo(‘wpurl’) . ‘/wp-includes/js/jquery/jquery.js”></script>’.”\n”;
273 // echo ‘<script type=”text/javascript” src=”‘ . get_bloginfo(‘wpurl’) . ‘/wp-includes/js/thickbox/thickbox.js”></script>’.”\n”;
275 // echo ‘<style type=”text/css” media=”all”>@import “‘ . get_bloginfo(‘wpurl’) . ‘/wp-includes/js/thickbox/thickbox.css”;</style>’.”\n”;Add the following lines after line 83 add_action(‘admin_menu’, ‘geotagphoto_menu’); :
wp_enqueue_style(‘thickbox’); // inserting style sheet for Thickbox.
wp_enqueue_script(‘jquery’); // including jquery.
wp_enqueue_script(‘thickbox’); // including Thickbox javascript.Save the plugin and retry. It should work now. Make sure the option “Add Thickbox to all photos (not just tagged ones)” is enabled in the plugin settings.
- The topic ‘GeotagPhoto plugin thickbox feature not working with WordPress 3.0.’ is closed to new replies.