[wp-trac] [WordPress Trac] #37012: Remove non hierarchical test for sticky in post table hidden fields

WordPress Trac noreply at wordpress.org
Fri Jun 3 09:19:34 UTC 2016


#37012: Remove non hierarchical test for sticky in post table hidden fields
----------------------------+-----------------------------
 Reporter:  nicolasrenard   |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 When you enabled sticky feature for custom posts or pages, the checkbox in
 quick edit links for hierarchical post types (so like pages) doesn't work.

 That's because there is a test on hierarchical type to add the sticky div
 (/wp-admin/includes/template.php:333).

 Why such a test while there is an is_sticky() test inside ?

 Is this test really useful ? I think it could be removed.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37012>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list