get_archives

The timeline below displays how wordpress function get_archives 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 archives.
 *
 * @since 0.71
 * @deprecated 2.1.0 Use wp_get_archives()
 * @see wp_get_archives()
 *
 * @param string $type
 * @param string $limit
 * @param string $format
 * @param string $before
 * @param string $after
 * @param bool $show_post_count
 * @return string|null
 */
function get_archives($type = '', $limit = '', $format = 'html', $before = '', $after = '', $show_post_count = false)
{
    _deprecated_function(__FUNCTION__, '2.1.0', 'wp_get_archives()');
    $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
    return wp_get_archives($args);
}

WordPress Version: 4.4

/**
 * Retrieves a list of archives.
 *
 * @since 0.71
 * @deprecated 2.1.0 Use wp_get_archives()
 * @see wp_get_archives()
 *
 * @param string $type
 * @param string $limit
 * @param string $format
 * @param string $before
 * @param string $after
 * @param bool $show_post_count
 * @return string|null
 */
function get_archives($type = '', $limit = '', $format = 'html', $before = '', $after = '', $show_post_count = false)
{
    _deprecated_function(__FUNCTION__, '2.1', 'wp_get_archives()');
    $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
    return wp_get_archives($args);
}

WordPress Version: 4.1

/**
 * @since 0.71
 * @deprecated 2.1.0
 * @deprecated Use wp_get_archives()
 * @see wp_get_archives()
 *
 * @param string $type
 * @param string $limit
 * @param string $format
 * @param string $before
 * @param string $after
 * @param bool $show_post_count
 * @return string|null
 */
function get_archives($type = '', $limit = '', $format = 'html', $before = '', $after = '', $show_post_count = false)
{
    _deprecated_function(__FUNCTION__, '2.1', 'wp_get_archives()');
    $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
    return wp_get_archives($args);
}

WordPress Version: 3.9

/**
 * @since 0.71
 * @deprecated 2.1.0
 * @deprecated Use wp_get_archives()
 * @see wp_get_archives()
 *
 * @param string $type
 * @param string $limit
 * @param string $format
 * @param string $before
 * @param string $after
 * @param bool $show_post_count
 * @return unknown
 */
function get_archives($type = '', $limit = '', $format = 'html', $before = '', $after = '', $show_post_count = false)
{
    _deprecated_function(__FUNCTION__, '2.1', 'wp_get_archives()');
    $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
    return wp_get_archives($args);
}

WordPress Version: 3.7

/**
 * @since 0.71
 * @deprecated 2.1
 * @deprecated Use wp_get_archives()
 * @see wp_get_archives()
 *
 * @param string $type
 * @param string $limit
 * @param string $format
 * @param string $before
 * @param string $after
 * @param bool $show_post_count
 * @return unknown
 */
function get_archives($type = '', $limit = '', $format = 'html', $before = '', $after = '', $show_post_count = false)
{
    _deprecated_function(__FUNCTION__, '2.1', 'wp_get_archives()');
    $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
    return wp_get_archives($args);
}