WordPress.org

Make WordPress Core


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.

File:
1 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            /**
Note: See TracChangeset for help on using the changeset viewer.