[wp-trac] [WordPress Trac] #24958: Large number of revisions cause memory exhaustion

WordPress Trac noreply at wordpress.org
Sat Aug 31 04:44:11 UTC 2013


#24958: Large number of revisions cause memory exhaustion
------------------------------+--------------------
 Reporter:  jshreve           |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.6.1
Component:  Revisions         |     Version:  3.6
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+--------------------
Changes (by nacin):

 * keywords:   => has-patch commit


Comment:

 Thanks, Sergey! OK, so this is something we might only hit if we also have
 a ton of plugins and creep close to the 40 MB limit. I am actually very
 surprised WP.com isn't either far above that, or deliberately -1.

 [attachment:24958.diff] implements a soft 1000 limit. I say "soft" because
 you can change it to -1 via $args for wp_get_post_revisions(). It is not
 enforced and thus does not need to be changed by reaching into a WP_Query
 filter. I think this is good for 3.6.1.

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


More information about the wp-trac mailing list