Make WordPress Core

Changeset 29401


Ignore:
Timestamp:
08/06/2014 05:00:13 PM (7 years ago)
Author:
wonderboymusic
Message:

Use proper non-capturing regex syntax for YouTube in wp_video_shortcode().

Props Fab1en.
See [27063].
Fixes #29119.

File:
1 edited

Legend:

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

    r29320 r29401  
    17591759    }
    17601760
    1761     $yt_pattern = '#^https?://(:?www\.)?(:?youtube\.com/watch|youtu\.be/)#';
     1761    $yt_pattern = '#^https?://(?:www\.)?(?:youtube\.com/watch|youtu\.be/)#';
    17621762
    17631763    $primary = false;
Note: See TracChangeset for help on using the changeset viewer.