web/wp-admin/load-scripts.php
changeset 194 32102edaa81b
parent 136 bde1974c263b
child 204 09a1c134465b
equal deleted inserted replaced
193:2f6f6f7551ca 194:32102edaa81b
    17 function __() {}
    17 function __() {}
    18 
    18 
    19 /**
    19 /**
    20  * @ignore
    20  * @ignore
    21  */
    21  */
    22 function _c() {}
       
    23 
       
    24 /**
       
    25  * @ignore
       
    26  */
       
    27 function _x() {}
    22 function _x() {}
    28 
       
    29 
    23 
    30 /**
    24 /**
    31  * @ignore
    25  * @ignore
    32  */
    26  */
    33 function add_filter() {}
    27 function add_filter() {}
    58 function add_action() {}
    52 function add_action() {}
    59 
    53 
    60 /**
    54 /**
    61  * @ignore
    55  * @ignore
    62  */
    56  */
       
    57 function did_action() {}
       
    58 
       
    59 /**
       
    60  * @ignore
       
    61  */
    63 function do_action_ref_array() {}
    62 function do_action_ref_array() {}
    64 
    63 
    65 /**
    64 /**
    66  * @ignore
    65  * @ignore
    67  */
    66  */
    83 function admin_url() {}
    82 function admin_url() {}
    84 
    83 
    85 /**
    84 /**
    86  * @ignore
    85  * @ignore
    87  */
    86  */
       
    87 function home_url() {}
       
    88 
       
    89 /**
       
    90  * @ignore
       
    91  */
       
    92 function includes_url() {}
       
    93 
       
    94 /**
       
    95  * @ignore
       
    96  */
    88 function wp_guess_url() {}
    97 function wp_guess_url() {}
       
    98 
       
    99 if ( ! function_exists( 'json_encode' ) ) :
       
   100 /**
       
   101  * @ignore
       
   102  */
       
   103 function json_encode() {}
       
   104 endif;
    89 
   105 
    90 function get_file($path) {
   106 function get_file($path) {
    91 
   107 
    92 	if ( function_exists('realpath') )
   108 	if ( function_exists('realpath') )
    93 		$path = realpath($path);
   109 		$path = realpath($path);
   127 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT');
   143 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT');
   128 header("Cache-Control: public, max-age=$expires_offset");
   144 header("Cache-Control: public, max-age=$expires_offset");
   129 
   145 
   130 if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') && isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) {
   146 if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') && isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) {
   131 	header('Vary: Accept-Encoding'); // Handle proxies
   147 	header('Vary: Accept-Encoding'); // Handle proxies
   132 	if ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) {
   148 	if ( false !== stripos($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) {
   133 		header('Content-Encoding: deflate');
   149 		header('Content-Encoding: deflate');
   134 		$out = gzdeflate( $out, 3 );
   150 		$out = gzdeflate( $out, 3 );
   135 	} elseif ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') && function_exists('gzencode') ) {
   151 	} elseif ( false !== stripos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') ) {
   136 		header('Content-Encoding: gzip');
   152 		header('Content-Encoding: gzip');
   137 		$out = gzencode( $out, 3 );
   153 		$out = gzencode( $out, 3 );
   138 	}
   154 	}
   139 }
   155 }
   140 
   156