Make WordPress Core

Ticket #30580: 30580.2.diff

File 30580.2.diff, 1.2 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',
     423                        'http://example.com;'
    422424                );
    423425
    424426                $blob ="
     
    481483                        http://www.woo.com/video?v=exvUH2qKLTU
    482484
    483485                        http://taco.com?burrito=enchilada#guac
     486                        https://stuff.com/?video=123&amp;autoplay=true
     487
     488                        http://example.com;
    484489                ";
    485490
    486491                $urls = wp_extract_urls( $blob );