Ticket #8214: 8214.002.diff
File 8214.002.diff, 1.5 KB (added by , 14 years ago) |
---|
-
wp-includes/taxonomy.php
1076 1076 * name__like - Returned terms' names will begin with the value of 'name__like', 1077 1077 * case-insensitive. Default is empty string. 1078 1078 * 1079 * description__like - Returned terms' descriptions will begin with the value of 1080 * 'description__like', case-insensitive. Default is empty string. 1081 * 1079 1082 * The argument 'pad_counts', if set to true will include the quantity of a term's 1080 1083 * children in the quantity of each term's "count" object variable. 1081 1084 * … … 1127 1130 'hide_empty' => true, 'exclude' => array(), 'exclude_tree' => array(), 'include' => array(), 1128 1131 'number' => '', 'fields' => 'all', 'slug' => '', 'parent' => '', 1129 1132 'hierarchical' => true, 'child_of' => 0, 'get' => '', 'name__like' => '', 1130 'pad_counts' => false, 'offset' => '', 'search' => ''); 1133 'description__like' => '', 'pad_counts' => false, 'offset' => '', 1134 'search' => ''); 1131 1135 $args = wp_parse_args( $args, $defaults ); 1132 1136 $args['number'] = absint( $args['number'] ); 1133 1137 $args['offset'] = absint( $args['offset'] ); … … 1253 1257 if ( !empty($name__like) ) 1254 1258 $where .= " AND t.name LIKE '" . like_escape( $name__like ) . "%'"; 1255 1259 1260 if ( !empty($description__like) ) 1261 $where .= " AND tt.description LIKE '" . like_escape( $description__like ) . "%'"; 1262 1256 1263 if ( '' !== $parent ) { 1257 1264 $parent = (int) $parent; 1258 1265 $where .= " AND tt.parent = '$parent'";