From 305d44d04ecdf0005a5236a38c0bb9c529c8c959 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 7 Feb 2016 02:45:06 +0000 Subject: [PATCH] Docs: Revert unintended changes in wp-includes/post.php, mistakenly included in [36497]. See #34988. See #33701. git-svn-id: https://develop.svn.wordpress.org/trunk@36498 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index a116b1e825..43361d413a 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -1188,9 +1188,9 @@ function register_post_type( $post_type, $args = array() ) { } /** - * Un-registers a post type. + * Unregisters a post type. * - * Can not be used to un-register built-in post types. + * Can not be used to unregister built-in post types. * * @since 4.5.0 * @@ -1200,7 +1200,7 @@ function register_post_type( $post_type, $args = array() ) { * @global array $post_type_meta_caps Used to remove meta capabilities. * @global array $wp_post_types List of post types. * - * @param string $post_type Post type to un-register. + * @param string $post_type Post type to unregister. * @return bool|WP_Error True on success, WP_Error on failure. */ function unregister_post_type( $post_type ) { @@ -1210,7 +1210,7 @@ function unregister_post_type( $post_type ) { $post_type_args = get_post_type_object( $post_type ); - // Do not allow un-registering internal post types. + // Do not allow unregistering internal post types. if ( $post_type_args->_builtin ) { return new WP_Error( 'invalid_post_type', __( 'Unregistering a built-in post type is not allowed' ) ); }