From cb3396d39cb181c6f832d5fb92f019e07afdc13c Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 14 Oct 2010 11:31:48 +0000 Subject: [PATCH] Use correct variable. see #13818. git-svn-id: https://develop.svn.wordpress.org/trunk@15804 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index a972512d94..57f0795e9c 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -942,7 +942,7 @@ function register_post_type($post_type, $args = array()) { $wp_rewrite->add_rule( "{$archive_slug}/page/([0-9]{1,})/?$", "index.php?post_type=$post_type" . '&paged=$matches[1]', 'top' ); } - $wp_rewrite->add_permastruct($post_type, "{$archive_slug}/%$post_type%", $args->rewrite['with_front'], $args->permalink_epmask); + $wp_rewrite->add_permastruct($post_type, "{$args->rewrite['slug']}/%$post_type%", $args->rewrite['with_front'], $args->permalink_epmask); } if ( $args->register_meta_box_cb )