Make WordPress Core


Ignore:
Timestamp:
12/09/2008 06:03:31 PM (16 years ago)
Author:
ryan
Message:

Strip trailing whitespace

File:
1 edited

Legend:

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

    r9737 r10150  
    530530 * hide_empty - Default is true. Will not return empty terms, which means
    531531 * terms whose count is 0 according to the given taxonomy.
    532  * 
     532 *
    533533 * exclude - Default is an empty string.  A comma- or space-delimited string
    534  * of term ids to exclude from the return array.  If 'include' is non-empty, 
     534 * of term ids to exclude from the return array.  If 'include' is non-empty,
    535535 * 'exclude' is ignored.
    536536 *
    537537 * include - Default is an empty string.  A comma- or space-delimited string
    538538 * of term ids to include in the return array.
    539  * 
     539 *
    540540 * number - The maximum number of terms to return.  Default is empty.
    541  * 
     541 *
    542542 * offset - The number by which to offset the terms query.
    543543 *
    544  * fields - Default is 'all', which returns an array of term objects. 
     544 * fields - Default is 'all', which returns an array of term objects.
    545545 * If 'fields' is 'ids' or 'names', returns an array of
    546546 * integers or strings, respectively.
    547547 *
    548548 * slug - Returns terms whose "slug" matches this value. Default is empty string.
    549  * 
     549 *
    550550 * hierarchical - Whether to include terms that have non-empty descendants
    551551 * (even if 'hide_empty' is set to true).
    552  * 
     552 *
    553553 * search - Returned terms' names will contain the value of 'search',
    554554 * case-insensitive.  Default is an empty string.
     
    564564 *
    565565 * The 'child_of' argument, when used, should be set to the integer of a term ID.  Its default
    566  * is 0.  If set to a non-zero value, all returned terms will be descendants 
    567  * of that term according to the given taxonomy.  Hence 'child_of' is set to 0 
    568  * if more than one taxonomy is passed in $taxonomies, because multiple taxonomies 
     566 * is 0.  If set to a non-zero value, all returned terms will be descendants
     567 * of that term according to the given taxonomy.  Hence 'child_of' is set to 0
     568 * if more than one taxonomy is passed in $taxonomies, because multiple taxonomies
    569569 * make term ancestry ambiguous.
    570570 *
    571571 * The 'parent' argument, when used, should be set to the integer of a term ID.  Its default is
    572572 * the empty string '', which has a different meaning from the integer 0.
    573  * If set to an integer value, all returned terms will have as an immediate 
     573 * If set to an integer value, all returned terms will have as an immediate
    574574 * ancestor the term whose ID is specified by that integer according to the given taxonomy.
    575575 * The 'parent' argument is different from 'child_of' in that a term X is considered a 'parent'
     
    782782    }
    783783    reset ( $terms );
    784    
     784
    785785    $_terms = array();
    786786    if ( 'ids' == $fields ) {
     
    19531953 * @param array $terms The set of terms---either an array of term objects or term IDs---from which those that are descendants of $term_id will be chosen.
    19541954 * @param string $taxonomy The taxonomy which determines the hierarchy of the terms.
    1955  * @return array The subset of $terms that are descendants of $term_id. 
     1955 * @return array The subset of $terms that are descendants of $term_id.
    19561956 */
    19571957function &_get_term_children($term_id, $terms, $taxonomy) {
     
    20372037        $term_items[$id][$row->object_id] = isset($term_items[$id][$row->object_id]) ? ++$term_items[$id][$row->object_id] : 1;
    20382038    }
    2039    
     2039
    20402040    // Touch every ancestor's lookup row for each post in each term
    20412041    foreach ( $term_ids as $term_id ) {
Note: See TracChangeset for help on using the changeset viewer.