Make WordPress Core


Ignore:
Timestamp:
03/29/2022 07:07:15 PM (3 years ago)
Author:
audrasjb
Message:

Customizer: When a block theme is active, add an information about Site Editor in the Customizer.

This change adds an information notice to the customizer when a block theme is active and the customizer is also available (for example when a plugin activates it), to encourage people to use the Site Editor for the best full site customization experience.

Props ironprogrammer, antonvlasenko, Clorith, audrasjb, psmits1567, tobifjellner, costdev, webcommsat.
Fixes #54939.

File:
1 edited

Legend:

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

    r52053 r53024  
    223223            </div>
    224224            <div class="wp-full-overlay-sidebar-content" tabindex="-1">
    225                 <div id="customize-info" class="accordion-section customize-info">
     225                <div id="customize-info" class="accordion-section customize-info" data-block-theme="<?php echo (int) wp_is_block_theme(); ?>">
    226226                    <div class="accordion-section-title">
    227227                        <span class="preview-notice">
     
    236236                        <p>
    237237                            <?php
    238                             _e( 'The Customizer allows you to preview changes to your site before publishing them. You can navigate to different pages on your site within the preview. Edit shortcuts are shown for some editable elements.' );
     238                            _e( 'The Customizer allows you to preview changes to your site before publishing them. You can navigate to different pages on your site within the preview. Edit shortcuts are shown for some editable elements. The Customizer is intended for use with non-block themes.' );
    239239                            ?>
    240240                        </p>
Note: See TracChangeset for help on using the changeset viewer.