Changeset 5756
- Timestamp:
- 06/25/2007 09:28:19 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r5741 r5756 227 227 'hide_empty' => true, 'exclude' => '', 'include' => '', 228 228 'number' => '', 'fields' => 'all', 'slug' => '', 'parent' => '', 229 'hierarchical' => true, 'child_of' => 0, 'get' => '' );229 'hierarchical' => true, 'child_of' => 0, 'get' => '', 'name_like' => ''); 230 230 $args = wp_parse_args( $args, $defaults ); 231 231 $args['number'] = (int) $args['number']; … … 309 309 $where = " AND t.slug = '$slug'"; 310 310 } 311 312 if ( !empty($name_like) ) 313 $where = " AND t.name LIKE '{$name_like}%'"; 311 314 312 315 if ( '' != $parent ) { -
trunk/xmlrpc.php
r5729 r5756 547 547 } 548 548 549 $category_suggestions = $wpdb->get_results(" 550 SELECT cat_ID category_id, 551 cat_name category_name 552 FROM {$wpdb->categories} 553 WHERE cat_name LIKE '{$category}%' 554 {$limit} 555 "); 549 $category_suggestions = get_categories("get=all&number=$max_results&name_like=$category"); 556 550 557 551 return($category_suggestions);
Note: See TracChangeset
for help on using the changeset viewer.