[wp-trac] Re: [WordPress Trac] #8553: preg_replace_callback in do_shortcode returns empty for large posts

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 5 02:32:47 GMT 2009


#8553: preg_replace_callback in do_shortcode returns empty for large posts
---------------------------+------------------------------------------------
 Reporter:  AaronCampbell  |       Owner:  anonymous              
     Type:  defect (bug)   |      Status:  new                    
 Priority:  normal         |   Milestone:  2.7.2                  
Component:  General        |     Version:                         
 Severity:  normal         |    Keywords:  has-patch needs-testing
---------------------------+------------------------------------------------

Comment(by hakre):

 an idea on this one: shortcodes aren't that complex, it should be possible
 to write a parser that does it with php functions (instead of regex) and
 therefore shouldn't run into such problems.

 can be used transparent through the current api.

 the current docblocks in there are a bit unclear wether or not it is
 possible to put shortcodes into shortcodes.
 http://codex.wordpress.org/Shortcode_API states yes, but they won't be
 handeled automatically. http://svn.automattic.com/wordpress-tests/wp-
 testcase/test_shortcode.php states that the same shortcode can enclose
 itself but left open where the closing code is.

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


More information about the wp-trac mailing list