Use stripslashes() instead of wp_unslash() in ms-files.php to avoid formatting.php dependency. props devesine, fixes #24374.
git-svn-id: http://core.svn.wordpress.org/trunk@24305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a26190eb2e
commit
de0b1ffbf8
|
@ -57,8 +57,8 @@ header( "Last-Modified: $last_modified GMT" );
|
|||
header( 'ETag: ' . $etag );
|
||||
header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + 100000000 ) . ' GMT' );
|
||||
|
||||
// Support for Conditional GET
|
||||
$client_etag = isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) ? wp_unslash( $_SERVER['HTTP_IF_NONE_MATCH'] ) : false;
|
||||
// Support for Conditional GET - use stripslashes to avoid formatting.php dependency
|
||||
$client_etag = isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) ? stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) : false;
|
||||
|
||||
if( ! isset( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) )
|
||||
$_SERVER['HTTP_IF_MODIFIED_SINCE'] = false;
|
||||
|
|
Loading…
Reference in New Issue