Make WordPress Core

Ticket #38762: 38762.0.diff

File 38762.0.diff, 1.8 KB (added by westonruter, 8 years ago)
  • src/wp-admin/customize.php

    diff --git src/wp-admin/customize.php src/wp-admin/customize.php
    index 0a1f9b3..c90f114 100644
    do_action( 'customize_controls_print_scripts' ); 
    191191                                <?php endforeach; ?>
    192192                        </div>
    193193                        <?php endif; ?>
    194                         <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Hide Controls' ); ?>">
     194                        <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php echo esc_attr( _x( 'Hide Controls', 'label for hide controls button without length constraints' ) ); ?>">
    195195                                <span class="collapse-sidebar-arrow"></span>
    196                                 <span class="collapse-sidebar-label"><?php _e( 'Hide Controls' ); ?></span>
     196                                <span class="collapse-sidebar-label"><?php _ex( 'Hide Controls', 'short (~12 characters) label for hide controls button' ); ?></span>
    197197                        </button>
    198198                </div>
    199199        </form>
  • src/wp-includes/script-loader.php

    diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
    index c64920a..fadfb28 100644
    function wp_default_scripts( &$scripts ) { 
    467467                'notAllowed'         => __( 'Sorry, you are not allowed to customize this site.' ),
    468468                'previewIframeTitle' => __( 'Site Preview' ),
    469469                'loginIframeTitle'   => __( 'Session expired' ),
    470                 'collapseSidebar'    => __( 'Hide Controls' ),
    471                 'expandSidebar'      => __( 'Show Controls' ),
     470                'collapseSidebar'    => _x( 'Hide Controls', 'label for hide controls button without length constraints' ),
     471                'expandSidebar'      => _x( 'Show Controls', 'label for hide controls button without length constraints' ),
    472472                'untitledBlogName'   => __( '(Untitled)' ),
    473473                // Used for overriding the file types allowed in plupload.
    474474                'allowedFiles'       => __( 'Allowed Files' ),