Customizer: Fix broken cap check in WP_Customize_Nav_Menus::ajax_search_available_items
.
see #33163. git-svn-id: https://develop.svn.wordpress.org/trunk@33191 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
82787b5842
commit
89770100d3
@ -167,7 +167,7 @@ final class WP_Customize_Nav_Menus {
|
||||
public function ajax_search_available_items() {
|
||||
check_ajax_referer( 'customize-menus', 'customize-menus-nonce' );
|
||||
|
||||
if ( current_user_can( 'edit_theme_options' ) ) {
|
||||
if ( ! current_user_can( 'edit_theme_options' ) ) {
|
||||
wp_die( -1 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user