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:
parent
91460e2af1
commit
49803ffabe
|
@ -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 ) ) {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue