Make WordPress Core

Ticket #30580: 30580.diff

File 30580.diff, 1.1 KB (added by voldemortensen, 10 years ago)
  • src/wp-includes/functions.php

     
    464464                        . "(?:"
    465465                                . "\([\w\d]+\)|"
    466466                                . "(?:"
    467                                         . "[^`!()\[\]{};:'\".,<>«»“”‘’\s]|"
     467                                        . "[^`!()\[\]{}:'\".,<>«»“”‘’\s]|"
    468468                                        . "(?:[:]\d+)?/?"
    469469                                . ")+"
    470470                        . ")"
  • tests/phpunit/tests/functions.php

     
    418418                        'http://việtnam.icom.museum',
    419419                        'ftp://127.0.0.1/',
    420420                        'http://www.woo.com/video?v=exvUH2qKLTU',
    421                         'http://taco.com?burrito=enchilada#guac'
     421                        'http://taco.com?burrito=enchilada#guac',
     422                        'https://stuff.com/?video=123&autoplay=true'
    422423                );
    423424
    424425                $blob ="
     
    481482                        http://www.woo.com/video?v=exvUH2qKLTU
    482483
    483484                        http://taco.com?burrito=enchilada#guac
     485                        https://stuff.com/?video=123&amp;autoplay=true
    484486                ";
    485487
    486488                $urls = wp_extract_urls( $blob );