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:
parent
85a0652a83
commit
05d413f123
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue