Ticket #13318: 13318.2.diff
File 13318.2.diff, 1.4 KB (added by , 14 years ago) |
---|
-
wp-includes/taxonomy.php
1129 1129 * The 'parent' argument is different from 'child_of' in that a term X is considered a 'parent' 1130 1130 * of term Y only if term X is the father of term Y, not its grandfather or great-grandfather, etc. 1131 1131 * 1132 * The 'cache_domain' argument enables a unique cache key to be produced when this query is stored 1133 * in object cache. For instance, if you are using one of this function's filters to modify the 1134 * query (such as 'terms_clauses'), setting 'cache_domain' to a unique value will not overwrite 1135 * the cache for similar queries. Default value is 'core'. 1136 * 1132 1137 * @package WordPress 1133 1138 * @subpackage Taxonomy 1134 1139 * @since 2.3.0 … … 1161 1166 'hide_empty' => true, 'exclude' => array(), 'exclude_tree' => array(), 'include' => array(), 1162 1167 'number' => '', 'fields' => 'all', 'slug' => '', 'parent' => '', 1163 1168 'hierarchical' => true, 'child_of' => 0, 'get' => '', 'name__like' => '', 1164 'pad_counts' => false, 'offset' => '', 'search' => '' );1169 'pad_counts' => false, 'offset' => '', 'search' => '', 'cache_domain' => 'core' ); 1165 1170 $args = wp_parse_args( $args, $defaults ); 1166 1171 $args['number'] = absint( $args['number'] ); 1167 1172 $args['offset'] = absint( $args['offset'] );