Ticket #14296: 14296.diff
| File 14296.diff, 693 bytes (added by zeo, 3 years ago) |
|---|
-
wp-includes/link-template.php
1342 1342 * @param bool $previous Optional, default is true. Whether display link to previous post. 1343 1343 */ 1344 1344 function adjacent_post_link($format, $link, $in_same_cat = false, $excluded_categories = '', $previous = true) { 1345 if ( $previous && is_attachment() )1345 if ( $previous && is_attachment() && !empty($GLOBALS['post']->post_parent) ) 1346 1346 $post = & get_post($GLOBALS['post']->post_parent); 1347 1347 else 1348 1348 $post = get_adjacent_post($in_same_cat, $excluded_categories, $previous);
