Changeset 21711
- Timestamp:
- 09/03/2012 11:25:58 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.4/wp-includes/class-oembed.php
r20874 r21711 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 223 return $return; 218 224 } 219 225 return false;
Note: See TracChangeset
for help on using the changeset viewer.