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:
parent
cae6e8d4ef
commit
8c86414798
@ -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' ) );
|
||||
|
Loading…
Reference in New Issue
Block a user