WordPress.org

Make WordPress Core

Ticket #42826: 42826.2.diff

File 42826.2.diff, 486 bytes (added by chetan200891, 10 months ago)

Refreshed patch to pass $post.

  • src/wp-includes/embed.php

    diff --git a/src/wp-includes/embed.php b/src/wp-includes/embed.php
    index 7cce664548..24edbca1e0 100644
    a b function get_oembed_response_data( $post, $width ) { 
    539539                'provider_url'  => get_home_url(),
    540540                'author_name'   => get_bloginfo( 'name' ),
    541541                'author_url'    => get_home_url(),
    542                 'title'         => $post->post_title,
     542                'title'         => get_the_title( $post ),
    543543                'type'          => 'link',
    544544        );
    545545