Skip to content

Commit c6c1256

Browse files
committed
Embeds: Remove unnecessary false check in oEmbed data fetching.
Developed in #11126 Follow up to r40628. Props soean, swissspidy, ocean90, sajib1223, manhar. Fixes #64784. git-svn-id: https://develop.svn.wordpress.org/trunk@61797 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4129a3a commit c6c1256

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/wp-includes/class-wp-oembed.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -364,13 +364,7 @@ public function get_data( $url, $args = '' ) {
364364
return false;
365365
}
366366

367-
$data = $this->fetch( $provider, $url, $args );
368-
369-
if ( false === $data ) {
370-
return false;
371-
}
372-
373-
return $data;
367+
return $this->fetch( $provider, $url, $args );
374368
}
375369

376370
/**

0 commit comments

Comments
 (0)