Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#27457 closed defect (bug) (fixed)

Avoid undefined function fatal on quickdraft save

Reported by: obenland Owned by: helen
Priority: normal Milestone: 3.9
Component: Administration Version: 3.8
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

In case it comes to an error when a quickdraft is saved, the call to wp_dashboard_quick_press() returns in a fatal error because wp-admin/includes/dashboard.php doesn't get included until a few lines later.

Introduced in r26144 (specifically here).

Attachments (1)

27457.diff​ (793 bytes ) - added by obenland 13 years ago.

Download all attachments as: .zip

Change History (5)

@obenland
13 years ago

This ticket was mentioned in IRC in #wordpress-dev by obenland. ​View the logs.


13 years ago

#2 @helen
13 years ago

  • Owner set to helen
  • Resolution → fixed
  • Status new → closed

In 27630:

Avoid an undefined function due to /wp-admin/includes/dashboard.php being included too late. props obenland. fixes #27457.

#3 follow-up: @nacin
13 years ago

  • Resolution fixed
  • Status closed → reopened

Can we double-check that the error condition actually works now? Since it's always been broken..

#4 in reply to: ↑ 3 @helen
13 years ago

  • Resolution → fixed
  • Status reopened → closed

Replying to nacin:

Can we double-check that the error condition actually works now? Since it's always been broken..

I did :)

Note: See TracTickets for help on using tickets.