Ticket #8651: ajax-tag-search.patch
File ajax-tag-search.patch, 440 bytes (added by , 16 years ago) |
---|
-
admin-ajax.php
40 40 if ( isset( $_GET['action'] ) ) : 41 41 switch ( $action = $_GET['action'] ) : 42 42 case 'ajax-tag-search' : 43 if ( !current_user_can( ' manage_categories' ) )43 if ( !current_user_can( 'edit_posts' ) ) 44 44 die('-1'); 45 45 46 46 $s = $_GET['q']; // is this slashed already?