Make WordPress Core

Changeset 61797

Timestamp:
03/03/2026 05:11:51 PM (37 hours ago)
Author:
westonruter
Message:

Embeds: Remove unnecessary false check in oEmbed data fetching.

Developed in https://github.com/WordPress/wordpress-develop/pull/11126

Follow up to r40628.

Props soean, swissspidy, ocean90, sajib1223, manhar.
Fixes #64784.

File:
1 edited

Legend:

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

    r60345 r61797  
    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
Note: See TracChangeset for help on using the changeset viewer.