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:
Dominik Schilling 2015-07-13 14:31:24 +00:00
parent 396cc7b2e4
commit 72b383b3d4
2 changed files with 2 additions and 2 deletions

View File

@ -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 );
}

View File

@ -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.