Docs: Various docblock improvements.

See #54729


git-svn-id: https://develop.svn.wordpress.org/trunk@53299 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2022-04-28 09:44:12 +00:00
parent 832429e9b2
commit 33c08f16d1
12 changed files with 65 additions and 30 deletions

View File

@@ -1661,8 +1661,13 @@ function wp_check_post_lock( $post_id ) {
* @since 2.5.0
*
* @param int|WP_Post $post_id ID or object of the post being edited.
* @return array|false Array of the lock time and user ID. False if the post does not exist, or
* there is no current user.
* @return array|false {
* Array of the lock time and user ID. False if the post does not exist, or there
* is no current user.
*
* @type int $0 The current time as a Unix timestamp.
* @type int $1 The ID of the current user.
* }
*/
function wp_set_post_lock( $post_id ) {
$post = get_post( $post_id );