Upgrading WP: Core, themes and plugins.

This commit is contained in:
misund committed 2014-04-22 11:43:10 +02:00
1 parent ab881db70a
commit ca0240513e
2345 files changed
+624041 -38378

No files matched your search

+7 -3
View File
@@ -114,8 +114,12 @@ function get_file($path) {
return @file_get_contents($path);
}
$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $_GET['load'] );
$load = explode(',', $load);
$load = $_GET['load'];
if ( is_array( $load ) )
$load = implode( '', $load );
$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $load );
$load = array_unique( explode( ',', $load ) );
if ( empty($load) )
exit;
@@ -125,7 +129,7 @@ require(ABSPATH . WPINC . '/version.php');
$compress = ( isset($_GET['c']) && $_GET['c'] );
$force_gzip = ( $compress && 'gzip' == $_GET['c'] );
$expires_offset = 31536000;
$expires_offset = 31536000; // 1 year
$out = '';
$wp_scripts = new WP_Scripts();