[wp-trac] Re: [WordPress Trac] #6877: preg_replace in wpautop
deletes all the text in the post
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 30 18:03:31 GMT 2008
#6877: preg_replace in wpautop deletes all the text in the post
-----------------------------------------+----------------------------------
Reporter: duncanmc | Owner: anonymous
Type: defect | Status: new
Priority: highest omg bbq | Milestone: 2.5.2
Component: Administration | Version: 2.5.1
Severity: critical | Resolution:
Keywords: reporter-feedback , wpautop |
-----------------------------------------+----------------------------------
Changes (by azaozz):
* keywords: preg_replace, wpautop => reporter-feedback , wpautop
Comment:
This regexp would not remove anything. In the worst case it wouldn't
create paragraphs if PCRE_UNGREEDY is compiled as an option in php.
However that's extremely rare and will affect all posts, not just some.
Can't reproduce the blank post problem. Can you check if the content has
been saved in the database? If yes, it may be a timing or out of memory
issue with very long posts with a lot of html tags, as there are several
display filters run every time and this can be slow and memory consuming
for very long posts, especially if many plugins are used.
--
Ticket URL: <http://trac.wordpress.org/ticket/6877#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list