• I’m one of the developers of “picu” and we had a user reporting a Problem when using both “Featured Galleries” and our plugin.

    The issue was that our ?filter” doesn’t work and all the images get displayed in the media library after upload.
    We use the WP media library to handle image uploads for picu, but don’t show the images anywhere except our screens, because they are not intended to be used/released anywhere.
    When he tried deactivating some plugins he found out that deactivating ?Featured Galleries” fixed the issue. We looked at the code and it looks like the ?wp_enqueue_media” function that we both use is causing this.

    Maybe you could add a check and only load it on the specific screens it is used from your plugin? You should also add the $post array as an argument to the function call. If this is missing the attachments won’t get attached to any posts.

    Would be cool if we could get this fixed.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Andy Mercer

    (@kelderic)

    Hi Claudio, thanks for reaching out. I’m traveling at the moment, but I’ll take a look this weekend after I get home.

    Plugin Author Andy Mercer

    (@kelderic)

    Hey, I started working on it this weekend but I ran out of time. This is still on my radar.

    Cool! Thanks for keeping us updated! ??

    Plugin Author Andy Mercer

    (@kelderic)

    Unfortunately, I haven’t had time to get to this, despite intentions. Work has been very busy, and I’m leaving in a bit for a vacation and wedding that will last through this week.

    I’d like to still fix this, but at this point, I am not sure on ETA.

    Thread Starter Claudio Rimann

    (@pandulu)

    Hey Andy

    As far as i can tell, there’s no way to fix this from our side, but: we found out how we could get this fixed with a small change in featured galleries, which should not have any other side effects.

    Basically, you just need to add the $args in wp_enqueue_media($args) like this inside ‘/components/enqueuing.php’

    global $post;
    
    	if ( isset( $post ) ) {
    		$args = array( 'post' => $post->ID );
    	} else {
    		$args = array();
    	}
    
    	wp_enqueue_media( $args );

    Would be great if you could add this!

    Looking forward hearing from you.

    Best
    Claudio

    Plugin Author Andy Mercer

    (@kelderic)

    Hi Claudio! I’ll try out that code this week. I recently got some large projects finished and have more free time to maintain things, so I’ll try to get this resolved soon.

    Plugin Author Andy Mercer

    (@kelderic)

    An update, I have this weekend free, so going to try to get this done either tomorrow or day after.

    Plugin Author Andy Mercer

    (@kelderic)

    I just pushed out an update to Featured Galleries. It’s a top to bottom rewrite, and includes the fixes you suggested as well as some others that should further insulate the JS.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Compatibility issues’ is closed to new replies.