From 2774bb1116fa8d7f2e3a5116dcad6dd1427a69a3 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 10 Mar 2016 18:24:45 +0000 Subject: [PATCH] Docs: Improve the accuracy of the return description for `unregister_post_type()`, introduced in [36316]. See #14761. See #35986. git-svn-id: https://develop.svn.wordpress.org/trunk@36944 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index d5f4f0e0ba..37930194ea 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -1205,7 +1205,7 @@ function register_post_type( $post_type, $args = array() ) { * @global array $wp_post_types List of post types. * * @param string $post_type Post type to unregister. - * @return bool|WP_Error True on success, WP_Error on failure. + * @return bool|WP_Error True on success, WP_Error on failure or if the post type doesn't exist. */ function unregister_post_type( $post_type ) { if ( ! post_type_exists( $post_type ) ) {