Docs: Add a missing version to the file header for wp-admin/term.php, introduced in [36308].
See #34988. See #33701. Built from https://develop.svn.wordpress.org/trunk@36497 git-svn-id: http://core.svn.wordpress.org/trunk@36464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f3aeb0def3
commit
3785385ea2
|
@ -4,6 +4,7 @@
|
||||||
*
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
|
* @since 4.5.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** WordPress Administration Bootstrap */
|
/** WordPress Administration Bootstrap */
|
||||||
|
|
|
@ -1188,9 +1188,9 @@ function register_post_type( $post_type, $args = array() ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unregister a post type.
|
* Un-registers a post type.
|
||||||
*
|
*
|
||||||
* Can not be used to unregister built-in post types.
|
* Can not be used to un-register built-in post types.
|
||||||
*
|
*
|
||||||
* @since 4.5.0
|
* @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 $post_type_meta_caps Used to remove meta capabilities.
|
||||||
* @global array $wp_post_types List of post types.
|
* @global array $wp_post_types List of post types.
|
||||||
*
|
*
|
||||||
* @param string $post_type Post type key.
|
* @param string $post_type Post type to un-register.
|
||||||
* @return bool|WP_Error True on success, WP_Error on failure.
|
* @return bool|WP_Error True on success, WP_Error on failure.
|
||||||
*/
|
*/
|
||||||
function unregister_post_type( $post_type ) {
|
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 );
|
$post_type_args = get_post_type_object( $post_type );
|
||||||
|
|
||||||
// Do not allow unregistering internal post types.
|
// Do not allow un-registering internal post types.
|
||||||
if ( $post_type_args->_builtin ) {
|
if ( $post_type_args->_builtin ) {
|
||||||
return new WP_Error( 'invalid_post_type', __( 'Unregistering a built-in post type is not allowed' ) );
|
return new WP_Error( 'invalid_post_type', __( 'Unregistering a built-in post type is not allowed' ) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-alpha-36496';
|
$wp_version = '4.5-alpha-36497';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue