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
This commit is contained in:
Drew Jaynes 2017-07-01 16:36:20 +00:00
parent 2dff153c75
commit 0a9d2d6b8e

View File

@ -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() {