Make WordPress Core

Ticket #42826: 42826.diff

File 42826.diff, 457 bytes (added by chetan200891, 7 years ago)

Created patch to change $post->post_title to get_the_title()

  • wp-includes/embed.php

    diff --git a/wp-includes/embed.php b/wp-includes/embed.php
    index 461dced..6925f84 100644
    a b function get_oembed_response_data( $post, $width ) { 
    537537                'provider_url'  => get_home_url(),
    538538                'author_name'   => get_bloginfo( 'name' ),
    539539                'author_url'    => get_home_url(),
    540                 'title'         => $post->post_title,
     540                'title'         => get_the_title(),
    541541                'type'          => 'link',
    542542        );
    543543