mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-21 22:15:28 +00:00
Customizer: Fix broken cap check in WP_Customize_Nav_Menus::ajax_search_available_items
.
see #33163. Built from https://develop.svn.wordpress.org/trunk@33191 git-svn-id: http://core.svn.wordpress.org/trunk@33163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
396cc7b2e4
commit
72b383b3d4
@ -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 );
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-beta2-33190';
|
||||
$wp_version = '4.3-beta2-33191';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user