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:
nacin 2010-05-12 21:17:38 +00:00
parent 70f36f6c41
commit e15c230ffc
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->cap = get_post_type_capabilities( $args );
unset($args->capabilities);
if ( ! empty($args->supports) ) {
add_post_type_support($post_type, $args->supports);