Make WordPress Core

Ticket #17657: 17657.update-comment.diff

File 17657.update-comment.diff, 1.5 KB (added by duck_, 13 years ago)
  • wp-includes/formatting.php

     
    295295                . '('                                // 1: The shortcode
    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
    301301                .     '(?:'
  • wp-includes/shortcodes.php

     
    182182                  '\\['                              // Opening bracket
    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
    188188                .     '(?:'