Changeset 6542 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 01/03/2008 01:34:11 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r6373 r6542 7 7 if ( !is_user_logged_in() ) 8 8 die('-1'); 9 10 if ( 'ajax-tag-search' == $_GET['action'] ) { 11 if ( !current_user_can( 'manage_categories' ) ) 12 die('-1'); 13 14 $s = $_GET['q']; // is this slashed already? 15 16 if ( strstr( $s, ',' ) ) 17 die; // it's a multiple tag insert, we won't find anything 18 $results = $wpdb->get_col( "SELECT name FROM $wpdb->terms WHERE name LIKE ('%$s%')" ); 19 echo join( $results, "\n" ); 20 die; 21 } 9 22 10 23 function get_out_now() { exit; }
Note: See TracChangeset
for help on using the changeset viewer.