• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Crushing Krisis

The Newest Oldest Blog In New Zealand

  • DC Guides
    • DC Events
    • DC New 52
    • DC Rebirth
    • Batman Guide
    • The Sandman Universe
  • Marvel Guides
    • Marvel Events
    • Captain America Guide
    • Iron Man Guide
    • Spider-Man Guide (1963-2018)
    • Spider-Man Guide (2018-Present)
    • Thor Guide
    • X-Men Reading Order
  • Indie & Licensed Comics
    • Spawn
    • Star Wars Guide
      • Expanded Universe Comics (2015 – present)
      • Legends Comics (1977 – 2014)
    • Valiant Guides
  • Drag
    • Canada’s Drag Race
    • Drag Race Belgique
    • Drag Race Down Under
    • Drag Race Sverige (Sweden)
    • Drag Race France
    • Drag Race Philippines
    • Dragula
    • RuPaul’s Drag Race
    • RuPaul’s Drag Race All Stars
  • Archive
  • Contact!
You are here: Home / Personal / off-topics / meta / WordPress / How to turn off post revisions in WordPress 3.3

How to turn off post revisions in WordPress 3.3

January 2, 2012 by krisis

Did you just update to WordPress 3.3 only to find that post revisions have returned even though you previously engineered some way to turn them off?

Don’t worry, I can help – but, first, some background and chatter.

Way back in 2008 WordPress added Revisions to its core features, and the feature persists today in the newly released version 3.3.

This is the amount of WP revisions I can create in a single week of editing if left unawares.

Revisions captures every published iteration of a post you are working on, so that if you republish with some minor changes you still have the prior version available to roll back to, if necessary.

This feature can be helpful if you make a lot of major changes to your work, or if you are on a multi-author blog and need to occasionally reverse someone’s edits.

It can also be detrimental, or plain old annoying.

The revisions feature nearly destroyed Crushing Krisis. Because, you see, my managing editor is an OCD Godzilla that lives inside my abdomen and due to his influence I have been known to spend my spare time making literally hundreds of tiny edits to spelling and spacing across the million-plus words of this site. Each edit I published spawned a new post number in a new post ID. My database ballooned by thousands of lines, I was using more RAM on my server, and legacy posts and pages linked by their post IDs were suddenly appearing at new permalinks!

There have been plugins to turn Revisions off, but when a new version of WP debuts sometimes those plugins don’t work right away. That’s why I am sharing the manual way to turn off Revisions.

This involves editing core WP files. You do so at your own risk. I am not a WP developer, and I cannot provide support to you if you hobble or destroy your blog. Unlike a plugin, this will not still work after a reinstall or upgrade of WP, so when you move to WP 3.3.1 you need to do it again.

Ready?

  1. In your root directory you have a file called “wp-config.php.” Save a copy of it elsewhere in case you mess things up terribly.
  2. Open wp-config.php and scroll down. At some point you should see a comment that reads “/* Stop editing */” – we will insert our new code just above that.
  3. Insert this code:
    /* Disable Revisions Feature */
    define('WP_POST_REVISIONS', false );
    If you would rather just limit the revisions that get saved, change as follows:
    /* Limit Revisions Feature (by number of revisions) */
    define('WP_POST_REVISIONS',6);
  4. While you are here, you could also choose to add a line to define how frequently you would like WP to make single autosaves of your posts, which frequently saves my ass in the case of a browser crash. That code is:
    /* Set Auto-Save Timing (in seconds) */
    define( 'AUTOSAVE_INTERVAL', 300 );
  5. Voila! Though WP will still inform you of your revision number in your posts table, it is no longer saving revisions.

Keep in mind, you do still have a number of revisions in your MySQL database, sitting around doing nothing like some vestigial appendix-like organ in your body that may or may not cause a later explosion.

(If you are me, that number of revisions is 250 in the one hour since you installed WP3.3. Yes, I literally make that many edits to CK in an hour. OCD Godzilla is a terrifying beast.)

To do away with them you simply need to delete all of the rows in your post table identified as revisions. Any time you directly edit your MySQL is potentially bad mojo, so I am not going to specifically advocate doing that. However, if you have backed up your DB and know what you are doing, visit WP Recipes for the simple one-line SQL query that will wipe out your revisions.

I hope this helped you! Personally, I get completely frantic when WP updates and one of my old plugins stops working to provide (or, in this case, block) a feature I rely on.

Related posts:

  1. 12 Must-Read Marvel Runs (that ought to be an omnibus) – 1998 to 2008
  2. From The Beginning: WildStorm Universe – WildStorm Rising
  3. first day of school, finally
  4. Track-by-Track: Lady Gaga’s Joanne – “Grigiot Girls” and “Just Another Day” (Bonus Tracks)
  5. Live @ Rehearsal Video Concert – November 15th, 2016
  6. New For Patrons: Definitive Guide to Animal Man
  7. Spawn by Todd McFarlane – Definitive Collecting Guide and Reading Order

Filed Under: WordPress Tagged With: OCD Godzilla

Previous Post: « #MusicMonday: “Try To Sleep” – Low
Next Post: Top 12 X-Men Collections of 2011 – Reprinted Material »

Primary Sidebar


Support Crushing Krisis on Patreon
Support CK
on Patreon


Follow me on Twitter Contact me Watch me on Youtube Subscribe to the CK RSS Feed

About CK

About Crushing Krisis
About My Music
About Your Author
Blog Archive
Comics Blogs Only
Contact Krisis
Terms & Conditions

Crushing Comics

Marvel Comics

Marvel Events Guide

Spider-Man Guide

DC Comics

  • New for Patrons: Guide to Drax the Destroyer
    Learn about the many eras of Drax the Destroyer in my new Guide to Drax, including how the MCU pulled one major detail from each incarnation. […]
  • Guide to Teenage Mutant Ninja Turtles IDW ContinuityNew for Patrons: Guide to Teenage Mutant Ninja Turtles IDW Continuity
    Dig into over 200 issues of turtle power in perfect story order with my Guide to Teenage Mutant Ninja Turtles comics at IDW! […]
  • Drag Race Sverige Season 1, Episode 3 – “Drag-a’-mera!” design challenge Review & Power Ranking
    The queens of Drag Race Sverige stress over a Drag-a'-mera unconventional materials design challenge and a pair of intimidating judges in Christer Lindarw & Fredrik Robertsson. […]
  • New for Patrons: Teenage Mutant Ninja Turtles – Guide to Mirage Studios Continuity
    Curious about the b&w indie comic origins of the Teenage Mutant Ninja Turtles? my Guide to Mirage Studios Continuity covers every issue! […]
  • Drag Race Belgique Season 1, Episode 5 – Snatch Game & Night of 1001 Audrey Hepburns Runway
    The queens of Belgique compete in a oddly low-key Snatch Game and a Night of 1001 Audrey Hepburns runway that emphasized realness over glam. […]
  • RuPauls Drag Race Season 15 Episode 12 - Wigloose The Rusical Title CardRuPaul’s Drag Race Season 15, Episode 12 – “Wigloose The Rusical” Review & Power Ranking
    Wigloose is one of the best Rusicals ever, and it arrives at the perfect moment to address anti-drag, anti-LGBTQA* legislation across America. […]
  • Updated: Guide to X-Men Legacy
    I updated my Guide to X-Men Legacy, but it's more like an anti-update - since Marvel has yet to get around to recollecting Mike Carey's incredibly run. […]
  • Guide to GamoraNew for Patrons: Guide to Gamora
    Learn more about Thanos's adopted daughter and the most dangerous woman in the galaxy in this Guide to Gamora, of the Guardians of the Galaxy […]
  • New for Patrons: Guide to Shadowhawk by Jim Valentino
    If you've spent some portion of the past 30 years curious about Jim Valentino's Image Comics hero, my new Guide to ShadowHawk explains his history and how to find every issue in reading order. […]
  • Drag Race Sverige Season 1, Episode 2 – “MARATHON Talent Hunt” Review & Power Ranking
    It's the "MARATHON Talent Hunt" as Drag Race Sverige puts on a talent show with some shocking acts, followed by a Pippi Longstocking runway. […]
  • Shazam Guide, The Captain Marvel of DC Comics – now available to the public!
    Excited for Shazam! Fury of the Gods but unsure where to start reading his comics? My Shazam Guide covers EVERY appearance from 1940 to today! […]
  • Drag Race Belgique Season 1, Episode 4 – “L’émission qui vous déshabille” acting challenge & “Ceci n’est pas un look!” runway Review & Power Ranking
    Drag Race Belgique delivered a brainy episode filled with culture with a spoof of the documentary "Ni Juge, Ni Soumise" and a Magritte-inspired "Ceci N’est Pas un Look" surrealist runway. […]
  • RuPaul's Drag Race Season 15 Episode 11 - Two Queens One Joke - Comedy Luxx Noir London Loosey LaDucaRuPaul’s Drag Race Season 15, Episode 11 – “Two Queens, One Joke” Review & Power Ranking
    The Top 7 queens of RuPaul's Drag Race Season 15 take the stage for a Two Queens One Joke comedy challenge and a Rip Her To Shreds runway. […]
  • Updated: Guide to New X-Men by Grant Morrison
    My Guide to New X-Men is freshly updated with the newest reprinting of the New X-Men by Grant Morrison omnibus, the final Peter Milligan recollection, and more. […]

Layout copyright © 2017 · Foodie Pro Theme by Shay Bocks · Built on the Genesis Framework · Powered by WordPress

Links from Crushing Krisis to retailer websites may be in the form of affiliate links. If you purchase through an affiliate link I will receive a minor credit as your referrer. My credit does not affect your purchase price. Affiliate programs and affiliations include, but are not limited to: Amazon Services LLC Associates Program (in the US, UK, Canada, France, Germany, Italy, and Spain), eBay Partner Network, and iTunes Affiliate Program.