Changeset 13754
- Timestamp:
- 03/18/2010 08:17:15 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-writing.php
r13750 r13754 53 53 <td> 54 54 <?php 55 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_link_category', 'orderby' => 'name', 'selected' => get_option('default_link_category'), 'hierarchical' => true, 't ype' => 'link'));55 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_link_category', 'orderby' => 'name', 'selected' => get_option('default_link_category'), 'hierarchical' => true, 'taxonomy' => 'link_category')); 56 56 ?> 57 57 </td> -
trunk/wp-includes/category-template.php
r13553 r13754 319 319 * 'class' (string) - The class attribute value for select element. 320 320 * 'selected' (int) - Which category ID is selected. 321 * 'taxonomy' (string) - The name of the taxonomy to retrieve. Defaults to category. 321 322 * 322 323 * The 'hierarchical' argument, which is disabled by default, will override the … … 345 346 346 347 $defaults['selected'] = ( is_category() ) ? get_query_var( 'cat' ) : 0; 348 349 // Back compat. 350 if ( isset( $args['type'] ) && 'link' == $args['type'] ) { 351 _deprecated_argument( __FUNCTION__, '3.0', '' ); 352 $args['taxonomy'] = 'link_category'; 353 } 347 354 348 355 $r = wp_parse_args( $args, $defaults ); -
trunk/wp-includes/category.php
r13382 r13754 43 43 $taxonomy = apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args ); 44 44 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', '' ); 46 48 $taxonomy = $args['taxonomy'] = 'link_category'; 49 } 47 50 48 51 $categories = (array) get_terms( $taxonomy, $args );
Note: See TracChangeset
for help on using the changeset viewer.