Skip to content

Commit 4f4992f

Browse files
authored
Merge pull request #244 from musicaljoeker/235
Fix logic error in presence of 'site meta' check
2 parents a6e4c61 + cf56a62 commit 4f4992f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entity-command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
if ( !is_multisite() ) {
3333
WP_CLI::error( 'This is not a multisite installation.' );
3434
}
35-
if( function_exists('is_site_meta_supported') && !is_site_meta_supported() ){
35+
if( ! function_exists('is_site_meta_supported') || ! is_site_meta_supported() ){
3636
WP_CLI::error( sprintf( 'The %s table is not installed. Please run the network database upgrade.', $GLOBALS['wpdb']->blogmeta ) );
3737
}
3838
}

0 commit comments

Comments
 (0)