Changeset 41374 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 09/12/2017 07:02:49 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r41372 r41374 349 349 add_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ) ); 350 350 351 // Render Panel, Section, and Control templates.351 // Render Common, Panel, Section, and Control templates. 352 352 add_action( 'customize_controls_print_footer_scripts', array( $this, 'render_panel_templates' ), 1 ); 353 353 add_action( 'customize_controls_print_footer_scripts', array( $this, 'render_section_templates' ), 1 ); … … 2356 2356 $response = array( 2357 2357 'setting_validities' => $setting_validities, 2358 'message' => sprintf( _n( 'There is %s invalid setting.', 'There are %s invalid settings.', $invalid_setting_count ), number_format_i18n( $invalid_setting_count ) ), 2358 /* translators: placeholder is number of invalid settings */ 2359 'message' => sprintf( _n( 'Unable to save due to %s invalid setting.', 'Unable to save due to %s invalid settings.', $invalid_setting_count ), number_format_i18n( $invalid_setting_count ) ), 2359 2360 ); 2360 2361 return new WP_Error( 'transaction_fail', '', $response ); … … 3184 3185 $control->print_template(); 3185 3186 } 3187 3188 ?> 3189 <script type="text/html" id="tmpl-customize-notification"> 3190 <li class="notice notice-{{ data.type || 'info' }} {{ data.alt ? 'notice-alt' : '' }} {{ data.dismissible ? 'is-dismissible' : '' }}" data-code="{{ data.code }}" data-type="{{ data.type }}"> 3191 {{{ data.message || data.code }}} 3192 <# if ( data.dismissible ) { #> 3193 <button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php _e( 'Dismiss' ); ?></span></button> 3194 <# } #> 3195 </li> 3196 </script> 3197 3198 <?php 3199 /* The following template is obsolete in core but retained for plugins. */ 3186 3200 ?> 3187 3201 <script type="text/html" id="tmpl-customize-control-notifications">
Note: See TracChangeset
for help on using the changeset viewer.