Changeset 7943
- Timestamp:
- 05/16/2008 04:25:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/gears-manifest.php
r7938 r7943 1 1 <?php 2 @ require('../wp-config.php');3 2 4 if ( ! defined('WP_ADMIN') ) 5 define('WP_ADMIN', true); 3 define( 'ABSPATH', dirname(dirname(__FILE__)) ); 6 4 7 if ( ! is_a($wp_scripts, 'WP_Scripts') ) 8 $wp_scripts = new WP_Scripts(); 5 function __() {} 6 function add_filter() {} 7 function attribute_escape() {} 8 function apply_filters() {} 9 function get_option() {} 10 function is_lighttpd_before_150() {} 11 function is_admin() {return true;} 12 13 require(ABSPATH . '/wp-includes/script-loader.php'); 14 15 $wp_scripts = new WP_Scripts(); 9 16 10 17 $default_js = $version = ''; … … 19 26 $version = md5($version); 20 27 21 nocache_headers(); 28 header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' ); 29 header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); 30 header( 'Cache-Control: no-cache, must-revalidate, max-age=0' ); 31 header( 'Pragma: no-cache' ); 22 32 header( 'Content-Type: application/x-javascript; charset=UTF-8' ); // application/json text/plain ? 23 33 ?>
Note: See TracChangeset
for help on using the changeset viewer.