WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2007 11:32:58 PM (13 years ago)
Author:
ryan
Message:

Remove trailing whitespace

File:
1 edited

Legend:

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

    r6007 r6026  
    1919 * $wp_taxonomies global variable.
    2020 *
    21  * @example 
     21 * @example
    2222 *      <?php $taxonomies = get_object_taxonomies('post'); ?>
    2323 *      Should result in <pre>Array(
     
    8686    global $wp_taxonomies;
    8787
    88     return isset($wp_taxonomies[$taxonomy]);   
     88    return isset($wp_taxonomies[$taxonomy]);
    8989}
    9090
     
    116116 *
    117117 * A simple function for creating or modifying a taxonomy object based on the parameters given.
    118  * The function will accept an array (third optional parameter), along with strings for the 
     118 * The function will accept an array (third optional parameter), along with strings for the
    119119 * taxonomy name and another string for the object type.
    120120 *
     
    164164 * be returned.
    165165 *
    166  * It is possible to change the order that object_ids is returned by either using PHP sort family 
     166 * It is possible to change the order that object_ids is returned by either using PHP sort family
    167167 * functions or using the database by using $args with either ASC or DESC array. The value should
    168168 * be in the key named 'order'.
     
    214214
    215215/**
    216  * get_term() - 
    217  *
    218  * 
     216 * get_term() -
     217 *
     218 *
    219219 *
    220220 * @package Taxonomy
     
    266266
    267267/**
    268  * get_term_by() - 
    269  *
    270  * 
     268 * get_term_by() -
     269 *
     270 *
    271271 *
    272272 * @package Taxonomy
    273273 * @subpackage Term
    274274 * @global object $wpdb Database Query
    275  * @param string $field 
    276  * @param string $value 
    277  * @param string $taxonomy 
     275 * @param string $field
     276 * @param string $value
     277 * @param string $taxonomy
    278278 * @param string $output Either OBJECT, ARRAY_A, or ARRAY_N
    279279 * @return mixed Term Row from database
     
    575575            $term->$field = sanitize_term_field($field, $term->$field, $term->term_id, $taxonomy, $context);
    576576        else
    577             $term[$field] = sanitize_term_field($field, $term[$field], $term['term_id'], $taxonomy, $context); 
     577            $term[$field] = sanitize_term_field($field, $term[$field], $term['term_id'], $taxonomy, $context);
    578578    }
    579579
     
    701701 * @param int|array $object_id The id of the object(s)) to retrieve for.
    702702 * @param string|array $taxonomies The taxonomies to retrieve terms from.
    703  * @return array The requested term data.           
     703 * @return array The requested term data.
    704704 */
    705705function wp_get_object_terms($object_ids, $taxonomies, $args = array()) {
     
    778778        $slug = sanitize_title($name);
    779779
    780     $term_group = 0;   
     780    $term_group = 0;
    781781    if ( $alias_of ) {
    782782        $alias = $wpdb->fetch_row("SELECT term_id, term_group FROM $wpdb->terms WHERE slug = '$alias_of'");
     
    10041004    }
    10051005
    1006     foreach ( $taxonomies as $taxonomy ) { 
     1006    foreach ( $taxonomies as $taxonomy ) {
    10071007        wp_cache_delete('all_ids', $taxonomy);
    10081008        wp_cache_delete('get', $taxonomy);
Note: See TracChangeset for help on using the changeset viewer.