diff --git wp-includes/taxonomy.php wp-includes/taxonomy.php
index 955369e..3e19590 100644
|
|
function get_term_to_edit( $id, $taxonomy ) { |
1158 | 1158 | * name__like - Returned terms' names will begin with the value of 'name__like', |
1159 | 1159 | * case-insensitive. Default is empty string. |
1160 | 1160 | * |
| 1161 | * description__like - Returned terms' descriptions will begin with the value of |
| 1162 | * 'description__like', case-insensitive. Default is empty string. |
| 1163 | * |
1161 | 1164 | * The argument 'pad_counts', if set to true will include the quantity of a term's |
1162 | 1165 | * children in the quantity of each term's "count" object variable. |
1163 | 1166 | * |
… |
… |
function get_terms($taxonomies, $args = '') { |
1211 | 1214 | $defaults = array('orderby' => 'name', 'order' => 'ASC', |
1212 | 1215 | 'hide_empty' => true, 'exclude' => array(), 'exclude_tree' => array(), 'include' => array(), |
1213 | 1216 | 'number' => '', 'fields' => 'all', 'slug' => '', 'parent' => '', |
1214 | | 'hierarchical' => true, 'child_of' => 0, 'get' => '', 'name__like' => '', |
| 1217 | 'hierarchical' => true, 'child_of' => 0, 'get' => '', 'name__like' => '', 'description__like' => '', |
1215 | 1218 | 'pad_counts' => false, 'offset' => '', 'search' => '', 'cache_domain' => 'core' ); |
1216 | 1219 | $args = wp_parse_args( $args, $defaults ); |
1217 | 1220 | $args['number'] = absint( $args['number'] ); |
… |
… |
function get_terms($taxonomies, $args = '') { |
1346 | 1349 | $where .= $wpdb->prepare( " AND t.name LIKE %s", $name__like . '%' ); |
1347 | 1350 | } |
1348 | 1351 | |
| 1352 | if ( ! empty( $description__like ) ) { |
| 1353 | $description__like = like_escape( $description__like ); |
| 1354 | $where .= $wpdb->prepare( " AND tt.description LIKE %s", $description__like . '%' ); |
| 1355 | } |
| 1356 | |
1349 | 1357 | if ( '' !== $parent ) { |
1350 | 1358 | $parent = (int) $parent; |
1351 | 1359 | $where .= " AND tt.parent = '$parent'"; |