Changeset 49391 for branches/5.4/src/wp-admin/admin-header.php
- Timestamp:
- 10/29/2020 06:39:14 PM (4 years ago)
- Location:
- branches/5.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.4
- Property svn:mergeinfo changed
/branches/5.5 (added) merged: 49373-49379,49381 /trunk merged: 49380,49382-49388
- Property svn:mergeinfo changed
-
branches/5.4/src/wp-admin/admin-header.php
r47219 r49391 83 83 ?> 84 84 <script type="text/javascript"> 85 addLoadEvent = function(func){if(typeof jQuery!= "undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};86 var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative'); ?>',87 pagenow = '<?php echo $current_screen->id; ?>',88 typenow = '<?php echo $current_screen->post_type; ?>',89 adminpage = '<?php echo $admin_body_class; ?>',90 thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>',91 decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>',85 addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(document).ready(func);else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; 86 var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', 87 pagenow = '<?php echo esc_js( $current_screen->id ); ?>', 88 typenow = '<?php echo esc_js( $current_screen->post_type ); ?>', 89 adminpage = '<?php echo esc_js( $admin_body_class ); ?>', 90 thousandsSeparator = '<?php echo esc_js( $wp_locale->number_format['thousands_sep'] ); ?>', 91 decimalPoint = '<?php echo esc_js( $wp_locale->number_format['decimal_point'] ); ?>', 92 92 isRtl = <?php echo (int) is_rtl(); ?>; 93 93 </script>
Note: See TracChangeset
for help on using the changeset viewer.