WordPress.org

Make WordPress Core

Changeset 6095


Ignore:
Timestamp:
09/12/2007 05:46:13 PM (14 years ago)
Author:
westi
Message:

Ensure the parentlink is trailingslashed when building the url - don't trim / off the front. Fixes #2801 props Libertus

File:
1 edited

Legend:

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

    r6082 r6095  
    168168            $parentlink = get_permalink( $object->post_parent );
    169169        if (strpos($parentlink, '?') === false)
    170             $link = trim($parentlink, '/') . '/' . $object->post_name . '/';
     170            $link = trailingslashit($parentlink) . $object->post_name . '/';
    171171    }
    172172
Note: See TracChangeset for help on using the changeset viewer.