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
This commit is contained in:
parent
4c0c3f769f
commit
2774bb1116
@ -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 ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user