[wp-trac] [WordPress Trac] #12690: Square brackets breaking links that contain square brackets

WordPress Trac noreply at wordpress.org
Thu Jul 24 16:19:33 UTC 2014

#12690: Square brackets breaking links that contain square brackets
 Reporter:  iandstewart            |       Owner:  wonderboymusic
     Type:  defect (bug)           |      Status:  reopened
 Priority:  normal                 |   Milestone:  4.0
Component:  Formatting             |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  wptexturize has-patch  |     Focuses:

Comment (by miqrogroove):

 Replying to [comment:31 kovshenin]:
 > That said, we should probably be looking into using the data in
 $shortcode_tags in that regex, or even get_shortcode_regex() entirely,
 that would limit the search to the actual shortcodes that are available,
 and it will probably break so many unit tests

 Something to consider for a later version.  However, I assumed the longer
 form of alternation would be massively slower for the inner loop,
 redundant, and it would significantly alter the behavior of wptexturize.
 Those sorts of things tend to get bogged down with review and lack of
 traction.  Besides, I'm not sure there is a need to make that change just
 for the sake of our curly quotes.

Ticket URL: <https://core.trac.wordpress.org/ticket/12690#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list