[wp-trac] [WordPress Trac] #17657: Shortcode regex doesn't allow for hyphens in shortcode name

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 20 08:39:01 UTC 2012


#17657: Shortcode regex doesn't allow for hyphens in shortcode name
------------------------------------------------------+--------------------
 Reporter:  sivel                                     |       Owner:
     Type:  defect (bug)                              |      Status:  new
 Priority:  normal                                    |   Milestone:  3.5
Component:  Shortcodes                                |     Version:  2.9.2
 Severity:  normal                                    |  Resolution:
 Keywords:  has-patch needs-testing needs-unit-tests  |
------------------------------------------------------+--------------------

Comment (by kovshenin):

 [attachment:17657-unit-tests.2.diff] includes @aaroncampbell's tests and a
 test for hyphenated shortcodes. Two failures with current trunk, both
 succeed with [attachment:17657.3.diff].

 I noticed that at least three of the shortcode tests are skipped, because
 their function doc contains a reference to a ticket with `@ticket`. I
 don't think that's normal, is it? If I run the tests in strict mode, the
 ones marked with `@ticket` error out with `PHP_Invoker_TimeoutException`.
 I'm using PHPUnit 3.6.11.

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


More information about the wp-trac mailing list