Ticket #17657: 17657.4.diff

File 17657.4.diff, 1.4 KB (added by kovshenin, 10 months ago)

Includes shortcode_unautop

  • 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                .     '(?:' 
  • wp-includes/formatting.php

     
    295295                . '('                                // 1: The shortcode 
    296296                .     '\\['                          // Opening bracket 
    297297                .     "($tagregexp)"                 // 2: Shortcode name 
    298                 .     '\\b'                          // Word boundary 
     298                .     '(?![\\w-])'                   // Word boundary 
    299299                                                     // Unroll the loop: Inside the opening shortcode tag 
    300300                .     '[^\\]\\/]*'                   // Not a closing bracket or forward slash 
    301301                .     '(?:'