Ticket #42655: 42655.2.diff
| File 42655.2.diff, 2.2 KB (added by , 8 years ago) |
|---|
-
src/wp-includes/class-wp-customize-manager.php
3939 3939 * @since 4.1.0 3940 3940 */ 3941 3941 public function render_control_templates() { 3942 if ( $this->branching() ) { 3943 $l10n = array( 3944 /* translators: %s: User who is customizing the changeset in customizer. */ 3945 'locked' => __( '%s is already customizing this changeset. Please wait until they are done to try customizing. Your latest changes have been autosaved.' ), 3946 /* translators: %s: User who is customizing the changeset in customizer. */ 3947 'locked_allow_override' => __( '%s is already customizing this changeset. Do you want to take over?' ), 3948 ); 3949 } else { 3950 $l10n = array( 3951 /* translators: %s: User who is customizing the changeset in customizer. */ 3952 'locked' => __( '%s is already customizing this site. Please wait until they are done to try customizing. Your latest changes have been autosaved.' ), 3953 /* translators: %s: User who is customizing the changeset in customizer. */ 3954 'locked_allow_override' => __( '%s is already customizing this site. Do you want to take over?' ), 3955 ); 3956 } 3957 3942 3958 foreach ( $this->registered_control_types as $control_type ) { 3943 3959 $control = new $control_type( $this, 'temp', array( 3944 3960 'settings' => array(), … … 4101 4117 {{{ data.message }}} 4102 4118 <# } else if ( data.allowOverride ) { #> 4103 4119 <?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 }}' ); 4120 echo esc_html( sprintf( $l10n['locked_allow_override'], '{{ data.lockUser.name }}' ) ); 4106 4121 ?> 4107 4122 <# } else { #> 4108 4123 <?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 }}' ); 4124 echo esc_html( sprintf( $l10n['locked'], '{{ data.lockUser.name }}' ) ); 4111 4125 ?> 4112 4126 <# } #> 4113 4127 </p>