Changeset 25241 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 09/04/2013 07:40:17 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r25169 r25241 1167 1167 * case-insensitive. Default is an empty string. 1168 1168 * 1169 * name__like - Returned terms' names will begin withthe value of 'name__like',1169 * name__like - Returned terms' names will contain the value of 'name__like', 1170 1170 * case-insensitive. Default is empty string. 1171 * 1172 * description__like - Returned terms' descriptions will contain the value of 1173 * 'description__like', case-insensitive. Default is empty string. 1171 1174 * 1172 1175 * The argument 'pad_counts', if set to true will include the quantity of a term's … … 1223 1226 'hide_empty' => true, 'exclude' => array(), 'exclude_tree' => array(), 'include' => array(), 1224 1227 'number' => '', 'fields' => 'all', 'slug' => '', 'parent' => '', 1225 'hierarchical' => true, 'child_of' => 0, 'get' => '', 'name__like' => '', 1228 'hierarchical' => true, 'child_of' => 0, 'get' => '', 'name__like' => '', 'description__like' => '', 1226 1229 'pad_counts' => false, 'offset' => '', 'search' => '', 'cache_domain' => 'core' ); 1227 1230 $args = wp_parse_args( $args, $defaults ); … … 1346 1349 if ( !empty($name__like) ) { 1347 1350 $name__like = like_escape( $name__like ); 1348 $where .= $wpdb->prepare( " AND t.name LIKE %s", $name__like . '%' ); 1351 $where .= $wpdb->prepare( " AND t.name LIKE %s", '%' . $name__like . '%' ); 1352 } 1353 1354 if ( ! empty( $description__like ) ) { 1355 $description__like = like_escape( $description__like ); 1356 $where .= $wpdb->prepare( " AND tt.description LIKE %s", '%' . $description__like . '%' ); 1349 1357 } 1350 1358
Note: See TracChangeset
for help on using the changeset viewer.