Ticket #20246: 20246.diff
File 20246.diff, 625 bytes (added by , 12 years ago) |
---|
-
wp-includes/class-oembed.php
213 213 $errors = libxml_use_internal_errors( 'true' ); 214 214 $data = simplexml_load_string( $response_body ); 215 215 libxml_use_internal_errors( $errors ); 216 if ( is_object( $data ) ) 217 return $data; 216 if ( ! is_object( $data ) ) 217 return false; 218 219 $return = new stdClass; 220 foreach ( $data as $key => $value ) 221 $return->$key = (string) $value; 222 return $return; 218 223 } 219 224 return false; 220 225 }