Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#8860 closed defect (bug) (fixed)

Sticky Posts Not Unstuck When Deleted

Reported by: chrisscott Owned by: jamierumbelow
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.7
Component: General Keywords: has-patch
Focuses: Cc:


Sticky posts are not being unstuck when they are deleted. This results in the sticky_posts option array containing deleted posts.

Attachments (1)

sticky-post-unstick.diff (560 bytes) - added by jamierumbelow 7 years ago.
Fix for the unsticky post delete bug

Download all attachments as: .zip

Change History (8)

comment:1 @jamierumbelow7 years ago

  • Owner changed from anonymous to jamierumbelow

I'll look into it.

comment:2 @jamierumbelow7 years ago

  • Status changed from new to assigned

I can verify - working on a fix

@jamierumbelow7 years ago

Fix for the unsticky post delete bug

comment:3 @jamierumbelow7 years ago

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

comment:4 @DD327 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Please leave closing tickets as 'fixed' until the change is committed to SVN

comment:5 @DD327 years ago

  • Keywords has-patch added

comment:6 @azaozz7 years ago

Think this should go in wp_delete_post() and doesn't need to check if the post is sticky as unstick_post() does that already.

comment:7 @azaozz7 years ago

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

(In [10363]) "Unstick" posts when deleting, fixes #8860

Note: See TracTickets for help on using tickets.