get_broken_themes

The timeline below displays how wordpress function get_broken_themes has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.6

/**
 * Retrieves a list of broken themes.
 *
 * @since 1.5.0
 * @deprecated 3.4.0 Use wp_get_themes()
 * @see wp_get_themes()
 *
 * @return array
 */
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;
}

WordPress Version: 4.4

/**
 * Retrieves a list of broken themes.
 *
 * @since 1.5.0
 * @deprecated 3.4.0 Use wp_get_themes()
 * @see wp_get_themes()
 *
 * @return array
 */
function get_broken_themes()
{
    _deprecated_function(__FUNCTION__, '3.4', "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;
}

WordPress Version: 4.1

/**
 * {@internal Missing Short Description}}
 *
 * @since 1.5.0
 * @deprecated 3.4.0
 *
 * @return array
 */
function get_broken_themes()
{
    _deprecated_function(__FUNCTION__, '3.4', "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;
}

WordPress Version: 3.7

/**
 * {@internal Missing Short Description}}
 *
 * @since 1.5.0
 * @deprecated 3.4.0
 *
 * @return unknown
 */
function get_broken_themes()
{
    _deprecated_function(__FUNCTION__, '3.4', "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;
}