Changeset 11476 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 05/28/2009 06:06:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r11469 r11476 631 631 $args['offset'] = absint( $args['offset'] ); 632 632 if ( !$single_taxonomy || !is_taxonomy_hierarchical($taxonomies[0]) || 633 '' != $args['parent'] ) {633 '' !== $args['parent'] ) { 634 634 $args['child_of'] = 0; 635 635 $args['hierarchical'] = false; … … 746 746 $where .= " AND t.name LIKE '{$name__like}%'"; 747 747 748 if ( '' != $parent ) {748 if ( '' !== $parent ) { 749 749 $parent = (int) $parent; 750 750 $where .= " AND tt.parent = '$parent'"; … … 755 755 756 756 // don't limit the query results when we have to descend the family tree 757 if ( ! empty($number) && ! $hierarchical && empty( $child_of ) && '' == $parent ) {757 if ( ! empty($number) && ! $hierarchical && empty( $child_of ) && '' === $parent ) { 758 758 if( $offset ) 759 759 $limit = 'LIMIT ' . $offset . ',' . $number;
Note: See TracChangeset
for help on using the changeset viewer.