WP_REST_Themes_Controller::is_same_theme() – Helper function to compare two themes.

You appear to be a bot. Output may be restricted

Description

Helper function to compare two themes.

Usage

$bool = WP_REST_Themes_Controller::is_same_theme( $theme_a, $theme_b );

Parameters

$theme_a
( WP_Theme ) required – First theme to compare.
$theme_b
( WP_Theme ) required – Second theme to compare.

Returns

bool

Source

File name: wordpress/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
Lines:

1 to 3 of 3
  protected function is_same_theme( $theme_a, $theme_b ) {
    return $theme_a->get_stylesheet() === $theme_b->get_stylesheet();
  }
 

 View on GitHub View on Trac