Code Duplication    Length = 4-4 lines in 2 locations

wp-includes/link-template.php 2 locations

@@ 1765-1768 (lines=4) @@
1762
 * @return string|void The adjacent post relational link URL.
1763
 */
1764
function get_adjacent_post_rel_link( $title = '%title', $in_same_term = false, $excluded_terms = '', $previous = true, $taxonomy = 'category' ) {
1765
	if ( $previous && is_attachment() && $post = get_post() )
1766
		$post = get_post( $post->post_parent );
1767
	else
1768
		$post = get_adjacent_post( $in_same_term, $excluded_terms, $previous, $taxonomy );
1769
1770
	if ( empty( $post ) )
1771
		return;
@@ 2007-2010 (lines=4) @@
2004
 * @return string The link URL of the previous or next post in relation to the current post.
2005
 */
2006
function get_adjacent_post_link( $format, $link, $in_same_term = false, $excluded_terms = '', $previous = true, $taxonomy = 'category' ) {
2007
	if ( $previous && is_attachment() )
2008
		$post = get_post( get_post()->post_parent );
2009
	else
2010
		$post = get_adjacent_post( $in_same_term, $excluded_terms, $previous, $taxonomy );
2011
2012
	if ( ! $post ) {
2013
		$output = '';