From 0a9d2d6b8e6c232bd20fd42cb301b7360568090c Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sat, 1 Jul 2017 16:36:20 +0000 Subject: [PATCH] Docs: Add a valid return type for `post_preview()` and improve the DocBlock summary. See #41017. git-svn-id: https://develop.svn.wordpress.org/trunk@40985 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index 8055a7b7dc..9dbc48f440 100644 --- a/src/wp-admin/includes/post.php +++ b/src/wp-admin/includes/post.php @@ -1722,12 +1722,12 @@ function wp_create_post_autosave( $post_data ) { } /** - * Save draft or manually autosave for showing preview. + * Saves a draft or manually autosaves for the purpose of showing a post preview. * * @package WordPress * @since 2.7.0 * - * @return str URL to redirect to show the preview + * @return string URL to redirect to show the preview. */ function post_preview() {