Warning: This function has been deprecated. Use wp_get_themes() instead.

get_broken_themes()

Retrieves a list of broken themes.


Description Description

See also See also


Top ↑

Return Return

(array)


Top ↑

Source Source

File: wp-admin/includes/deprecated.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;
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.0 Use wp_get_themes()
1.5.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.