Docs: Docblock corrections relating to WP_Post objects.

See #51373, #50768


git-svn-id: https://develop.svn.wordpress.org/trunk@49544 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2020-11-09 15:13:56 +00:00
parent 062db1e092
commit 8e25b92b63
5 changed files with 13 additions and 13 deletions
+5 -5
View File
@@ -1346,9 +1346,9 @@ function postbox_classes( $box_id, $screen_id ) {
*
* @since 2.5.0
*
* @param int $id Post ID or post object.
* @param string $title Optional. Title to override the post's current title when generating the post name. Default null.
* @param string $name Optional. Name to override the post name. Default null.
* @param int|WP_Post $id Post ID or post object.
* @param string $title Optional. Title to override the post's current title when generating the post name. Default null.
* @param string $name Optional. Name to override the post name. Default null.
* @return array {
* Array containing the sample permalink with placeholder for the post name, and the post name.
*
@@ -1596,7 +1596,7 @@ function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) {
*
* @since 2.5.0
*
* @param int $post_id ID of the post to check for editing.
* @param int|WP_Post $post_id ID or object of the post to check for editing.
* @return int|false ID of the user with lock. False if the post does not exist, post is not locked,
* the user with lock does not exist, or the post is locked by current user.
*/
@@ -1634,7 +1634,7 @@ function wp_check_post_lock( $post_id ) {
*
* @since 2.5.0
*
* @param int $post_id ID of the post being edited.
* @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.
*/