WP_REST_Themes_Controller::is_same_theme( WP_Theme $theme_a, WP_Theme $theme_b ): bool
Helper function to compare two themes.
Parameters
Return
bool
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
.
View all references
protected function is_same_theme( $theme_a, $theme_b ) {
return $theme_a->get_stylesheet() === $theme_b->get_stylesheet();
}
Changelog
Version | Description |
---|---|
5.7.0 | Introduced. |