Changeset 8577 for trunk/wp-admin/includes/post.php
- Timestamp:
- 08/06/2008 09:31:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r8546 r8577 162 162 wp_set_post_lock( $post_ID, $GLOBALS['current_user']->ID ); 163 163 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 } 168 170 169 171 return $post_ID;
Note: See TracChangeset
for help on using the changeset viewer.