-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Plugins: Don't display plugins for hidden sites on multiple sites views #1344
Conversation
sites.forEach( function( site ) { | ||
var sitePlugins = PluginsStore.getSitePlugins( site ); | ||
sites.forEach( ( site ) => { | ||
if ( sites.length > 1 && ! site.visible ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use sites.getVisible()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use this method in the site selected case too, in that case we want the list of plugins for that site even when the site is invisible.
ping @lezama ^ |
@lezama what's the status of this one? |
Thanks! |
how to test
update/plugins-dont-fetch-for-invisible-sites
Closes #820