mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Custom post type archives, second pass. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15819 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -924,7 +924,7 @@ function register_post_type($post_type, $args = array()) {
|
||||
if ( !isset($args->rewrite['archive']) )
|
||||
$args->rewrite['archive'] = false;
|
||||
if ( !isset($args->rewrite['feeds']) || !$args->rewrite['archive'] )
|
||||
$args->rewrite['feeds'] = false;
|
||||
$args->rewrite['feeds'] = (bool) $args->rewrite['archive'];
|
||||
|
||||
if ( $args->hierarchical )
|
||||
$wp_rewrite->add_rewrite_tag("%$post_type%", '(.+?)', $args->query_var ? "{$args->query_var}=" : "post_type=$post_type&name=");
|
||||
|
||||
Reference in New Issue
Block a user