#24246 closed defect (bug) (fixed)
PHP notices when attempting to delete/trash/untrash a deleted post
Reported by: | johnbillion | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.6 | Priority: | low |
Severity: | normal | Version: | 3.0 |
Component: | Warnings/Notices | Keywords: | has-patch |
Focuses: | Cc: |
Description
If you attempt to delete, trash or untrash a post that has been deleted prior, WP will die with wp_die()
but you'll get some notices too.
Attachments (2)
Change History (9)
#2
@
11 years ago
Example notice FYI:
Notice: Trying to get property of non-object in wp-admin\post.php on line 246
This refers to the $post_type_object
variable which isn't an object when the post doesn't exist.
#4
@
11 years ago
There is already a $post_type_object
check for the edit action, see trunk/wp-admin/post.php:23929#L142, which we could use here too.
Related: #20064
Note: See
TracTickets for help on using
tickets.
Patch.