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

git-svn-id: http://svn.automattic.com/wordpress/trunk@10719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-03-05 20:30:56 +00:00
parent 7559d9a766
commit 583b8d5cb5
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?