diff --git a/includes/classes/Command.php b/includes/classes/Command.php index 4453c43a1f..75236f5c21 100644 --- a/includes/classes/Command.php +++ b/includes/classes/Command.php @@ -424,6 +424,9 @@ protected function get_index_names() { } foreach ( $sites as $site ) { + if ( ! Utils\is_site_indexable( $site['blog_id'] ) ) { + continue; + } $non_global_indexes[] = $indexable->get_index_name( $site['blog_id'] ); } }