Ticket #16626: 16626.diff
File 16626.diff, 796 bytes (added by , 14 years ago) |
---|
-
wp-includes/post.php
985 985 986 986 if ( $args->has_archive ) { 987 987 $archive_slug = $args->has_archive === true ? $args->rewrite['slug'] : $args->has_archive; 988 if ( $args->rewrite['with_front'] ) 989 $archive_slug = substr( $wp_rewrite->front, 1 ) . $archive_slug; 990 988 991 $wp_rewrite->add_rule( "{$archive_slug}/?$", "index.php?post_type=$post_type", 'top' ); 989 992 if ( $args->rewrite['feeds'] && $wp_rewrite->feeds ) { 990 993 $feeds = '(' . trim( implode( '|', $wp_rewrite->feeds ) ) . ')'; … … 5236 5239 } 5237 5240 add_filter( 'wp_get_object_terms', '_post_format_wp_get_object_terms' ); 5238 5241 5239 ?> 5240 No newline at end of file 5242 ?>