Make WordPress Core

Ticket #47574: 47574.diff

File 47574.diff, 408 bytes (added by goaroundagain, 5 years ago)
  • src/wp-includes/embed.php

    diff --git a/src/wp-includes/embed.php b/src/wp-includes/embed.php
    index 76d937cd6c..2f64ae5344 100644
    a b function get_oembed_response_data( $post, $width ) { 
    506506                return false;
    507507        }
    508508
    509         if ( 'publish' !== get_post_status( $post ) ) {
     509        if ( ! get_post_status_object( get_post_status( $post ) )->public ) {
    510510                return false;
    511511        }
    512512