[wp-trac] [WordPress Trac] #14481: Shortcode Enhancements

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 2 14:29:13 UTC 2010


#14481: Shortcode Enhancements
-------------------------+--------------------------------------------------
 Reporter:  deadowl      |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Shortcodes   |     Version:  3.0            
 Severity:  normal       |    Keywords:  has-patch      
-------------------------+--------------------------------------------------

Comment(by deadowl):

 Replying to [comment:6 scribu]:
 >  You should use call_user_func() instead of $callback().

 {{{call_user_func()}}} won't pass by reference the stack and refs from
 {{{shortcode_eval()}}}. Because of this, I have modified the code to
 statically call the tag_inline, tag_open, tag_close, text, esc_lsqbr,
 esc_rsqbr evaluation methods because they all need a reference to at least
 the stack. Meanwhile, it appears I have broken something with building the
 parse tree, so I will be fixing that before I post a new diff.

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


More information about the wp-trac mailing list