[wp-trac] [WordPress Trac] #19639: Enhancement: request: filter support before shortcodes are parsed or convert " into "

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 21 21:43:21 UTC 2011


#19639: Enhancement: request: filter support before shortcodes are parsed or
convert " into "
--------------------------+------------------------------
 Reporter:  archon810     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Shortcodes    |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by archon810):

 Replying to [comment:2 SergeyBiryukov]:
 > Wouldn't it be possible to just hook into `the_content` before
 `do_shortcode()` to make the replacement?

 I'd rather avoid doing something this involved and apply the fixes once
 each shortcode is being processed and the parameters have already been
 split up into the list. Ideally, changes to the whole $content should be
 avoided IMO, especially if regex is the only [sane] way to accomplish the
 task.

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


More information about the wp-trac mailing list