WordPress at a glance
function is not described

get_broken_themes() WP 1.5.0

Deprecated in 3.4.0. It is no longer supported and can be removed in future releases. Use wp_get_themes() instead.

Retrieves a list of broken themes.

  • See: wp_get_themes()

No Hooks.

Return

Array.

Usage

get_broken_themes();

Code of get broken themes: wp-admin/includes/deprecated.php VER 5.1.1

<?php
function get_broken_themes() {
	_deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'errors' => true )" );

	$themes = wp_get_themes( array( 'errors' => true ) );
	$broken = array();
	foreach ( $themes as $theme ) {
		$name = $theme->get('Name');
		$broken[ $name ] = array(
			'Name' => $name,
			'Title' => $name,
			'Description' => $theme->errors()->get_error_message(),
		);
	}
	return $broken;
}