get_broken_themes()
最后更新于:2021-11-26 06:50:44
get_broken_themes()Retrieves a list of broken themes.
响应
(array)
源文件
文件: gc-admin/includes/deprecated.php
function get_broken_themes() {
_deprecated_function( __FUNCTION__, '3.4.0', "gc_get_themes( array( 'errors' => true )" );
$themes = gc_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;
}