WordPress.org

Make WordPress Core

Changeset 7943


Ignore:
Timestamp:
05/16/2008 04:25:33 PM (10 years ago)
Author:
ryan
Message:

Streamline manifest includes. Props azaozz. see #6965

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/gears-manifest.php

    r7938 r7943  
    11<?php
    2 @ require('../wp-config.php');
    32
    4 if ( ! defined('WP_ADMIN') )
    5     define('WP_ADMIN', true);
     3define( 'ABSPATH', dirname(dirname(__FILE__)) );
    64
    7 if ( ! is_a($wp_scripts, 'WP_Scripts') )
    8     $wp_scripts = new WP_Scripts();
     5function __() {}
     6function add_filter() {}
     7function attribute_escape() {}
     8function apply_filters() {}
     9function get_option() {}
     10function is_lighttpd_before_150() {}
     11function is_admin() {return true;}
     12
     13require(ABSPATH . '/wp-includes/script-loader.php');
     14
     15$wp_scripts = new WP_Scripts();
    916
    1017$default_js = $version = '';
     
    1926$version = md5($version);
    2027
    21 nocache_headers();
     28header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' );
     29header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
     30header( 'Cache-Control: no-cache, must-revalidate, max-age=0' );
     31header( 'Pragma: no-cache' );
    2232header( 'Content-Type: application/x-javascript; charset=UTF-8' ); // application/json text/plain ?
    2333?>
Note: See TracChangeset for help on using the changeset viewer.