Changeset 15690 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 10/03/2010 07:29:44 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r15688 r15690 1456 1456 1457 1457 $defaults = array(); 1458 1459 if ( 'category' == $taxonomy ) { 1460 $defaults['default'] = get_option( 'default_category' ); 1461 if ( $defaults['default'] == $term ) 1462 return 0; // Don't delete the default category 1463 } 1464 1458 1465 $args = wp_parse_args($args, $defaults); 1459 1466 extract($args, EXTR_SKIP); 1460 1467 1461 if ( isset( $default) ) {1468 if ( isset( $default ) ) { 1462 1469 $default = (int) $default; 1463 1470 if ( ! term_exists($default, $taxonomy) )
Note: See TracChangeset
for help on using the changeset viewer.