WordPress.org

Make WordPress Core

Ticket #42655: 42655.diff

File 42655.diff, 2.2 KB (added by dlh, 2 years ago)
  • src/wp-includes/class-wp-customize-manager.php

     
    39393939         * @since 4.1.0
    39403940         */
    39413941        public function render_control_templates() {
     3942                if ( $this->branching() ) {
     3943                        /* translators: %s: User who is customizing the changeset in customizer. */
     3944                        $locked = __( '%s is already customizing this changeset. Please wait until they are done to try customizing. Your latest changes have been autosaved.' );
     3945                        /* translators: %s: User who is customizing the changeset in customizer. */
     3946                        $locked_allow_override = __( '%s is already customizing this changeset. Do you want to take over?' );
     3947                } else {
     3948                        /* translators: %s: User who is customizing the changeset in customizer. */
     3949                        $locked = __( '%s is already customizing this site. Please wait until they are done to try customizing. Your latest changes have been autosaved.' );
     3950                        /* translators: %s: User who is customizing the changeset in customizer. */
     3951                        $locked_allow_override = __( '%s is already customizing this site. Do you want to take over?' );
     3952                }
     3953
    39423954                foreach ( $this->registered_control_types as $control_type ) {
    39433955                        $control = new $control_type( $this, 'temp', array(
    39443956                                'settings' => array(),
     
    41014113                                                        {{{ data.message }}}
    41024114                                                <# } else if ( data.allowOverride ) { #>
    41034115                                                        <?php
    4104                                                         /* translators: %s: User who is customizing the changeset in customizer. */
    4105                                                         printf( __( '%s is already customizing this site. Do you want to take over?' ), '{{ data.lockUser.name }}' );
     4116                                                        echo esc_html( sprintf( $locked_allow_override, '{{ data.lockUser.name }}' ) );
    41064117                                                        ?>
    41074118                                                <# } else { #>
    41084119                                                        <?php
    4109                                                         /* translators: %s: User who is customizing the changeset in customizer. */
    4110                                                         printf( __( '%s is already customizing this site. Please wait until they are done to try customizing. Your latest changes have been autosaved.' ), '{{ data.lockUser.name }}' );
     4120                                                        echo esc_html( sprintf( $locked, '{{ data.lockUser.name }}' ) );
    41114121                                                        ?>
    41124122                                                <# } #>
    41134123                                        </p>