Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r17228 r17583  
    848848        if ( $post_type_obj->rewrite['with_front'] )
    849849            $struct = $wp_rewrite->front . $struct;
     850        else
     851            $struct = $wp_rewrite->root . $struct;
    850852        $link = home_url( user_trailingslashit( $struct, 'post_type_archive' ) );
    851853    } else {
     
    24122414        return;
    24132415
    2414     echo "<link rel='shortlink' href='" . esc_url_raw( $shortlink ) . "' />\n";
     2416    echo "<link rel='shortlink' href='" . esc_url( $shortlink ) . "' />\n";
    24152417}
    24162418
Note: See TracChangeset for help on using the changeset viewer.