Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin retrieves favicons of sites which do not appear in admin bar #25

Closed
JustThomas opened this issue May 29, 2016 · 1 comment
Closed
Assignees
Milestone

Comments

@JustThomas
Copy link
Contributor

My admin bar only shows 6 websites under the "My Sites" section, but the "Multisite Enhancements" plugin retrieves the paths to the favicons of all >100 sites in my network. This results in >100 single DB queries which retrieve the path to a favicon which never appers in my admin bar.

You could probably save a lot of DB queries by replacing wp_get_sites with get_blogs_of_user in Multisite_Add_Admin_Favicon::set_admin_bar_blog_icon().

@bueltge bueltge self-assigned this May 30, 2016
@bueltge bueltge added this to the 1.3.5 milestone May 30, 2016
@bueltge
Copy link
Owner

bueltge commented May 30, 2016

Thanks for this helpful hint, changed in the new version 1.3.5.

@bueltge bueltge closed this as completed May 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants