Make WordPress Core


Ignore:
Timestamp:
10/23/2015 05:56:25 AM (9 years ago)
Author:
dd32
Message:

Use wp_parse_url() in esc_url() to avoid parsing bugs in < PHP 5.4.7.

Props johnbillion for unit tests
See #34408
Fixes #34202

File:
1 edited

Legend:

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

    r35314 r35370  
    33993399    if ( ( false !== strpos( $url, '[' ) ) || ( false !== strpos( $url, ']' ) ) ) {
    34003400
    3401         $parsed = parse_url( $url );
     3401        $parsed = wp_parse_url( $url );
    34023402        $front  = '';
    34033403
Note: See TracChangeset for help on using the changeset viewer.