Opened 8 years ago
Last modified 8 years ago
#44910 new feature request
function for discriminating during auto saving
| Reported by: | mt8.biz | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Autosave | Version: | |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: |
Description
I want a function to distinguish auto saving like wp_doing_cron or wp_doing_ajax.
The following code can be simplified.
before
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
//do something
}
after
if ( wp_doing_autosave() ) {
//do something
}
Attachments (1)
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)