diff --git a/src/wp-includes/class-wp-theme.php b/src/wp-includes/class-wp-theme.php index 7c25d07b2c7b7..ee74099766160 100644 --- a/src/wp-includes/class-wp-theme.php +++ b/src/wp-includes/class-wp-theme.php @@ -1576,11 +1576,6 @@ public function is_allowed( $check = 'both', $blog_id = null ) { * @return bool */ public function is_block_theme() { - if ( ! did_action( 'setup_theme' ) ) { - _doing_it_wrong( __METHOD__, __( 'This method should not be called before themes are set up.' ), '6.8.0' ); - return false; - } - if ( isset( $this->block_theme ) ) { return $this->block_theme; }