Symptom

BoltAudit reports thousands of revision rows in wp_posts, or individual posts with more than 50 revisions each. WP_POST_REVISIONS is not set or is set to true (unlimited).

Impact

  • Revisions are stored as full post rows (not diffs), so they inflate wp_posts linearly with edit volume.
  • Indexes on wp_posts get larger and slower.
  • Backups, dumps, and migrations all pay the cost.

Manual fix

Add to wp-config.php, before the / That's all, stop editing / line:

CODE0

5 is a reasonable cap. Sites with high-edit-cadence editorial workflows can use 10. Sites that ship posts once and never touch them can safely use false (disable revisions entirely) — but you lose all per-edit undo.

Apply Fix

One-click in the dashboard. The fix adds the constant to wp-config.php with a default of 5. This affects future revisions only — see [Delete post revisions](/fixes/delete-post-revisions) for purging existing ones.

Combine with delete_post_revisions

Setting the cap doesn't retroactively shrink your existing revision pile. Pair this fix with the "Delete post revisions" fix to clean up the backlog.

Run BoltAudit on your site

Free plugin · 1 site · 3 audits per month · no credit card.

See plans →