mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Sticky Posts, firct cut. see #7457
git-svn-id: https://develop.svn.wordpress.org/trunk@8546 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -161,6 +161,11 @@ function edit_post() {
|
||||
|
||||
wp_set_post_lock( $post_ID, $GLOBALS['current_user']->ID );
|
||||
|
||||
if ( !empty($_POST['sticky']) )
|
||||
stick_post($post_ID);
|
||||
else
|
||||
unstick_post($post_ID);
|
||||
|
||||
return $post_ID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user