wpeventmanager / wp-user-profile-avatar

WordPress currently only allows you to use custom avatars that are uploaded through Gravatar. WP User Profile Avatar allow you to change default WordPress avatar or User profile picture. You can use any photos uploaded into your Media Library or use custom photo url as an avatar instead of using Gravatar.
https://wp-eventmanager.com
GNU General Public License v3.0
2 stars 3 forks source link

Media files from other users are not displayed #75

Open martin-roessler opened 7 months ago

martin-roessler commented 7 months ago

On the Media Library it only shows the images of the current user, either the User is Admin or Editor etc.

Maybe this is infected by the function wpb_show_current_user_attachments ?

URL: https://wordpress.org/support/topic/new-update-hides-media-files-in-grid-mode/

vijayrathod245 commented 7 months ago

On our end, everything is working fine, but we need to check what's happening on the client's end.

martin-roessler commented 7 months ago

Hi @vijayrathod245 This bug should coming, if another user has been uploaded images to the media library. These images or files are invisible then for another current logged in user. Or did i misunderstood you question? :)

vijayrathod245 commented 7 months ago

It would be helpful if you could share your login details for the site. We will check your website as soon as possible.

martin-roessler commented 7 months ago

Hey, its a client site, but maybe you see it in a testsytem with two users - files of other users are "invisible" in grid-mode. :) Greetings

EDIT: I've just figure out, this helps in my functions.php of Child-Theme :) remove_filter('ajax_query_attachments_args', 'wpb_show_current_user_attachments');