[wp-meta] [Making WordPress.org] #3313: Change get_oembed_response_data to apply filters to title
Making WordPress.org
noreply at wordpress.org
Tue Dec 5 13:36:50 UTC 2017
#3313: Change get_oembed_response_data to apply filters to title
-------------------------+--------------------------------------
Reporter: mheikkila | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: API | Keywords: needs-patch dev-feedback
-------------------------+--------------------------------------
The function get_oembed_response_data in wp-includes/embed.php outputs the
title using
{{{
$post->post_title
}}}
This is a problem when the title includes special tags. For example, the
very popular plugin qTranslateX
(https://fi.wordpress.org/plugins/qtranslate-x/) does this to manage
multilingual content. In this case, the function should use this to output
the title:
{{{
apply_filters('the_title',$post->post_title)
}}}
The oembed content overrides the og tags. This is a problem for example
when sharing a link to LinkedIn.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/3313>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list