dropdown_cats

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

WordPress Version: 4.6

/**
 * Deprecated method for generating a drop-down of categories.
 *
 * @since 0.71
 * @deprecated 2.1.0 Use wp_dropdown_categories()
 * @see wp_dropdown_categories()
 *
 * @param int $optionall
 * @param string $all
 * @param string $orderby
 * @param string $order
 * @param int $show_last_update
 * @param int $show_count
 * @param int $hide_empty
 * @param bool $optionnone
 * @param int $selected
 * @param int $exclude
 * @return string
 */
function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc', $show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false, $selected = 0, $exclude = 0)
{
    _deprecated_function(__FUNCTION__, '2.1.0', 'wp_dropdown_categories()');
    $show_option_all = '';
    if ($optionall) {
        $show_option_all = $all;
    }
    $show_option_none = '';
    if ($optionnone) {
        $show_option_none = __('None');
    }
    $vars = compact('show_option_all', 'show_option_none', 'orderby', 'order', 'show_last_update', 'show_count', 'hide_empty', 'selected', 'exclude');
    $query = add_query_arg($vars, '');
    return wp_dropdown_categories($query);
}

WordPress Version: 4.4

/**
 * Deprecated method for generating a drop-down of categories.
 *
 * @since 0.71
 * @deprecated 2.1.0 Use wp_dropdown_categories()
 * @see wp_dropdown_categories()
 *
 * @param int $optionall
 * @param string $all
 * @param string $orderby
 * @param string $order
 * @param int $show_last_update
 * @param int $show_count
 * @param int $hide_empty
 * @param bool $optionnone
 * @param int $selected
 * @param int $exclude
 * @return string
 */
function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc', $show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false, $selected = 0, $exclude = 0)
{
    _deprecated_function(__FUNCTION__, '2.1', 'wp_dropdown_categories()');
    $show_option_all = '';
    if ($optionall) {
        $show_option_all = $all;
    }
    $show_option_none = '';
    if ($optionnone) {
        $show_option_none = __('None');
    }
    $vars = compact('show_option_all', 'show_option_none', 'orderby', 'order', 'show_last_update', 'show_count', 'hide_empty', 'selected', 'exclude');
    $query = add_query_arg($vars, '');
    return wp_dropdown_categories($query);
}

WordPress Version: 4.1

/**
 * @since 0.71
 * @deprecated 2.1.0
 * @deprecated Use wp_dropdown_categories()
 * @see wp_dropdown_categories()
 *
 * @param int $optionall
 * @param string $all
 * @param string $orderby
 * @param string $order
 * @param int $show_last_update
 * @param int $show_count
 * @param int $hide_empty
 * @param bool $optionnone
 * @param int $selected
 * @param int $exclude
 * @return string
 */
function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc', $show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false, $selected = 0, $exclude = 0)
{
    _deprecated_function(__FUNCTION__, '2.1', 'wp_dropdown_categories()');
    $show_option_all = '';
    if ($optionall) {
        $show_option_all = $all;
    }
    $show_option_none = '';
    if ($optionnone) {
        $show_option_none = __('None');
    }
    $vars = compact('show_option_all', 'show_option_none', 'orderby', 'order', 'show_last_update', 'show_count', 'hide_empty', 'selected', 'exclude');
    $query = add_query_arg($vars, '');
    return wp_dropdown_categories($query);
}

WordPress Version: 3.9

/**
 * @since 0.71
 * @deprecated 2.1.0
 * @deprecated Use wp_dropdown_categories()
 * @see wp_dropdown_categories()
 *
 * @param int $optionall
 * @param string $all
 * @param string $orderby
 * @param string $order
 * @param int $show_last_update
 * @param int $show_count
 * @param int $hide_empty
 * @param bool $optionnone
 * @param int $selected
 * @param int $exclude
 * @return unknown
 */
function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc', $show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false, $selected = 0, $exclude = 0)
{
    _deprecated_function(__FUNCTION__, '2.1', 'wp_dropdown_categories()');
    $show_option_all = '';
    if ($optionall) {
        $show_option_all = $all;
    }
    $show_option_none = '';
    if ($optionnone) {
        $show_option_none = __('None');
    }
    $vars = compact('show_option_all', 'show_option_none', 'orderby', 'order', 'show_last_update', 'show_count', 'hide_empty', 'selected', 'exclude');
    $query = add_query_arg($vars, '');
    return wp_dropdown_categories($query);
}

WordPress Version: 3.7

/**
 * @since 0.71
 * @deprecated 2.1
 * @deprecated Use wp_dropdown_categories()
 * @see wp_dropdown_categories()
 *
 * @param int $optionall
 * @param string $all
 * @param string $orderby
 * @param string $order
 * @param int $show_last_update
 * @param int $show_count
 * @param int $hide_empty
 * @param bool $optionnone
 * @param int $selected
 * @param int $exclude
 * @return unknown
 */
function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc', $show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false, $selected = 0, $exclude = 0)
{
    _deprecated_function(__FUNCTION__, '2.1', 'wp_dropdown_categories()');
    $show_option_all = '';
    if ($optionall) {
        $show_option_all = $all;
    }
    $show_option_none = '';
    if ($optionnone) {
        $show_option_none = __('None');
    }
    $vars = compact('show_option_all', 'show_option_none', 'orderby', 'order', 'show_last_update', 'show_count', 'hide_empty', 'selected', 'exclude');
    $query = add_query_arg($vars, '');
    return wp_dropdown_categories($query);
}