Make WordPress Core


Ignore:
Timestamp:
10/07/2015 09:42:36 PM (10 years ago)
Author:
johnbillion
Message:

Correctly encode the url parameter that gets passed to WordPress' own oEmbed endpoint URL.

Fixes #34193
Props ocean90

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/embed-functions.php

    r34904 r34915  
    424424    if ( '' !== $permalink ) {
    425425        $url = add_query_arg( array(
    426             'url'    => $permalink,
     426            'url'    => urlencode( $permalink ),
    427427            'format' => $format,
    428428        ), $url );
Note: See TracChangeset for help on using the changeset viewer.