[wp-trac] [WordPress Trac] #42826: Change get_oembed_response_data to apply filters to title

WordPress Trac noreply at wordpress.org
Fri Mar 15 16:41:59 UTC 2019


#42826: Change get_oembed_response_data to apply filters to title
------------------------------+----------------------
 Reporter:  mheikkila         |       Owner:  desrosj
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  5.2
Component:  Embeds            |     Version:  4.4
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+----------------------
Changes (by desrosj):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44907" 44907]:
 {{{
 #!CommitTicketReference repository="" revision="44907"
 Embeds: Allow post title to be filtered when preparing an oEmbed response.

 By changing the way the post title is added to the array of data from
 `$post->post_title` to `get_the_title()`, the title can now be modified
 using the `the_title` filter. This ensures post titles returned in oEmbed
 responses are consistent with those that show on a site.

 Props mheikkila, swissspidy.
 Fixes #42826.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/42826#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list