From 80dbface9c4d32400adbc179c11726a7a259eed3 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 13 Sep 2009 08:34:24 +0000 Subject: [PATCH] phpDoc for wp_{check|set}_post_lock functions. git-svn-id: https://develop.svn.wordpress.org/trunk@11922 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/post.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 116056bd68..25811b0119 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1026,11 +1026,11 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) { } /** - * {@internal Missing Short Description}} + * Check to see if the post is currently being edited by another user. * - * @since unknown + * @since 2.5.0 * - * @param unknown_type $post_id + * @param int $post_id ID of the post to check for editing * @return bool|int False: not locked or locked by current user. Int: user ID of user with lock. */ function wp_check_post_lock( $post_id ) { @@ -1050,12 +1050,12 @@ function wp_check_post_lock( $post_id ) { } /** - * {@internal Missing Short Description}} + * Mark the post as currently being edited by the current user * - * @since unknown + * @since 2.5.0 * - * @param unknown_type $post_id - * @return unknown + * @param int $post_id ID of the post to being edited + * @return bool Returns false if the post doesn't exist of there is no current user */ function wp_set_post_lock( $post_id ) { global $current_user;