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:
parent
9b4e1104a9
commit
3ec5d3c2ef
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user