# get_broken_themes()

URL: https://chugunov.pro/api-wordpress/functions/get_broken_themes/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: 1.5.0.

> Устаревший элемент. Помечен устаревшим с версии 3.4.0.

## Сигнатура

```php
get_broken_themes(): array
```

## Описание

См. alsowp_get_themes()

## Возвращаемое значение

`array`

## Исходный код

Файл: `wp-admin/includes/deprecated.php:1037`

```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;
}
```

## История изменений

- 3.4.0 — Deprecated. Use wp_get_themes()
- 1.5.0 — Introduced.

## Связанные

Использует: [`wp_get_themes`](https://chugunov.pro/api-wordpress/functions/wp_get_themes/), `WP_Theme`, [`_deprecated_function`](https://chugunov.pro/api-wordpress/functions/_deprecated_function/).

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/get_broken_themes/
