REST API: Remove `_wpnonce` value from being used in hashed oEmbed proxy cache key.

Amends [40628].
Props r-a-y, westonruter.
See #40450.
Fixes #41048.

Built from https://develop.svn.wordpress.org/trunk@41035


git-svn-id: http://core.svn.wordpress.org/trunk@40885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2017-07-12 22:51:40 +00:00
parent 597eeb9bb8
commit 2ca21c444e
2 changed files with 2 additions and 1 deletions

View File

@ -159,6 +159,7 @@ final class WP_oEmbed_Controller {
$args = $request->get_params();
// Serve oEmbed data from cache if set.
unset( $args['_wpnonce'] );
$cache_key = 'oembed_' . md5( serialize( $args ) );
$data = get_transient( $cache_key );
if ( ! empty( $data ) ) {

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-alpha-41034';
$wp_version = '4.9-alpha-41035';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.