wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
get_broken_themes is deprecated since version 3.4.0!
Alternative: Use
Alternative: Use
get_broken_themes › WordPress Function
Seit1.5.0
Veraltet3.4.0
› get_broken_themes ( Keine Parameter )
| Siehe: | |
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Retrieves a list of broken themes.
Ähnliche Funktionen: get_current_theme, get_themes, get_allowed_themes, get_block_templates, get_block_theme_folders
Quellcode
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;
}