Make WordPress Core


Ignore:
Timestamp:
01/23/2016 11:14:10 PM (9 years ago)
Author:
westonruter
Message:

Customizer: Use "(Untitled)" as site title if blogname is empty.

Fixes a layout issue in the Customizer UI. Also de-duplicate title display logic, outputting "Loading..." as site title in PHP with actual title being set upon Customizer ready. Also update the site title in response to a blogname setting change as opposed to input DOM events on the control.

Fixes #35579.

File:
1 edited

Legend:

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

    r34269 r36388  
    133133                <div class="accordion-section-title">
    134134                    <span class="preview-notice"><?php
    135                         echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name' ) . '</strong>' );
     135                        echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . __( 'Loading&hellip;' ) . '</strong>' );
    136136                    ?></span>
    137137                    <button class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>
Note: See TracChangeset for help on using the changeset viewer.