Docs: Improve the accuracy of the return description for `unregister_post_type()`, introduced in [36316].

See #14761. See #35986.

Built from https://develop.svn.wordpress.org/trunk@36944


git-svn-id: http://core.svn.wordpress.org/trunk@36912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2016-03-10 18:25:25 +00:00
parent 91460e2af1
commit 49803ffabe
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-beta3-36943';
$wp_version = '4.5-beta3-36944';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.