Ticket #14440: adjacent_post_link.patch
| File adjacent_post_link.patch, 628 bytes (added by mfields, 3 years ago) |
|---|
-
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 $override = apply_filters( 'override_adjacent_post_link', '' ); 1346 if( !empty( $override ) ) { 1347 return $override; 1348 } 1345 1349 if ( $previous && is_attachment() ) 1346 1350 $post = & get_post($GLOBALS['post']->post_parent); 1347 1351 else
