Code Duplication    Length = 8-8 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 4642-4649 (lines=8) @@
4639
		$post_type = get_query_var( 'post_type' );
4640
	}
4641
4642
	if ( strpos( $title, '%%pt_single%%' ) !== false ) {
4643
		$singular_name = '';
4644
		if ( $post_type && $singular_name = get_post_type_singular_label( $post_type ) ) {
4645
			$singular_name = __( $singular_name, 'geodirectory' );
4646
		}
4647
4648
		$title = str_replace( "%%pt_single%%", $singular_name, $title );
4649
	}
4650
4651
	if ( strpos( $title, '%%pt_plural%%' ) !== false ) {
4652
		$plural_name = '';
@@ 4651-4658 (lines=8) @@
4648
		$title = str_replace( "%%pt_single%%", $singular_name, $title );
4649
	}
4650
4651
	if ( strpos( $title, '%%pt_plural%%' ) !== false ) {
4652
		$plural_name = '';
4653
		if ( $post_type && $plural_name = get_post_type_plural_label( $post_type ) ) {
4654
			$plural_name = __( $plural_name, 'geodirectory' );
4655
		}
4656
4657
		$title = str_replace( "%%pt_plural%%", $plural_name, $title );
4658
	}
4659
4660
	if ( strpos( $title, '%%category%%' ) !== false ) {
4661
		$cat_name = '';