WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 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:

Description

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 6 years ago.
Fix for the unsticky post delete bug

Download all attachments as: .zip

Change History (8)

comment:1 @jamierumbelow6 years ago

  • Owner changed from anonymous to jamierumbelow

I'll look into it.

comment:2 @jamierumbelow6 years ago

  • Status changed from new to assigned

I can verify - working on a fix

@jamierumbelow6 years ago

Fix for the unsticky post delete bug

comment:3 @jamierumbelow6 years ago

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

comment:4 @DD326 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 @DD326 years ago

  • Keywords has-patch added

comment:6 @azaozz6 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 @azaozz6 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.