Skip to content

Commit 4223530

Browse files
committed
fix: multisite capability check in Plugin class
1 parent 5c5c035 commit 4223530

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/php/class-plugin.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function load_plugin() {
132132
// Settings component.
133133
require_once $includes_path . '/settings/settings-fields.php';
134134
require_once $includes_path . '/settings/editor-preview.php';
135-
require_once $includes_path . '/settings/class-version-switch.php';
135+
require_once $includes_path . '/settings/class-version-switch.php';
136136
require_once $includes_path . '/settings/settings.php';
137137

138138
// Cloud List Table shared functions.
@@ -357,6 +357,10 @@ public function get_cap(): string {
357357
return $this->get_network_cap_name();
358358
}
359359

360+
if ( is_multisite() && ! $this->is_subsite_menu_enabled() ) {
361+
return $this->get_network_cap_name();
362+
}
363+
360364
return $this->get_cap_name();
361365
}
362366

0 commit comments

Comments
 (0)