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 |