WordPress.org

Ready to get started?Download WordPress

Forums

Flickr Photo Post
Latest version of flickr-photo-post breaks new 3.3 uploader (4 posts)

  1. excdev
    Member
    Posted 3 years ago #

    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.

    http://wordpress.org/extend/plugins/flickr-photo-post/

  2. JureCuhalev
    Member
    Posted 3 years ago #

    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 :)

  3. RaccoonNasty
    Member
    Posted 3 years ago #

    Thanks JureCuhalev,

    This fixed it for me, I appreciate your post on this.

  4. Thatedeguy
    Member
    Posted 2 years ago #

    that's great, and I appreciate the fix, JureCuhalev. But, we shouldn't have to do that, and a new update for the plugin should be released.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic