Unset capabilities property when we're done. see #13358.

git-svn-id: https://develop.svn.wordpress.org/trunk@14589 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-05-12 21:17:38 +00:00
parent 490a0a99cd
commit 7c0dcdca6b
1 changed files with 1 additions and 0 deletions

View File

@ -824,6 +824,7 @@ function register_post_type($post_type, $args = array()) {
$args->capability_type = 'post'; $args->capability_type = 'post';
$args->cap = get_post_type_capabilities( $args ); $args->cap = get_post_type_capabilities( $args );
unset($args->capabilities);
if ( ! empty($args->supports) ) { if ( ! empty($args->supports) ) {
add_post_type_support($post_type, $args->supports); add_post_type_support($post_type, $args->supports);