-
Notifications
You must be signed in to change notification settings - Fork 384
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
Add plugin suppression info in plugins screen #6959
Add plugin suppression info in plugins screen #6959
Conversation
Plugin builds for 73ce94c are ready 🛎️!
|
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.
@dhaval-parekh Thanks for the PR.
I noticed an issue with this feature on a multisite install. The network Plugins screen (/wp-admin/network/plugins.php
) incorrectly displays an information about plugin suppression (it uses suppression data for the main site in a network):
I think we skip displaying this information in the network dashboard since plugin suppression is site-specific.
621839b
to
715fd43
Compare
src/PluginSuppression.php
Outdated
|
||
$screen = get_current_screen(); | ||
|
||
if ( ! ( $screen instanceof WP_Screen && 'plugins' === $screen->id ) ) { |
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.
What was this needed for? Wouldn't the plugin_row_meta
filter only be shown on the plugins screen anyway?
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.
I guess for @delawski's comment in #6959 (review)?
…340-plugin-suppression-into-plugins-screen * 'develop' of github.com:ampproject/amp-wp: Copy referrerpolicy attribute from img to amp-pixel Improve nav menu E2E tests by creating test menu before each test suite Bail out if there is no menu location or it is already selected Add E2E tests for Twenty Twenty-Two header nav menu block Test Twenty Twenty search modal on mobile breakpoint Remove redundant space Use `Extension` class constant for getting `amp-pixel` tag name Add missing replacement string to `str_replace` and reformat Use `::class` constant instead of hardcoded class name Examine parsed URL instead of using regex Remove `amp-pixel` from selector conversion mapping Replace `img` with `amp-pixel` when dealing with Facebook tracking pixel
…ency with PluginRegistry
src/PluginSuppression.php
Outdated
$screen = get_current_screen(); | ||
|
||
if ( ! ( $screen instanceof WP_Screen && 'plugins' === $screen->id ) ) { |
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.
If so, another option would be:
$screen = get_current_screen(); | |
if ( ! ( $screen instanceof WP_Screen && 'plugins' === $screen->id ) ) { | |
if ( is_network_admin() ) { |
Co-authored-by: Dhaval Parekh <dmparekh007@gmail.com>
Summary
Fixes #5340
Add plugin suppression info in the plugin meta row on the plugin screen.
Checklist