Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#17654 closed defect (bug) (worksforme)

Disabled post revisions and the default AutoSave Interval - But WP disobeys

Reported by: t-p's profile t-p Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1.3
Component: Revisions Keywords:
Focuses: Cc:


  1. I have added this function to my functions.php (child theme -Twenty Ten)to disble post revisions: define('WP_POST_REVISIONS', 'false');

  1. And I have added this function to change the AutoSave Interval from the default 60 seconds to 9999 seconds: define('AUTOSAVE_INTERVAL', 9999 );

BUT THE WP DISOBEYS BOTH! That is, I still see autosave at 60 seconds as well as all revions saved in my dasbboard below the post editor.

Even if I deactivate plugins (i have only two plugins), no change in this behavior.

Change History (3)

#1 @dd32
12 years ago

define('WP_POST_REVISIONS', 'false');

For a start, That's wrong. It should be:

define('WP_POST_REVISIONS', false); (no quotes around the boolean value, It's currently treating that as a true value.)

Last edited 12 years ago by dd32 (previous) (diff)

#2 @t-p
12 years ago

Thanks @dd32
I changed 'false' to false as you suggested, same problem. Now what?
Also, how about the autosave issue?

#3 @dd32
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Revisions work as expected.

Autodraft's are created as expected, Despite you setting the autosave interval high, it'll still happen at some point and Autodrafts are used to provide the Autosave functionality.

Using define('AUTOSAVE_INTERVAL', 9999 ); an autosave has not triggered after 5 minutes.

If you want to remove the autodrafts as well, that's going to be plugin material (You can do anything with a plugin) and trac is not the place for discussion of that, If some hooks are needed to permit this, open a new ticket with the hooks required.

Closing as worksforme, as it follows the expected behaviour.

Note: See TracTickets for help on using tickets.