[wp-trac] [WordPress Trac] #46986: DNT Parameter automatically for Vimeo oEmbed requests
WordPress Trac
noreply at wordpress.org
Tue Nov 9 18:20:09 UTC 2021
#46986: DNT Parameter automatically for Vimeo oEmbed requests
-------------------------------------------------+-------------------------
Reporter: djc71889 | Owner: garrett-
| eclipse
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: Future
| Release
Component: Embeds | Version: 4.9
Severity: major | Resolution:
Keywords: has-patch needs-dev-note has-unit- | Focuses: privacy
tests 2nd-opinion |
-------------------------------------------------+-------------------------
Comment (by georgestephanis):
Just noting here that if someone does need to disable dnt for vimeo
videos, it's not hard to do on your own site via a filter like so:
{{{
add_filter( 'oembed_fetch_url', function( $provider ) {
if ( strpos( $provider, 'vimeo.com' ) !== false ) {
$provider = remove_query_arg( 'dnt', $provider );
}
return $provider;
} );
}}}
The discussion in this thread is more about whether the default that
WordPress ships with should change, and if show how to effectuate that
change.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46986#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list