Changeset 7437
- Timestamp:
- 03/21/08 03:08:22 (6 months ago)
- Files:
-
- trunk/wp-includes/link-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/link-template.php
r7262 r7437 180 180 else 181 181 $parentlink = get_permalink( $object->post_parent ); 182 if ( ctype_digit($object->post_name) ) 183 $name = 'attachment/' . $object->post_name; // <permalink>/<int>/ is paged so we use the explicit attachment marker 184 else 185 $name = $object->post_name; 182 186 if (strpos($parentlink, '?') === false) 183 $link = trailingslashit($parentlink) . $ object->post_name . '/';187 $link = trailingslashit($parentlink) . $name . '/'; 184 188 } 185 189
