Make WordPress Core


Ignore:
Timestamp:
11/05/2012 10:27:36 PM (12 years ago)
Author:
ryan
Message:

Allow hyphens in shortcode names.

Props kovshenin, solarissmoke, aaroncampbell
fixes #17657

File:
1 edited

Legend:

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

    r22005 r22382  
    183183        . '(\\[?)'                           // 1: Optional second opening bracket for escaping shortcodes: [[tag]]
    184184        . "($tagregexp)"                     // 2: Shortcode name
    185         . '\\b'                              // Word boundary
     185        . '(?![\\w-])'                       // Word boundary
    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.