WordPress.org

Make WordPress Core

Changeset 28933


Ignore:
Timestamp:
06/30/2014 11:08:48 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Remove free-spacing modifier and extra spaces from wp_extract_urls() pattern.

fixes #28222.

File:
1 edited

Legend:

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

    r28918 r28933  
    459459    preg_match_all(
    460460        "#("
    461             . "(?: ([\w-]+:)?//? )"
     461            . "(?:([\w-]+:)?//?)"
    462462            . "[^\s()<>]+"
    463463            . "[.]"
    464464            . "(?:"
    465                 . "\([\w\d]+\) |"
     465                . "\([\w\d]+\)|"
    466466                . "(?:"
    467                     . "[^`!()\[\]{};:'\".,<>?«»“”‘’\s] |"
    468                     . "(?: [:]\d+ )?/?"
     467                    . "[^`!()\[\]{};:'\".,<>?«»“”‘’\s]|"
     468                    . "(?:[:]\d+)?/?"
    469469                . ")+"
    470470            . ")"
    471         . ")#x",
     471        . ")#",
    472472        $content,
    473473        $post_links
Note: See TracChangeset for help on using the changeset viewer.