Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#16030 closed defect (bug) (fixed)

PHP Notice on post save when post meta has been deleted

Reported by: cyberhobo's profile cyberhobo Owned by: markjaquith's profile markjaquith
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.1
Component: Warnings/Notices Keywords: dev-feedback has-patch
Focuses: Cc:

Description

I think this began with the fix for #15276, but appears to be a separate problem. With WP_DEBUG set, deleting a post meta item (custom field) followed by a publish/save produces this notice:

Notice: Trying to get property of non-object in /Applications/MAMP/htdocs/wp-svn/wp-admin/includes/post.php on line 719

Attachments (1)

16030.diff (534 bytes) - added by cyberhobo 14 years ago.
Quick fix for the symptom - not sure if there are deeper issues to consider.

Download all attachments as: .zip

Change History (5)

@cyberhobo
14 years ago

Quick fix for the symptom - not sure if there are deeper issues to consider.

#1 @cyberhobo
14 years ago

  • Keywords has-patch added

Added the most obvious (to me) patch.

#2 @markjaquith
14 years ago

  • Milestone changed from Awaiting Review to Future Release
  • Owner set to markjaquith
  • Status changed from new to accepted

Looks okay. 3.2

#3 @SergeyBiryukov
14 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

Already fixed in [17223].

#4 @nacin
14 years ago

  • Milestone changed from Future Release to 3.1
Note: See TracTickets for help on using tickets.