[wp-trac] [WordPress Trac] #12702: Enable sticky post checkbox for custom post type Publish metabox

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 27 08:42:39 UTC 2010


#12702: Enable sticky post checkbox for custom post type Publish metabox
-----------------------------+----------------------------------------------
 Reporter:  phlux0r          |       Owner:             
     Type:  feature request  |      Status:  new        
 Priority:  normal           |   Milestone:  3.1        
Component:  Post Types       |     Version:             
 Severity:  normal           |    Keywords:  needs-patch
-----------------------------+----------------------------------------------

Comment(by nacin):

 {{{
         if ( current_user_can( 'edit_others_posts' ) ) {
                 if ( !empty($post_data['sticky']) )
                         stick_post($post_ID);
                 else
                         unstick_post($post_ID);
         }
 }}}

 Just stumbled across that code in edit_post(). Thinking we need to pull
 the post type object and do a proper cap check there, otherwise someone
 will need the post edit_others_post cap for a custom post type to properly
 stick/unstick.

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


More information about the wp-trac mailing list