[wp-trac] [WordPress Trac] #25127: Saving an empty draft sticky post leads to auto-drafts being marked as sticky (was: Missing Empty Posts)

WordPress Trac noreply at wordpress.org
Fri Aug 23 21:11:18 UTC 2013


#25127: Saving an empty draft sticky post leads to auto-drafts being marked as
sticky
----------------------------+-----------------------
 Reporter:  druesome        |       Owner:
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  3.7
Component:  Administration  |     Version:  3.6
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |
----------------------------+-----------------------
Changes (by westi):

 * status:  closed => reopened
 * milestone:   => 3.7
 * keywords:   => needs-patch
 * resolution:  duplicate =>


Old description:

> Reporting various cases where a posts with no title or content go missing
> in the Posts page:
>
> Case 1: Empty post saved as draft does not appear in Posts page, does not
> increment number of Total Posts and Draft Posts.
> To reproduce error:
> 1. Create New Post, leave everything empty
> 2. Click Save as Draft
>
> Case 2: Empty post set as sticky and saved as draft does not appear in
> Posts page, increments number of Sticky Posts, does not increment number
> of Total Posts and Draft Posts.
> To reproduce error:
> 1. Create New Post, leave everything empty
> 2. Tick 'Stick this post to the front page'
> 3. Click Save as Draft
>
> Case 3: Empty post that is published does not appear in Posts page, does
> not increment number of Total Posts and Published Posts.
> To reproduce error:
> 1. Create New Post, leave everything empty
> 2. Publish Post
>
> Case 4: Empty post that is set as sticky and published does not appear in
> Posts page, increments number of Sticky Posts, does not increment number
> of Total Posts and Published Posts.
> To reproduce error:
> 1. Create New Post, leave everything empty
> 2. Tick 'Stick this post to the front page'
> 3. Publish Post
>
> All errors reproduced in a clean install of WordPress v3.6, default theme
> with no plugins activated.
>
> [[Image(http://i.imgur.com/bXZzm5F.jpg)]]

New description:

 If you save an empty post set as sticky as draft it increments number of
 Sticky Posts because the auto-draft's ID ends up in the list of sticky
 posts:

 To reproduce error:
 1. Create New Post, leave everything empty
 2. Tick 'Stick this post to the front page'
 3. Click Save as Draft

 Reproduced in a clean install of WordPress v3.6, default theme with no
 plugins activated.

 [[Image(http://i.imgur.com/bXZzm5F.jpg)]]

--

Comment:

 Re-opening and focusing on the specific different issue from the other
 tickets and a specific issue which can easily be solved independently.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25127#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list