From a177d8bf187d9f80e00f1f10f11784e887241fa4 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 5 Apr 2014 18:17:14 +0000 Subject: [PATCH] Don't pass variables by reference. props markjaquith. fixes #27656. Built from https://develop.svn.wordpress.org/trunk@27957 git-svn-id: http://core.svn.wordpress.org/trunk@27787 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-oembed.php | 3 ++- wp-includes/class-wp-xmlrpc-server.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 832731efd9..353837ff22 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -136,7 +136,8 @@ class WP_oEmbed { $providers = array(); // Fetch URL content - if ( $html = wp_remote_retrieve_body( wp_safe_remote_get( $url ) ) ) { + $request = wp_safe_remote_get( $url ); + if ( $html = wp_remote_retrieve_body( $request ) ) { /** * Filter the link types that contain oEmbed provider URLs. diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 8bbe664e2d..893263fd9f 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -5801,7 +5801,8 @@ class wp_xmlrpc_server extends IXR_Server { 'X-Pingback-Forwarded-For' => $remote_ip, ), ); - $linea = wp_remote_retrieve_body( wp_safe_remote_get( $pagelinkedfrom, $http_api_args ) ); + $request = wp_safe_remote_get( $pagelinkedfrom, $http_api_args ); + $linea = wp_remote_retrieve_body( $request ); if ( !$linea ) return $this->pingback_error( 16, __( 'The source URL does not exist.' ) );