[wp-trac] [WordPress Trac] #23855: Leave Shortcode functions early, if there's no Shortcode delimiter

WordPress Trac noreply at wordpress.org
Tue Mar 4 07:10:48 UTC 2014


#23855: Leave Shortcode functions early, if there's no Shortcode delimiter
-------------------------+--------------------------
 Reporter:  TobiasBg     |       Owner:  nacin
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  3.9
Component:  Shortcodes   |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:  performance
-------------------------+--------------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"27394"]:
 {{{
 #!CommitTicketReference repository="" revision="27394"
 Bail early from shortcode functions if no delimiter is present.

 This is a significant performance improvement for processing content
 without shortcodes, and only the slightest hit when content contains
 shortcodes (which must then undergo processing anyway). Performance
 results on the ticket.

 props TobiasBg.
 fixes #23855.
 }}}

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


More information about the wp-trac mailing list