Make WordPress Core

Changeset 33147


Ignore:
Timestamp:
07/09/2015 07:18:39 PM (10 years ago)
Author:
helen
Message:

Toolbar: Don't show the customize link in the admin.

props afragen.
fixes #32945.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/admin-bar.php

    r33130 r33147  
    327327 */
    328328function wp_admin_bar_customize_menu( $wp_admin_bar ) {
    329     // Don't show for users who can't access the customizer.
    330     if ( ! current_user_can( 'customize' ) ) {
     329    // Don't show for users who can't access the customizer or when in the admin.
     330    if ( ! current_user_can( 'customize' ) || is_admin() ) {
    331331        return;
    332332    }
Note: See TracChangeset for help on using the changeset viewer.