Make WordPress Core

Ticket #34747: b30b28.diff

File b30b28.diff, 1.7 KB (added by ryankienstra, 9 years ago)
  • src/wp-admin/customize.php

    diff --git src/wp-admin/customize.php src/wp-admin/customize.php
    index 7f667d3..bbaf5a8 100644
    do_action( 'customize_controls_print_scripts' ); 
    133133                                <div class="accordion-section-title">
    134134                                        <span class="preview-notice"><?php
    135135                                                echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name' ) . '</strong>' );
    136                                         ?></span>
    137                                         <button class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>
     136                                        ?></span><?php
     137
     138                                        /**
     139                                         * Filter the description in the primary Customizer panel.
     140                                         *
     141                                         * @since 4.6
     142                                         *
     143                                         * @param string $customizer_description Appears at top of primary Customizer panel, under Customizer title.
     144                                         */
     145                                        $customizer_description = apply_filters( 'customize_root_panel_description', __( 'The Customizer allows you to preview changes to your site before publishing them. You can also navigate to different pages on your site to preview them.' ) );
     146                                        if ( ! empty( $customizer_description ) ) {
     147                                                ?>
     148                                                <button class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false">
     149                                                        <span class="screen-reader-text"><?php _e( 'Help' ); ?></span>
     150                                                </button>
     151                                                <?php
     152                                        }
     153                                        ?>
    138154                                </div>
    139155                                <div class="customize-panel-description"><?php
    140                                         _e( 'The Customizer allows you to preview changes to your site before publishing them. You can also navigate to different pages on your site to preview them.' );
     156                                        echo $customizer_description;
    141157                                ?></div>
    142158                        </div>
    143159