From 74fc4c66038a79bf7cda954b48df9341cf97ea1e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 1 May 2016 10:15:51 +0000 Subject: [PATCH] Docs: Document the `@return` value of `wp_add_trashed_suffix_to_post_name_for_post()`. Props Shelob9. Fixes #36728. git-svn-id: https://develop.svn.wordpress.org/trunk@37334 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 9e2efe8f34..aae5db0a04 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -6112,7 +6112,7 @@ function wp_add_trashed_suffix_to_post_name_for_trashed_posts( $post_name, $post } /** - * Adds a trashed suffix For a given post. + * Adds a trashed suffix for a given post. * * Store its desired (i.e. current) slug so it can try to reclaim it * if the post is untrashed. @@ -6123,6 +6123,7 @@ function wp_add_trashed_suffix_to_post_name_for_trashed_posts( $post_name, $post * @access private * * @param WP_Post $post The post. + * @return string New slug for the post. */ function wp_add_trashed_suffix_to_post_name_for_post( $post ) { global $wpdb;