Make WordPress Core


Ignore:
Timestamp:
08/06/2008 09:31:40 PM (17 years ago)
Author:
markjaquith
Message:

Use the edit_others_posts capability for controlling sticky checkbox display and usage. see #7457

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r8546 r8577  
    162162    wp_set_post_lock( $post_ID, $GLOBALS['current_user']->ID );
    163163
    164     if ( !empty($_POST['sticky']) )
    165         stick_post($post_ID);
    166     else
    167         unstick_post($post_ID);
     164    if ( current_user_can( 'edit_others_posts' ) ) {
     165        if ( !empty($_POST['sticky']) )
     166            stick_post($post_ID);
     167        else
     168            unstick_post($post_ID);
     169    }
    168170
    169171    return $post_ID;
Note: See TracChangeset for help on using the changeset viewer.