WordPress.org

Make WordPress Core

Changeset 27957


Ignore:
Timestamp:
04/05/2014 06:16:45 PM (6 years ago)
Author:
nacin
Message:

Don't pass variables by reference.

props markjaquith.
fixes #27656.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-oembed.php

    r27526 r27957  
    137137
    138138        // Fetch URL content
    139         if ( $html = wp_remote_retrieve_body( wp_safe_remote_get( $url ) ) ) {
     139        $request = wp_safe_remote_get( $url );
     140        if ( $html = wp_remote_retrieve_body( $request ) ) {
    140141
    141142            /**
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r27872 r27957  
    58025802            ),
    58035803        );
    5804         $linea = wp_remote_retrieve_body( wp_safe_remote_get( $pagelinkedfrom, $http_api_args ) );
     5804        $request = wp_safe_remote_get( $pagelinkedfrom, $http_api_args );
     5805        $linea = wp_remote_retrieve_body( $request );
    58055806
    58065807        if ( !$linea )
Note: See TracChangeset for help on using the changeset viewer.