Make WordPress Core

Opened 14 months ago

Last modified 14 months ago

#44910 new feature request

function for discriminating during auto saving

Reported by: mt8.biz Owned by:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version:
Component: Autosave Keywords: has-patch
Focuses: Cc:
PR Number:


I want a function to distinguish auto saving like wp_doing_cron or wp_doing_ajax.

The following code can be simplified.


	if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
		//do something


	if ( wp_doing_autosave() ) {
		//do something

Attachments (1)

load.php.diff (721 bytes) - added by mt8.biz 14 months ago.

Download all attachments as: .zip

Change History (2)

14 months ago

#1 @mukesh27
14 months ago

  • Component changed from Posts, Post Types to Autosave
  • Keywords has-patch added
Note: See TracTickets for help on using tickets.