WordPress.org

Make WordPress Core

Changeset 16793


Ignore:
Timestamp:
12/08/2010 09:15:09 AM (9 years ago)
Author:
scribu
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r16789 r16793  
    841841
    842842    if ( get_option( 'permalink_structure' ) && is_array( $post_type_obj->rewrite ) ) {
    843         $struct = $post_type_obj->rewrite['slug'];
     843        $struct = ( true === $post_type_obj->has_archive ) ? $post_type_obj->rewrite['slug'] : $post_type_obj->has_archive;
    844844        if ( $post_type_obj->rewrite['with_front'] )
    845845            $struct = $wp_rewrite->front . $struct;
Note: See TracChangeset for help on using the changeset viewer.