Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * combine js
- */
- define('WP_USE_THEMES', false);
- if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'wp-blog-header.php')) {
- require($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'wp-blog-header.php');
- } else {
- while (! file_exists('wp-blog-header.php') )
- chdir('..');
- require ("wp-blog-header.php");
- }
- // Exit if accessed directly without wp-blog-header.php
- if ( !defined( 'ABSPATH' ) ) exit;
- status_header(200);
- header('Content-type: text/javascript');
- header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + 3600 * 24));
- do_action("firmasite_combine_js");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement