Changeset 41245 for trunk/src/wp-includes/widgets/class-wp-widget-text.php
- Timestamp:
- 08/13/2017 05:24:14 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-text.php
r41162 r41245 56 56 $this->registered = true; 57 57 58 wp_add_inline_script( 'text-widgets', sprintf( 'wp.textWidgets.idBases.push( %s );', wp_json_encode( $this->id_base ) ) ); 59 58 60 // Note that the widgets component in the customizer will also do the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts(). 59 61 add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) ); 60 62 61 63 // Note that the widgets component in the customizer will also do the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts(). 62 add_action( 'admin_footer-widgets.php', array( $this, 'render_control_template_scripts' ) );64 add_action( 'admin_footer-widgets.php', array( 'WP_Widget_Text', 'render_control_template_scripts' ) ); 63 65 } 64 66 … … 377 379 * 378 380 * @since 4.8.0 379 */ 380 public function render_control_template_scripts() { 381 * @since 4.9.0 The method is now static. 382 */ 383 public static function render_control_template_scripts() { 381 384 $dismissed_pointers = explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) ); 382 385 ?>
Note: See TracChangeset
for help on using the changeset viewer.