[wp-trac] [WordPress Trac] #11948: Shortcode parser doesn't support hyphen in shortcode name

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 19 20:16:50 UTC 2010


#11948: Shortcode parser doesn't support hyphen in shortcode name
--------------------------+-------------------------------------------------
 Reporter:  ukdmbfan      |       Owner:                
     Type:  defect (bug)  |      Status:  new           
 Priority:  normal        |   Milestone:  Future Release
Component:  Shortcodes    |     Version:  2.9.1         
 Severity:  normal        |    Keywords:  needs-patch   
--------------------------+-------------------------------------------------
Changes (by TobiasBg):

  * keywords:  needs-patch hypen dash => needs-patch
  * priority:  low => normal
  * severity:  minor => normal


Comment:

 I use a shortcode with a hyphen in my plugin and it works just fine.

 The only thing that breaks it, if I register a shortcode that is just the
 part until the hyphen before registering the hyphened shortcode.

 In my plugin:
 add_shortcode( 'table-info', ...)
 add_shortcode( 'table', ...)
 works fine, while
 add_shortcode( 'table', ...)
 add_shortcode( 'table-info', ...)
 does not (well I admit I haven't tested again with WP 2.9 which has a new
 regex, if I remember correctly.

 So, could you check that in your case you (nor any other plugin) is
 registering a shortcode [contact /]?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11948#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list