WordPress.org

Make WordPress Core

Ticket #41784: 41784.diff

File 41784.diff, 546 bytes (added by norcross, 4 years ago)

Additional line for adding the dnt argument

  • wp-includes/class-oembed.php

    diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php
    index 616a844186..d0a80295c9 100644
    a b class WP_oEmbed { 
    490490                $provider = add_query_arg( 'maxwidth', (int) $args['width'], $provider );
    491491                $provider = add_query_arg( 'maxheight', (int) $args['height'], $provider );
    492492                $provider = add_query_arg( 'url', urlencode($url), $provider );
     493                $provider = add_query_arg( 'dnt', 1, $provider );
    493494
    494495                /**
    495496                 * Filters the oEmbed URL to be fetched.