Code Duplication    Length = 11-12 lines in 2 locations

src/wp-includes/link-template.php 2 locations

@@ 2219-2230 (lines=12) @@
2216
	if ( null === $label )
2217
		$label = __( 'Next Page »' );
2218
2219
	if ( !is_single() && ( $nextpage <= $max_page ) ) {
2220
		/**
2221
		 * Filters the anchor tag attributes for the next posts page link.
2222
		 *
2223
		 * @since 2.7.0
2224
		 *
2225
		 * @param string $attributes Attributes for the anchor tag.
2226
		 */
2227
		$attr = apply_filters( 'next_posts_link_attributes', '' );
2228
2229
		return '<a href="' . next_posts( $max_page, false ) . "\" $attr>" . preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&#038;$1', $label) . '</a>';
2230
	}
2231
}
2232
2233
/**
@@ 2302-2312 (lines=11) @@
2299
	if ( null === $label )
2300
		$label = __( '&laquo; Previous Page' );
2301
2302
	if ( !is_single() && $paged > 1 ) {
2303
		/**
2304
		 * Filters the anchor tag attributes for the previous posts page link.
2305
		 *
2306
		 * @since 2.7.0
2307
		 *
2308
		 * @param string $attributes Attributes for the anchor tag.
2309
		 */
2310
		$attr = apply_filters( 'previous_posts_link_attributes', '' );
2311
		return '<a href="' . previous_posts( false ) . "\" $attr>". preg_replace( '/&([^#])(?![a-z]{1,8};)/i', '&#038;$1', $label ) .'</a>';
2312
	}
2313
}
2314
2315
/**