WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#4825 closed defect (bug) (fixed)

post_deleted in wp-includes/widget.php should be deleted_post

Reported by: donncha Owned by: westi
Milestone: 2.3 Priority: high
Severity: normal Version: 2.3
Component: General Keywords:
Focuses: Cc:

Description

The post_deleted action in post.php has been renamed to deleted_post but there's still mention of post_deleted in wp-includes/widgets.php on line 840

Should probably rename that add_action()in widgets.php

Change History (4)

comment:1 foolswisdom7 years ago

  • Milestone changed from 2.4 (next) to 2.3
  • Version set to 2.3

comment:2 westi7 years ago

  • Owner changed from anonymous to westi
  • Status changed from new to assigned

I'll fix this one later today.

comment:3 westi7 years ago

Hmm it looks like deleted_post never exists.

post_deleted was added in [5158] and does look like the right hook to run this on.

comment:4 westi7 years ago

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

(In [5960]) Ensure we flush the recent entries widget cache after a post has been deleted. Fixes #4825 props donncha

Note: See TracTickets for help on using tickets.