Revert logic change made in [16789]. See #13818

git-svn-id: https://develop.svn.wordpress.org/trunk@16793 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-12-08 09:15:09 +00:00
parent cae6e8d4ef
commit 8c86414798
1 changed files with 1 additions and 1 deletions

View File

@ -840,7 +840,7 @@ function get_post_type_archive_link( $post_type ) {
return false;
if ( get_option( 'permalink_structure' ) && is_array( $post_type_obj->rewrite ) ) {
$struct = $post_type_obj->rewrite['slug'];
$struct = ( true === $post_type_obj->has_archive ) ? $post_type_obj->rewrite['slug'] : $post_type_obj->has_archive;
if ( $post_type_obj->rewrite['with_front'] )
$struct = $wp_rewrite->front . $struct;
$link = home_url( user_trailingslashit( $struct, 'post_type_archive' ) );