Ticket #2801: get_attachment_link-trim-fix.diff
| File get_attachment_link-trim-fix.diff, 555 bytes (added by Libertus, 6 years ago) |
|---|
-
wp-includes/template-functions-links.php
125 125 $parent = get_post($object->post_parent); 126 126 $parentlink = get_permalink($object->post_parent); 127 127 if (! strstr($parentlink, '?') ) 128 $link = trim($parentlink, '/') . '/' . $object->post_name . '/';128 $link = rtrim($parentlink, '/') . '/' . $object->post_name . '/'; 129 129 } 130 130 131 131 if (! $link ) {
