Make WordPress Core


Ignore:
Timestamp:
11/06/2012 02:47:33 PM (14 years ago)
Author:
duck_
Message:

Update shortcode regular expression commentary. See #17657.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/shortcodes.php

    r22382 r22401  
    183183                . '(\\[?)'                           // 1: Optional second opening bracket for escaping shortcodes: [[tag]]
    184184                . "($tagregexp)"                     // 2: Shortcode name
    185                 . '(?![\\w-])'                       // Word boundary
     185                . '(?![\\w-])'                       // Not followed by word character or hyphen
    186186                . '('                                // 3: Unroll the loop: Inside the opening shortcode tag
    187187                .     '[^\\]\\/]*'                   // Not a closing bracket or forward slash
Note: See TracChangeset for help on using the changeset viewer.