Allow users with edit_posts cap to use ajax tag search. Props yoavf. fixes #8651

git-svn-id: https://develop.svn.wordpress.org/trunk@10719 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-03-05 20:30:56 +00:00
parent 9b4e1104a9
commit 3ec5d3c2ef
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ if ( ! is_user_logged_in() ) {
if ( isset( $_GET['action'] ) ) :
switch ( $action = $_GET['action'] ) :
case 'ajax-tag-search' :
if ( !current_user_can( 'manage_categories' ) )
if ( !current_user_can( 'edit_posts' ) )
die('-1');
$s = $_GET['q']; // is this slashed already?