Revert logic change made in [16789]. See #13818
git-svn-id: http://svn.automattic.com/wordpress/trunk@16793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
39d0718bff
commit
b624542cc5
|
@ -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