Skip to content

Commit

Permalink
[BUGS-9130] Don't add network setup if network already setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Jan 17, 2025
1 parent b4b5035 commit ff6adfd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/pantheon-network-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ function pantheon_remove_network_setup() {
* Register the Pantheon network setup submenu page.
*/
function pantheon_add_network_setup() {
if ( defined( 'MULTISITE' ) && MULTISITE ) {

Check notice on line 28 in inc/pantheon-network-setup.php

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

inc/pantheon-network-setup.php#L28

Expected 0 spaces after opening bracket; 1 found

Check notice on line 28 in inc/pantheon-network-setup.php

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

inc/pantheon-network-setup.php#L28

First condition of a multi-line IF statement must directly follow the opening parenthesis

Check notice on line 28 in inc/pantheon-network-setup.php

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

inc/pantheon-network-setup.php#L28

Implicit true comparisons prohibited; use === TRUE instead

Check notice on line 28 in inc/pantheon-network-setup.php

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

inc/pantheon-network-setup.php#L28

Line indented incorrectly; expected 4 spaces, found 1

Check notice on line 28 in inc/pantheon-network-setup.php

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

inc/pantheon-network-setup.php#L28

Space after opening parenthesis of function call prohibited
return;

Check notice on line 29 in inc/pantheon-network-setup.php

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

inc/pantheon-network-setup.php#L29

Line indented incorrectly; expected at least 8 spaces, found 2
}

add_management_page(
__( 'Create a Network of WordPress Sites', 'network-setup' ),
__( 'Network Setup', 'network-setup' ),
Expand Down

0 comments on commit ff6adfd

Please sign in to comment.