diff --git a/wp-includes/post.php b/wp-includes/post.php
index 6e575ea949649333f1146d550c601e94e9d9138f..b94242e9fe1cef2ace8f4014cdb4999e550589c1 100644
a
|
b
|
function register_post_type( $post_type, $args = array() ) { |
1329 | 1329 | if ( $args->rewrite['pages'] ) |
1330 | 1330 | add_rewrite_rule( "{$archive_slug}/{$wp_rewrite->pagination_base}/([0-9]{1,})/?$", "index.php?post_type=$post_type" . '&paged=$matches[1]', 'top' ); |
1331 | 1331 | } |
1332 | | |
| 1332 | |
| 1333 | $args->rewrite['feed'] = $args->rewrite['feeds']; |
1333 | 1334 | add_permastruct( $post_type, "{$args->rewrite['slug']}/%$post_type%", $args->rewrite ); |
1334 | 1335 | } |
1335 | 1336 | |