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:
parent
597eeb9bb8
commit
2ca21c444e
|
@ -159,6 +159,7 @@ final class WP_oEmbed_Controller {
|
||||||
$args = $request->get_params();
|
$args = $request->get_params();
|
||||||
|
|
||||||
// Serve oEmbed data from cache if set.
|
// Serve oEmbed data from cache if set.
|
||||||
|
unset( $args['_wpnonce'] );
|
||||||
$cache_key = 'oembed_' . md5( serialize( $args ) );
|
$cache_key = 'oembed_' . md5( serialize( $args ) );
|
||||||
$data = get_transient( $cache_key );
|
$data = get_transient( $cache_key );
|
||||||
if ( ! empty( $data ) ) {
|
if ( ! empty( $data ) ) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue