[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
Wed Jul 1 21:50:13 UTC 2009


#8553: preg_replace_callback in do_shortcode returns empty for large posts
-------------------------------------+--------------------------------------
 Reporter:  AaronCampbell            |        Type:  defect (bug)
   Status:  new                      |    Priority:  high        
Milestone:  2.9                      |   Component:  Shortcodes  
  Version:                           |    Severity:  normal      
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------
Changes (by xibe):

  * keywords:  needs-patch => has-patch needs-testing


Comment:

 Sorry I didn't notice earlier there was a patch for this.
 I applied it to my current trunk, and in my case it does work!

 Before applying patch:
   * post updated in HTML mode would display fine in both editor and online
   * same post updated in Visual mode would become blank

 After applying patch:
   * In both case, the post does get published, and is still editable in
 Visual mode after clicking the update button.

 For the sake of helping other test my conditions, I'm adding it to Trac,
 zipped. In current 2.9 trunk, copy the code into the HTML editor, publish
 & check online presence ; switch to Visual editor, update & witness
 blankness both in editor and online.

 Note: I don't seem to have an issue with [http://xavier.borderie.net/wp-
 trunk/?p=51 Brusdeylins' test post], even without applying the patch,
 which sounds weird to me.

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


More information about the wp-trac mailing list