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

WordPress Trac noreply at wordpress.org
Sun Aug 3 14:15:22 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):

 I am in favor of 12690.3.diff.

 Performance results:

 Adding the one possessive quantifier outside the shortcode subgroup gives
 about 2% faster CPU time for handling that one regexp only.

 When also adding possessives in other places, there is no additional
 benefit.  Placing a new possessive inside the subgroup could create a
 "nested indefinite repeat" which would take more CPU time as explained in
 the PHP manual.  Also, patterns such as {{{[^>]+>}}} might be optimized
 internally, which would explain why there is no difference from
 {{{[^>]++>}}}.

 12690.3.diff appears to be optimal.

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


More information about the wp-trac mailing list