From a415c29efee45520ae252d2aa28f1083a521cd7b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 09:56:49 +0200 Subject: Adding upstream version 6.4.3+dfsg1. Signed-off-by: Daniel Baumann --- wp-admin/load-scripts.php | 68 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 wp-admin/load-scripts.php (limited to 'wp-admin/load-scripts.php') diff --git a/wp-admin/load-scripts.php b/wp-admin/load-scripts.php new file mode 100644 index 0000000..5675b86 --- /dev/null +++ b/wp-admin/load-scripts.php @@ -0,0 +1,68 @@ +registered ) ) { + continue; + } + + $path = ABSPATH . $wp_scripts->registered[ $handle ]->src; + $out .= get_file( $path ) . "\n"; +} + +header( "Etag: $wp_version" ); +header( 'Content-Type: application/javascript; charset=UTF-8' ); +header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + $expires_offset ) . ' GMT' ); +header( "Cache-Control: public, max-age=$expires_offset" ); + +echo $out; +exit; -- cgit v1.2.3