Changeset 42538 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 01/22/2018 06:27:41 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r42536 r42538 3987 3987 */ 3988 3988 public function render_control_templates() { 3989 if ( $this->branching() ) { 3990 $l10n = array( 3991 /* translators: %s: User who is customizing the changeset in customizer. */ 3992 'locked' => __( '%s is already customizing this changeset. Please wait until they are done to try customizing. Your latest changes have been autosaved.' ), 3993 /* translators: %s: User who is customizing the changeset in customizer. */ 3994 'locked_allow_override' => __( '%s is already customizing this changeset. Do you want to take over?' ), 3995 ); 3996 } else { 3997 $l10n = array( 3998 /* translators: %s: User who is customizing the changeset in customizer. */ 3999 'locked' => __( '%s is already customizing this site. Please wait until they are done to try customizing. Your latest changes have been autosaved.' ), 4000 /* translators: %s: User who is customizing the changeset in customizer. */ 4001 'locked_allow_override' => __( '%s is already customizing this site. Do you want to take over?' ), 4002 ); 4003 } 4004 3989 4005 foreach ( $this->registered_control_types as $control_type ) { 3990 4006 $control = new $control_type( … … 4151 4167 <# } else if ( data.allowOverride ) { #> 4152 4168 <?php 4153 /* translators: %s: User who is customizing the changeset in customizer. */ 4154 printf( __( '%s is already customizing this site. Do you want to take over?' ), '{{ data.lockUser.name }}' ); 4169 echo esc_html( sprintf( $l10n['locked_allow_override'], '{{ data.lockUser.name }}' ) ); 4155 4170 ?> 4156 4171 <# } else { #> 4157 4172 <?php 4158 /* translators: %s: User who is customizing the changeset in customizer. */ 4159 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 }}' ); 4173 echo esc_html( sprintf( $l10n['locked'], '{{ data.lockUser.name }}' ) ); 4160 4174 ?> 4161 4175 <# } #>
Note: See TracChangeset
for help on using the changeset viewer.