get_importers

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

WordPress Version: 6.1

/**
 * WordPress Administration Importer API.
 *
 * @package WordPress
 * @subpackage Administration
 */
/**
 * Retrieves the list of importers.
 *
 * @since 2.0.0
 *
 * @global array $wp_importers
 * @return array
 */
function get_importers()
{
    global $wp_importers;
    if (is_array($wp_importers)) {
        uasort($wp_importers, '_usort_by_first_member');
    }
    return $wp_importers;
}

WordPress Version: 4.3

/**
 * WordPress Administration Importer API.
 *
 * @package WordPress
 * @subpackage Administration
 */
/**
 * Retrieve list of importers.
 *
 * @since 2.0.0
 *
 * @global array $wp_importers
 * @return array
 */
function get_importers()
{
    global $wp_importers;
    if (is_array($wp_importers)) {
        uasort($wp_importers, '_usort_by_first_member');
    }
    return $wp_importers;
}

WordPress Version: 3.9

/**
 * WordPress Administration Importer API.
 *
 * @package WordPress
 * @subpackage Administration
 */
/**
 * Retrieve list of importers.
 *
 * @since 2.0.0
 *
 * @return array
 */
function get_importers()
{
    global $wp_importers;
    if (is_array($wp_importers)) {
        uasort($wp_importers, '_usort_by_first_member');
    }
    return $wp_importers;
}

WordPress Version: 3.7

/**
 * WordPress Administration Importer API.
 *
 * @package WordPress
 * @subpackage Administration
 */
/**
 * Retrieve list of importers.
 *
 * @since 2.0.0
 *
 * @return array
 */
function get_importers()
{
    global $wp_importers;
    if (is_array($wp_importers)) {
        uasort($wp_importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
    }
    return $wp_importers;
}