#3313 closed enhancement (invalid)
Change get_oembed_response_data to apply filters to title
Reported by: | mheikkila | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | API | Keywords: | |
Cc: |
Description
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.
Change History (3)
#2
@
7 years ago
- Resolution set to invalid
- Status changed from new to closed
If you're talking about modifying part of WordPress itself, then you should make a ticket in core.trac.wordpress.org for it.
This is the meta.trac, where we handle issues with the WordPress.org website itself, along with the surrounding properties like wordcamp.org, browsehappy.com, the make.wordpress.org sites, and others.
So here would be the new get_oembed_response_data function: