Skip to content

Commit cf56a62

Browse files
author
Joseph Kerkhof
committed
Resolves issue 235 where error wasn't being thrown if 'site meta' isn't supported.
1 parent a6e4c61 commit cf56a62

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)