Changeset 6026 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 09/03/2007 11:32:58 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r6007 r6026 19 19 * $wp_taxonomies global variable. 20 20 * 21 * @example 21 * @example 22 22 * <?php $taxonomies = get_object_taxonomies('post'); ?> 23 23 * Should result in <pre>Array( … … 86 86 global $wp_taxonomies; 87 87 88 return isset($wp_taxonomies[$taxonomy]); 88 return isset($wp_taxonomies[$taxonomy]); 89 89 } 90 90 … … 116 116 * 117 117 * 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 119 119 * taxonomy name and another string for the object type. 120 120 * … … 164 164 * be returned. 165 165 * 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 167 167 * functions or using the database by using $args with either ASC or DESC array. The value should 168 168 * be in the key named 'order'. … … 214 214 215 215 /** 216 * get_term() - 217 * 218 * 216 * get_term() - 217 * 218 * 219 219 * 220 220 * @package Taxonomy … … 266 266 267 267 /** 268 * get_term_by() - 269 * 270 * 268 * get_term_by() - 269 * 270 * 271 271 * 272 272 * @package Taxonomy 273 273 * @subpackage Term 274 274 * @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 278 278 * @param string $output Either OBJECT, ARRAY_A, or ARRAY_N 279 279 * @return mixed Term Row from database … … 575 575 $term->$field = sanitize_term_field($field, $term->$field, $term->term_id, $taxonomy, $context); 576 576 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); 578 578 } 579 579 … … 701 701 * @param int|array $object_id The id of the object(s)) to retrieve for. 702 702 * @param string|array $taxonomies The taxonomies to retrieve terms from. 703 * @return array The requested term data. 703 * @return array The requested term data. 704 704 */ 705 705 function wp_get_object_terms($object_ids, $taxonomies, $args = array()) { … … 778 778 $slug = sanitize_title($name); 779 779 780 $term_group = 0; 780 $term_group = 0; 781 781 if ( $alias_of ) { 782 782 $alias = $wpdb->fetch_row("SELECT term_id, term_group FROM $wpdb->terms WHERE slug = '$alias_of'"); … … 1004 1004 } 1005 1005 1006 foreach ( $taxonomies as $taxonomy ) { 1006 foreach ( $taxonomies as $taxonomy ) { 1007 1007 wp_cache_delete('all_ids', $taxonomy); 1008 1008 wp_cache_delete('get', $taxonomy);
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)