WordPress.org

Make WordPress Core

Changeset 52134


Ignore:
Timestamp:
11/11/2021 04:45:22 AM (2 months ago)
Author:
noisysocks
Message:

Hide Customize from admin bar when using a block theme

Don't add the Customize link to the admin bar when a block theme is activated.

See #54337.

File:
1 edited

Legend:

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

    r51886 r52134  
    429429        && ! current_user_can( get_post_type_object( 'customize_changeset' )->cap->edit_post, $wp_customize->changeset_post_id() )
    430430    ) {
     431        return;
     432    }
     433
     434    // Don't show if a block theme is activated.
     435    if ( wp_is_block_template_theme() ) {
    431436        return;
    432437    }
Note: See TracChangeset for help on using the changeset viewer.