[wp-trac] [WordPress Trac] #42462: Deleting post revisions via database b

WordPress Trac noreply at wordpress.org
Tue Nov 7 19:43:24 UTC 2017


#42462: Deleting post revisions via database b
--------------------------+-----------------------------
 Reporter:  johnalarcon   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Revisions     |    Version:  4.8.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I forgot to limit post revisions ahead of time via wp-config.php and ended
 up with a lot of revisions in the database. I deleted them with phpMyAdmin
 (dropped all rows in wp_posts where post_type was revision). Seemed fine.

 Since I wanted to have 3 revisions max for each post, I added
 define('WP_POST_REVISIONS', 3); to wp-config.php and revisions resumed
 saving to the database.

 However, the revisions are no longer accessible on the post-edit pages,
 nor are revisions an option in the Screen Options tab anymore.

 To get it back to normal, I went to Dashboard > Updates and did a
 reinstall of WordPress core.

 Not sure if this is a technically a bug since I deleted the revisions
 manually, but it was certainly unexpected, so I wanted to put it out there
 in case anyone else came across this.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42462>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list