Make WordPress Core


Ignore:
Timestamp:
03/18/2010 08:17:15 PM (16 years ago)
Author:
nacin
Message:

Account for old type=link (now taxonomy=link_category) in wp_dropdown_categories(). Don't use the deprecated argument in options-writing. Sprinkle in some deprecated warnings. fixes #12630

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category.php

    r13382 r13754  
    4343        $taxonomy = apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args );
    4444
    45         if ( isset($args['type']) && 'link' == $args['type'] ) //Back compat
     45        // Back compat
     46        if ( isset($args['type']) && 'link' == $args['type'] ) {
     47                _deprecated_argument( __FUNCTION__, '3.0', '' );
    4648                $taxonomy = $args['taxonomy'] = 'link_category';
     49        }
    4750
    4851        $categories = (array) get_terms( $taxonomy, $args );
Note: See TracChangeset for help on using the changeset viewer.