Changeset 41352 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 09/08/2017 07:10:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r41329 r41352 673 673 674 674 $scripts->add( 'admin-widgets', "/wp-admin/js/widgets$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable' ), false, 1 ); 675 $scripts->add_inline_script( 'admin-widgets', sprintf( 'wpWidgets.l10n = %s;', wp_json_encode( array( 676 'save' => __( 'Save' ), 677 'saved' => __( 'Saved' ), 678 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ), 679 ) ) ) ); 680 675 681 $scripts->add( 'media-widgets', "/wp-admin/js/widgets/media-widgets$suffix.js", array( 'jquery', 'media-models', 'media-views', 'wp-api-request' ) ); 676 682 $scripts->add_inline_script( 'media-widgets', 'wp.mediaWidgets.init();', 'after' );
Note: See TracChangeset
for help on using the changeset viewer.