Args is an object, not an array. props duck_, aaroncampbell. see #19275.

git-svn-id: https://develop.svn.wordpress.org/trunk@19740 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-01-23 19:32:39 +00:00
parent 85a0652a83
commit 05d413f123
1 changed files with 2 additions and 2 deletions

View File

@ -999,8 +999,8 @@ function register_post_type($post_type, $args = array()) {
if ( ! isset( $args->rewrite['feeds'] ) || ! $args->has_archive )
$args->rewrite['feeds'] = (bool) $args->has_archive;
if ( ! isset( $args->rewrite['ep_mask'] ) ) {
if ( isset( $args['permalink_epmask'] ) )
$args->rewrite['ep_mask'] = $args['permalink_epmask'];
if ( isset( $args->permalink_epmask ) )
$args->rewrite['ep_mask'] = $args->permalink_epmask;
else
$args->rewrite['ep_mask'] = EP_PERMALINK;
}