Opened 15 years ago
Closed 15 years ago
#10525 closed enhancement (fixed)
post.php suppressed E_WARNING
Reported by: | Mittineague | Owned by: | |
---|---|---|---|
Milestone: | 2.9 | Priority: | low |
Severity: | minor | Version: | |
Component: | Autosave | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Using the Error Reporting plugin I get
E_WARNING
Couldn't find constant DOING_AUTOSAVE
at ...../wp-includes/post.php (3471)
function wp_save_post_revision( $post_id ) { // We do autosaves manually with wp_create_post_autosave() if ( @constant( 'DOING_AUTOSAVE' ) ) return;
Would it not be easy enough to do a defined() before the constant() and eliminate the need for suppression?
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
(trivial patch)