#46060 closed defect (bug) (invalid)
WSOD protection: admin notices not displaying on network admin screens for paused network activated plugins.
Reported by: | pbiron | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.1 |
Component: | Site Health | Keywords: | servehappy has-patch needs-testing |
Focuses: | administration | Cc: |
Description
When a network activated plugin is paused, the plugin shows as such in /wp-admin/network/plugins.php
but the "One or more plugins failed to load properly" admin notice does not display on the other network admin screens (like it does on "normal" admin screens).
Attachments (3)
Change History (13)
#4
@
6 years ago
Hey Paul.
I was really hoping you would find a more complete solution. I was looking to see how the current notice was called and create something similar for network admin. I missed the URL correction.
If you create the new ticket for the other issue I’ll try to dig into it.
#6
@
6 years ago
46060.3.diff simplifies the change by using self_admin_url()
. It furthermore ensures that plugins that are paused on any site in the network are displayed as "paused" in the network admin plugins screen. This was already the case for the row actions, however in the network admin they would never have shown up under the "Paused" tab. If a site had only non-network active plugins that were paused, the network admin could link to the "Paused" tab without that tab actually showing any content in the list.
Hey Andy, thanx for the patch.
46060.2.diff does 2 things:
add_action( 'network_admin_notices', 'paused_plugins_notice', 5 );
from your patch up a few lines to group it with the other "Notices Hooks"There is another thing I noticed when testing this patch that probably deserves its own ticket, but I'll mention it here: