Changeset 55553 for trunk/src/wp-includes/widgets/class-wp-widget-text.php
- Timestamp:
- 03/15/2023 11:36:52 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-text.php
r55276 r55553 56 56 } 57 57 $this->registered = true; 58 59 wp_add_inline_script( 'text-widgets', sprintf( 'wp.textWidgets.idBases.push( %s );', wp_json_encode( $this->id_base ) ) );60 58 61 59 if ( $this->is_preview() ) { … … 437 435 wp_enqueue_media(); 438 436 wp_enqueue_script( 'text-widgets' ); 437 wp_add_inline_script( 'text-widgets', sprintf( 'wp.textWidgets.idBases.push( %s );', wp_json_encode( $this->id_base ) ) ); 439 438 wp_add_inline_script( 'text-widgets', 'wp.textWidgets.init();', 'after' ); 440 439 }
Note: See TracChangeset
for help on using the changeset viewer.