Make WordPress Core

Changeset 33191


Ignore:
Timestamp:
07/13/2015 02:30:21 PM (9 years ago)
Author:
ocean90
Message:

Customizer: Fix broken cap check in WP_Customize_Nav_Menus::ajax_search_available_items.

see #33163.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r33189 r33191  
    168168        check_ajax_referer( 'customize-menus', 'customize-menus-nonce' );
    169169
    170         if ( current_user_can( 'edit_theme_options' ) ) {
     170        if ( ! current_user_can( 'edit_theme_options' ) ) {
    171171            wp_die( -1 );
    172172        }
Note: See TracChangeset for help on using the changeset viewer.