Make WordPress Core

Opened 6 years ago

Closed 6 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:


Using the Error Reporting plugin I get

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' ) )

Would it not be easy enough to do a defined() before the constant() and eliminate the need for suppression?

Attachments (1)

10525.diff (453 bytes) - added by Denis-de-Bernardy 6 years ago.

Download all attachments as: .zip

Change History (4)

@Denis-de-Bernardy6 years ago

comment:1 @Denis-de-Bernardy6 years ago

  • Keywords has-patch added
  • Milestone changed from Unassigned to 2.9
  • Type changed from defect (bug) to enhancement

comment:2 @Denis-de-Bernardy6 years ago

  • Keywords commit added

(trivial patch)

comment:3 @ryan6 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.