[wp-trac] [WordPress Trac] #8553: preg_replace_callback in do_shortcode returns empty for large posts
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 1 20:37:29 UTC 2011
#8553: preg_replace_callback in do_shortcode returns empty for large posts
-------------------------------------+-----------------------------
Reporter: AaronCampbell | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: Future Release
Component: Shortcodes | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+-----------------------------
Comment (by msafi):
I think `ini_set('pcre.backtrack_limit', 1000000);` can also be set in
`functions.php` of the theme or a plugin file—it doesn't have to be in
`wp-config.php`.
I set mine to 200000 instead of 1000000 and it did the trick.
How come there's no fix for this yet? It wasn't easy tracing down the
source of this problem!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8553#comment:59>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list