mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-13 11:41:34 +01:00
REST API: Remove _wpnonce
value from being used in hashed oEmbed proxy cache key.
Merges [41035] to 4.8 branch. Amends [40628]. Props r-a-y, westonruter. See #40450. Fixes #41048 for 4.8.1. Built from https://develop.svn.wordpress.org/branches/4.8@41048 git-svn-id: http://core.svn.wordpress.org/branches/4.8@40898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2d4418b905
commit
3a05029032
@ -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 ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user