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:
parent
7559d9a766
commit
583b8d5cb5
@ -43,7 +43,7 @@ if ( ! is_user_logged_in() ) {
|
|||||||
if ( isset( $_GET['action'] ) ) :
|
if ( isset( $_GET['action'] ) ) :
|
||||||
switch ( $action = $_GET['action'] ) :
|
switch ( $action = $_GET['action'] ) :
|
||||||
case 'ajax-tag-search' :
|
case 'ajax-tag-search' :
|
||||||
if ( !current_user_can( 'manage_categories' ) )
|
if ( !current_user_can( 'edit_posts' ) )
|
||||||
die('-1');
|
die('-1');
|
||||||
|
|
||||||
$s = $_GET['q']; // is this slashed already?
|
$s = $_GET['q']; // is this slashed already?
|
||||||
|
Loading…
Reference in New Issue
Block a user