Ticket #8214: 8214.diff
File 8214.diff, 1.5 KB (added by , 12 years ago) |
---|
-
wp-includes/taxonomy.php
1110 1110 * name__like - Returned terms' names will begin with the value of 'name__like', 1111 1111 * case-insensitive. Default is empty string. 1112 1112 * 1113 * description__like - Returned terms' descriptions will begin with the value of 1114 * 'description__like', case-insensitive. Default is empty string. 1115 * 1113 1116 * The argument 'pad_counts', if set to true will include the quantity of a term's 1114 1117 * children in the quantity of each term's "count" object variable. 1115 1118 * … … 1161 1164 'hide_empty' => true, 'exclude' => array(), 'exclude_tree' => array(), 'include' => array(), 1162 1165 'number' => '', 'fields' => 'all', 'slug' => '', 'parent' => '', 1163 1166 'hierarchical' => true, 'child_of' => 0, 'get' => '', 'name__like' => '', 1164 ' pad_counts' => false, 'offset' => '', 'search' => '');1167 'description__like' => '', 'pad_counts' => false, 'offset' => '', 'search' => ''); 1165 1168 $args = wp_parse_args( $args, $defaults ); 1166 1169 $args['number'] = absint( $args['number'] ); 1167 1170 $args['offset'] = absint( $args['offset'] ); … … 1287 1290 if ( !empty($name__like) ) 1288 1291 $where .= " AND t.name LIKE '" . like_escape( $name__like ) . "%'"; 1289 1292 1293 if ( !empty($description__like) ) 1294 $where .= " AND tt.description LIKE '" . like_escape( $description__like ) . "%'"; 1295 1290 1296 if ( '' !== $parent ) { 1291 1297 $parent = (int) $parent; 1292 1298 $where .= " AND tt.parent = '$parent'";