mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Unset capabilities property when we're done. see #13358.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
70f36f6c41
commit
e15c230ffc
@ -824,6 +824,7 @@ function register_post_type($post_type, $args = array()) {
|
||||
$args->capability_type = 'post';
|
||||
|
||||
$args->cap = get_post_type_capabilities( $args );
|
||||
unset($args->capabilities);
|
||||
|
||||
if ( ! empty($args->supports) ) {
|
||||
add_post_type_support($post_type, $args->supports);
|
||||
|
Loading…
Reference in New Issue
Block a user