mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 07:07:04 +00:00
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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user