Make WordPress Core

Ticket #2801: 2801.diff

File 2801.diff, 500 bytes (added by Nazgul, 17 years ago)
  • wp-includes/link-template.php

     
    168168                else
    169169                        $parentlink = get_permalink( $object->post_parent );
    170170                if (strpos($parentlink, '?') === false)
    171                         $link = trim($parentlink, '/') . '/' . $object->post_name . '/';
     171                        $link = rtrim($parentlink, '/') . '/' . $object->post_name . '/';
    172172        }
    173173
    174174        if (! $link ) {