Skip to content

Commit

Permalink
Fix Network Admin screen connection status when Jetpack is installed …
Browse files Browse the repository at this point in the history
…in MU-Plugins (#25122)

* Fix plugin check for sites that have Jetpack in MU-Plugins like VIP

* Fix plugin check for sites that have Jetpack in MU-Plugins like VIP

---------

Co-authored-by: oskosk <[email protected]>
  • Loading branch information
mikeyarce and oskosk authored Feb 1, 2024
1 parent e39c5f8 commit 23f5c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions projects/plugins/jetpack/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2868,6 +2868,7 @@
- Gathering Twitter Threads: ensure that only contributors can access the endpoint to unroll threads. [#25005]
- Stats: fix dashboard widget form name to allow form choices to be saved. [#25039]
- Subscriptions: format the number of subscribers displayed in the block editor's controls. [#25063]
- Fix Netowrk Admin connection status for sites that use Jetpack in MU-Plugins

### Other changes <!-- Non-user-facing changes go here. This section will not be copied to readme.txt. -->
- E2E tests: fixed pretest cleanup script not running. [#25051]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function column_connected( $item ) {
switch_to_blog( $item->blog_id );

// Checks for both the stock version of Jetpack and the one managed by the Jetpack Beta Plugin.
if ( ! is_plugin_active( 'jetpack/jetpack.php' ) && ! is_plugin_active( 'jetpack-dev/jetpack.php' ) ) {
if ( ! is_plugin_active( 'jetpack/jetpack.php' ) && ! is_plugin_active( 'jetpack-dev/jetpack.php' ) && ! array_key_exists( 'jetpack.php', get_mu_plugins() ) ) {
$title = __( 'Jetpack is not active on this site.', 'jetpack' );
$action = array(
'manage-plugins' => '<a href="' . get_admin_url( $item->blog_id, 'plugins.php', 'admin' ) . '">' . __( 'Manage Plugins', 'jetpack' ) . '</a>',
Expand Down

0 comments on commit 23f5c68

Please sign in to comment.