Make WordPress Core


Ignore:
Timestamp:
05/24/2009 11:47:49 PM (16 years ago)
Author:
ryan
Message:

Trim tailing whitespace

File:
1 edited

Legend:

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

    r11428 r11450  
    1616 */
    1717function create_initial_taxonomies() {
    18     register_taxonomy( 'category', 'post', array('hierarchical' => true, 'update_count_callback' => '_update_post_term_count', 'label' => __('Categories'), 'query_var' => false, 'rewrite' => false) ) ; 
    19     register_taxonomy( 'post_tag', 'post', array('hierarchical' => false, 'update_count_callback' => '_update_post_term_count', 'label' => __('Post Tags'), 'query_var' => false, 'rewrite' => false) ) ; 
    20     register_taxonomy( 'link_category', 'link', array('hierarchical' => false, 'label' => __('Categories'), 'query_var' => false, 'rewrite' => false) ) ; 
     18    register_taxonomy( 'category', 'post', array('hierarchical' => true, 'update_count_callback' => '_update_post_term_count', 'label' => __('Categories'), 'query_var' => false, 'rewrite' => false) ) ;
     19    register_taxonomy( 'post_tag', 'post', array('hierarchical' => false, 'update_count_callback' => '_update_post_term_count', 'label' => __('Post Tags'), 'query_var' => false, 'rewrite' => false) ) ;
     20    register_taxonomy( 'link_category', 'link', array('hierarchical' => false, 'label' => __('Categories'), 'query_var' => false, 'rewrite' => false) ) ;
    2121}
    2222add_action( 'init', 'create_initial_taxonomies', 0 ); // highest priority
     
    168168    global $wp_taxonomies, $wp_rewrite, $wp;
    169169
    170     if (!is_array($wp_taxonomies)) 
     170    if (!is_array($wp_taxonomies))
    171171        $wp_taxonomies = array();
    172172
     
    526526 * the $args.
    527527 *
    528  * The 'get_terms_orderby' filter passes the ORDER BY clause for the query 
     528 * The 'get_terms_orderby' filter passes the ORDER BY clause for the query
    529529 * along with the $args array.
    530530
     
    534534 * The list of arguments that $args can contain, which will overwrite the defaults:
    535535 *
    536  * orderby - Default is 'name'. Can be name, count, term_group, slug or nothing 
     536 * orderby - Default is 'name'. Can be name, count, term_group, slug or nothing
    537537 * (will use term_id), Passing a custom value other than these will cause it to
    538538 * order based on the custom value.
    539  * 
     539 *
    540540 * order - Default is ASC. Can use DESC.
    541541 *
     
    681681    else if ( 'term_group' == $_orderby )
    682682        $orderby = 't.term_group';
    683     elseif ( empty($_orderby) || 'id' == $_orderby ) 
     683    elseif ( empty($_orderby) || 'id' == $_orderby )
    684684        $orderby = 't.term_id';
    685685
     
    872872
    873873    $term = trim( stripslashes( $term ) );
    874    
     874
    875875    if ( '' === $slug = sanitize_title($term) )
    876876        return 0;
Note: See TracChangeset for help on using the changeset viewer.