This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

WP_Theme_Install_List_Table::_get_theme_status( object $theme )

Check to see if the theme is already installed.


Parameters

$theme

(Required) - A ClassicPress.net Theme API object.


Return

(string) Theme status.


Source

File: wp-admin/includes/class-wp-theme-install-list-table.php

	private function _get_theme_status( $theme ) {
		$status = 'install';

		$installed_theme = wp_get_theme( $theme->slug );
		if ( $installed_theme->exists() ) {
			if ( version_compare( $installed_theme->get('Version'), $theme->version, '=' ) )
				$status = 'latest_installed';
			elseif ( version_compare( $installed_theme->get('Version'), $theme->version, '>' ) )
				$status = 'newer_installed';
			else
				$status = 'update_available';
		}

		return $status;
	}


Changelog

Changelog
Version Description
WP-3.4.0 Introduced.