From 674196a2efd519641732f82ed709a0c3852ab997 Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 23 Jan 2012 19:32:39 +0000 Subject: [PATCH] Args is an object, not an array. props duck_, aaroncampbell. see #19275. git-svn-id: http://svn.automattic.com/wordpress/trunk@19740 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index bc07767a50..01d8f78685 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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; }