Having this plugin installed caused the media uploader to not work. WordPress was at 3.3, Flickr Photo Post was at 1.2.3.
Deactivating this plugin resolved the issue and the fancy new WP uploader began working as expected.
Having this plugin installed caused the media uploader to not work. WordPress was at 3.3, Flickr Photo Post was at 1.2.3.
Deactivating this plugin resolved the issue and the fancy new WP uploader began working as expected.
To fix the plugin (it works with these fixes as far as I've tested) :
open flickr-photo-post.php
and change beginning of: function flickr_init_method() {
to:
// wp_deregister_script( 'jquery' );
// wp_register_script( 'jquery', WP_FLICKR_PLUGIN_URL . "/js/jquery.min.js");
wp_enqueue_script( 'jquery' );
// wp_deregister_script( 'jquery-ui-core' );
// wp_register_script( 'jquery-ui-core', WP_FLICKR_PLUGIN_URL . "/js/jquery-ui.min.js");
wp_enqueue_script("jquery-ui-core");
wp_enqueue_script("jquery-ui-dialog");
(comment out first two wp_deregister_script() and wp_register_script(). This way plugin won't load older version of jQuery and jQuery UI as newer versions are included in WP 3.3 (and required).
At the end you also added 'jquery-ui-dialog' that is required to use dialogs by this plugin.
Then open js/jquery.flickr.js
and at the beginning of file add:
;(function($) {
and at the end
})(jQuery);
(it doesn't matter where, as long as it's on the own line and not part of the /* .. */ comment.
That's it :)
Thanks JureCuhalev,
This fixed it for me, I appreciate your post on this.
You must log in to post.