WordPress.org

Make WordPress Core

Ticket #17657: 17657.3.diff

File 17657.3.diff, 754 bytes (added by kovshenin, 21 months ago)

Here's one that's broken down into separate lines like in trunk. I don't think the
makes any difference here, but since the other lines use it I thought I'd add it for consistency.

  • wp-includes/shortcodes.php

     
    181181                  '\\['                              // Opening bracket 
    182182                . '(\\[?)'                           // 1: Optional second opening bracket for escaping shortcodes: [[tag]] 
    183183                . "($tagregexp)"                     // 2: Shortcode name 
    184                 . '\\b'                              // Word boundary 
     184                . '(?![\\w-])'                       // Word boundary 
    185185                . '('                                // 3: Unroll the loop: Inside the opening shortcode tag 
    186186                .     '[^\\]\\/]*'                   // Not a closing bracket or forward slash 
    187187                .     '(?:'