Make WordPress Core

Changeset 22401


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

Update shortcode regular expression commentary. See #17657.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r22382 r22401  
    296296                .     '\\['                          // Opening bracket
    297297                .     "($tagregexp)"                 // 2: Shortcode name
    298                 .     '(?![\\w-])'                   // Word boundary
     298                .     '(?![\\w-])'                   // Not followed by word character or hyphen
    299299                                                     // Unroll the loop: Inside the opening shortcode tag
    300300                .     '[^\\]\\/]*'                   // Not a closing bracket or forward slash
  • 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.