mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 11:44:33 +00:00
Docs: In various @return tags, list the expected type first, instead of false.
Follow-up to [46696]. See #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@47060 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -253,7 +253,7 @@ function wp_get_post_autosave( $post_id, $user_id = 0 ) {
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @param int|WP_Post $post Post ID or post object.
|
||||
* @return false|int False if not a revision, ID of revision's parent otherwise.
|
||||
* @return int|false ID of revision's parent on success, false if not a revision.
|
||||
*/
|
||||
function wp_is_post_revision( $post ) {
|
||||
$post = wp_get_post_revision( $post );
|
||||
@@ -270,7 +270,7 @@ function wp_is_post_revision( $post ) {
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @param int|WP_Post $post Post ID or post object.
|
||||
* @return false|int False if not a revision, ID of autosave's parent otherwise
|
||||
* @return int|false ID of autosave's parent on success, false if not a revision.
|
||||
*/
|
||||
function wp_is_post_autosave( $post ) {
|
||||
$post = wp_get_post_revision( $post );
|
||||
|
||||
Reference in New Issue
Block a user