Changeset 49375 for branches/5.5
- Timestamp:
- 10/29/2020 04:56:34 PM (4 years ago)
- Location:
- branches/5.5/src/wp-admin
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5/src/wp-admin/admin-header.php
r48955 r49375 83 83 <script type="text/javascript"> 84 84 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();}}}; 85 var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative'); ?>',86 pagenow = '<?php echo $current_screen->id; ?>',87 typenow = '<?php echo $current_screen->post_type; ?>',88 adminpage = '<?php echo $admin_body_class; ?>',89 thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>',90 decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>',85 var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', 86 pagenow = '<?php echo esc_js( $current_screen->id ); ?>', 87 typenow = '<?php echo esc_js( $current_screen->post_type ); ?>', 88 adminpage = '<?php echo esc_js( $admin_body_class ); ?>', 89 thousandsSeparator = '<?php echo esc_js( $wp_locale->number_format['thousands_sep'] ); ?>', 90 decimalPoint = '<?php echo esc_js( $wp_locale->number_format['decimal_point'] ); ?>', 91 91 isRtl = <?php echo (int) is_rtl(); ?>; 92 92 </script> -
branches/5.5/src/wp-admin/includes/class-custom-image-header.php
r48110 r49375 344 344 <script type="text/javascript"> 345 345 (function($){ 346 var default_color = '<?php echo $default_color; ?>',346 var default_color = '<?php echo esc_js( $default_color ); ?>', 347 347 header_text_fields; 348 348 -
branches/5.5/src/wp-admin/includes/media.php
r48586 r49375 531 531 <script type="text/javascript"> 532 532 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();}}}; 533 var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative'); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',533 var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup', 534 534 isRtl = <?php echo (int) is_rtl(); ?>; 535 535 </script> -
branches/5.5/src/wp-admin/includes/ms.php
r48508 r49375 843 843 ?> 844 844 <script type="text/javascript"> 845 var tb_pathToImage = "<?php echo includes_url( 'js/thickbox/loadingAnimation.gif', 'relative'); ?>";845 var tb_pathToImage = "<?php echo esc_js( includes_url( 'js/thickbox/loadingAnimation.gif', 'relative' ) ); ?>"; 846 846 </script> 847 847 <?php -
branches/5.5/src/wp-admin/includes/template.php
r48915 r49375 2019 2019 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();}}}; 2020 2020 function tb_close(){var win=window.dialogArguments||opener||parent||top;win.tb_remove();} 2021 var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative'); ?>',2022 pagenow = '<?php echo $current_screen->id; ?>',2023 typenow = '<?php echo $current_screen->post_type; ?>',2024 adminpage = '<?php echo $admin_body_class; ?>',2025 thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>',2026 decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>',2021 var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', 2022 pagenow = '<?php echo esc_js( $current_screen->id ); ?>', 2023 typenow = '<?php echo esc_js( $current_screen->post_type ); ?>', 2024 adminpage = '<?php echo esc_js( $admin_body_class ); ?>', 2025 thousandsSeparator = '<?php echo esc_js( $wp_locale->number_format['thousands_sep'] ); ?>', 2026 decimalPoint = '<?php echo esc_js( $wp_locale->number_format['decimal_point'] ); ?>', 2027 2027 isRtl = <?php echo (int) is_rtl(); ?>; 2028 2028 </script> -
branches/5.5/src/wp-admin/media-new.php
r47198 r49375 78 78 79 79 <script type="text/javascript"> 80 var post_id = <?php echo $post_id; ?>, shortform = 3;80 var post_id = <?php echo absint( $post_id ); ?>, shortform = 3; 81 81 </script> 82 <input type="hidden" name="post_id" id="post_id" value="<?php echo $post_id; ?>" />82 <input type="hidden" name="post_id" id="post_id" value="<?php echo absint( $post_id ); ?>" /> 83 83 <?php wp_nonce_field( 'media-form' ); ?> 84 84 <div id="media-items" class="hide-if-no-js"></div> -
branches/5.5/src/wp-admin/network/site-users.php
r47855 r49375 221 221 222 222 <script type="text/javascript"> 223 var current_site_id = <?php echo $id; ?>;223 var current_site_id = <?php echo absint( $id ); ?>; 224 224 </script> 225 225
Note: See TracChangeset
for help on using the changeset viewer.