Changeset 60909
- Timestamp:
- 10/07/2025 01:23:00 AM (less than one hour ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r60681 r60909 480 480 </script> 481 481 <?php 482 $message .= wp_get_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) );482 $message .= wp_get_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) . "\n//# sourceURL=" . rawurlencode( __METHOD__ ) ); 483 483 } 484 484 … … 2106 2106 </script> 2107 2107 <?php 2108 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) );2108 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) . "\n//# sourceURL=" . rawurlencode( __METHOD__ ) ); 2109 2109 } 2110 2110 … … 2228 2228 </script> 2229 2229 <?php 2230 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) );2230 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) . "\n//# sourceURL=" . rawurlencode( __METHOD__ ) ); 2231 2231 } 2232 2232 … … 5023 5023 </script> 5024 5024 <?php 5025 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) );5025 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) . "\n//# sourceURL=" . rawurlencode( __METHOD__ ) ); 5026 5026 } 5027 5027 -
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r60815 r60909 1557 1557 'navMenuInstanceArgs' => $this->preview_nav_menu_instance_args, 1558 1558 ); 1559 wp_print_inline_script_tag( sprintf( 'var _wpCustomizePreviewNavMenusExports = %s;', wp_json_encode( $exports, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ) );1559 wp_print_inline_script_tag( sprintf( 'var _wpCustomizePreviewNavMenusExports = %s;', wp_json_encode( $exports, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ) . "\n//# sourceURL=" . rawurlencode( __METHOD__ ) ); 1560 1560 } 1561 1561 -
trunk/src/wp-includes/class-wp-customize-widgets.php
r60802 r60909 1336 1336 } 1337 1337 wp_print_inline_script_tag( 1338 sprintf( 'var _wpWidgetCustomizerPreviewSettings = %s;', wp_json_encode( $settings, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ) 1338 sprintf( 'var _wpWidgetCustomizerPreviewSettings = %s;', wp_json_encode( $settings, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ) . "\n//# sourceURL=" . rawurlencode( __METHOD__ ) 1339 1339 ); 1340 1340 } -
trunk/src/wp-includes/comment-template.php
r60779 r60909 1375 1375 if ( current_user_can( 'unfiltered_html' ) ) { 1376 1376 wp_nonce_field( 'unfiltered-html-comment_' . $post_id, '_wp_unfiltered_html_comment_disabled', false ); 1377 wp_print_inline_script_tag( "(function(){if(window===window.parent){document.getElementById('_wp_unfiltered_html_comment_disabled').name='_wp_unfiltered_html_comment';}})(); ");1377 wp_print_inline_script_tag( "(function(){if(window===window.parent){document.getElementById('_wp_unfiltered_html_comment_disabled').name='_wp_unfiltered_html_comment';}})();\n//# sourceURL=" . rawurlencode( __FUNCTION__ ) ); 1378 1378 } 1379 1379 } -
trunk/src/wp-includes/customize/class-wp-customize-selective-refresh.php
r60681 r60909 194 194 195 195 // Export data to JS. 196 wp_print_inline_script_tag( sprintf( 'var _customizePartialRefreshExports = %s;', wp_json_encode( $exports, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ) );196 wp_print_inline_script_tag( sprintf( 'var _customizePartialRefreshExports = %s;', wp_json_encode( $exports, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ) . "\n//# sourceURL=" . rawurlencode( __METHOD__ ) ); 197 197 } 198 198 -
trunk/src/wp-includes/embed.php
r60783 r60909 519 519 * back to WordPress 4.4, so in order to not break older installs this script must come at the end. 520 520 */ 521 $js_path = '/js/wp-embed' . wp_scripts_get_suffix() . '.js'; 521 522 $output .= wp_get_inline_script_tag( 522 file_get_contents( ABSPATH . WPINC . '/js/wp-embed' . wp_scripts_get_suffix() . '.js')523 trim( file_get_contents( ABSPATH . WPINC . $js_path ) ) . "\n//# sourceURL=" . includes_url( $js_path ) 523 524 ); 524 525 … … 1091 1092 */ 1092 1093 function print_embed_scripts() { 1094 $js_path = '/js/wp-embed-template' . wp_scripts_get_suffix() . '.js'; 1093 1095 wp_print_inline_script_tag( 1094 file_get_contents( ABSPATH . WPINC . '/js/wp-embed-template' . wp_scripts_get_suffix() . '.js')1096 trim( file_get_contents( ABSPATH . WPINC . $js_path ) ) . "\n//# sourceURL=" . includes_url( $js_path ) 1095 1097 ); 1096 1098 } -
trunk/src/wp-includes/functions.php
r60809 r60909 7798 7798 } 7799 7799 }()); 7800 //# sourceURL=<?php echo rawurlencode( __FUNCTION__ ); ?> 7800 7801 </script> 7801 7802 <?php -
trunk/src/wp-includes/theme.php
r60681 r60909 3816 3816 </script> 3817 3817 <?php 3818 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) );3818 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) . "\n//# sourceURL=" . rawurlencode( __FUNCTION__ ) ); 3819 3819 } 3820 3820 -
trunk/src/wp-includes/widgets/class-wp-widget-archives.php
r56748 r60909 121 121 </script> 122 122 <?php 123 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) );123 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) . "\n//# sourceURL=" . rawurlencode( __METHOD__ ) ); 124 124 } else { 125 125 $format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml'; -
trunk/src/wp-includes/widgets/class-wp-widget-categories.php
r56748 r60909 109 109 110 110 <?php 111 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) );111 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) . "\n//# sourceURL=" . rawurlencode( __METHOD__ ) ); 112 112 } else { 113 113 $format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml';
Note: See TracChangeset
for help on using the changeset viewer.