Ticket #42655: 42655.diff
| File 42655.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 /* 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 3942 3954 foreach ( $this->registered_control_types as $control_type ) { 3943 3955 $control = new $control_type( $this, 'temp', array( 3944 3956 'settings' => array(), … … 4101 4113 {{{ data.message }}} 4102 4114 <# } else if ( data.allowOverride ) { #> 4103 4115 <?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 }}' ) ); 4106 4117 ?> 4107 4118 <# } else { #> 4108 4119 <?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 }}' ) ); 4111 4121 ?> 4112 4122 <# } #> 4113 4123 </p>