wordpress-multisite-enhancements icon indicating copy to clipboard operation
wordpress-multisite-enhancements copied to clipboard

[Bug]: Plugins aren't loaded on the Network, Sites page

Open rickhellewell opened this issue 2 years ago • 1 comments

Description of the bug

In WP 6.1, it appears that the Network, Sites page (network/sites.php) does not load any plugins (even if plugins are network enabled), so the class that adds the blog ID to the Network, Sites list does not get executed.

I have verified this by installing and activating the add-blog-id plugin code from here, and the ID column is not shown. And if you put a 'die' statement in the plugin code, the 'die' never happens.

The code for the class will work if you put it in the active theme's functions.php file, so it's not a code problem. It appears to be a 'core' problem that the Network, Sites page does not load any plugins.

I don't have enough reputation to add an issue in WP Core. But would like to figure out how to use the add-blog-id plugin code you have provided.

Reproduction instructions

  1. Copy the 'add-blog-id' plugin code to the network's plugin folder.
  2. Network Activate the plugin
  3. Go to Networks, SItes page to show All Sites list
  4. Note that the blog id column is not shown on that page.

Expected behavior

The Network, Sites list page should show the Blog ID column.

Environment info

Using WP 6.1, multisite installation

Relevant log output

No response

Additional context

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

rickhellewell avatar Feb 08 '23 20:02 rickhellewell

Urk. My testing screwed up on this. Ignore this.

rickhellewell avatar Feb 08 '23 21:02 rickhellewell