Changeset 48266
- Timestamp:
- 07/01/2020 07:28:14 PM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
-
js/_enqueues/lib/pointer.js (modified) (2 diffs)
-
wp-includes/script-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/pointer.js
r47122 r48266 2 2 * @output wp-includes/js/wp-pointer.js 3 3 */ 4 5 /* global wpPointerL10n */6 4 7 5 /** … … 20 18 }, 21 19 buttons: function( event, t ) { 22 var close = ( wpPointerL10n ) ? wpPointerL10n.dismiss : 'Dismiss', 23 button = $('<a class="close" href="#">' + close + '</a>'); 20 var button = $('<a class="close" href="#"></a>').text( wp.i18n.__( 'Dismiss' ) ); 24 21 25 22 return button.bind( 'click.pointer', function(e) { -
trunk/src/wp-includes/script-loader.php
r48265 r48266 689 689 ); 690 690 691 $scripts->add( 'wp-pointer', "/wp-includes/js/wp-pointer$suffix.js", array( 'jquery-ui-widget', 'jquery-ui-position' ), '20111129a', 1 ); 692 did_action( 'init' ) && $scripts->localize( 693 'wp-pointer', 694 'wpPointerL10n', 695 array( 696 'dismiss' => __( 'Dismiss' ), 697 ) 698 ); 691 $scripts->add( 'wp-pointer', "/wp-includes/js/wp-pointer$suffix.js", array( 'jquery-ui-widget', 'jquery-ui-position' ), false, 1 ); 692 $scripts->set_translations( 'wp-pointer' ); 699 693 700 694 $scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array( 'heartbeat' ), false, 1 );
Note: See TracChangeset
for help on using the changeset viewer.