Code Duplication    Length = 7-7 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 4748-4754 (lines=7) @@
4745
	 */
4746
	$title = apply_filters( 'geodir_replace_location_variables', $title, $location_array, $gd_page, $sep );
4747
	
4748
	if ( strpos( $title, '%%search_term%%' ) !== false ) {
4749
		$search_term = '';
4750
		if ( isset( $_REQUEST['s'] ) ) {
4751
			$search_term = esc_attr( $_REQUEST['s'] );
4752
		}
4753
		$title = str_replace( "%%search_term%%", $search_term, $title );
4754
	}
4755
4756
	if ( strpos( $title, '%%search_near%%' ) !== false ) {
4757
		$search_term = '';
@@ 4756-4762 (lines=7) @@
4753
		$title = str_replace( "%%search_term%%", $search_term, $title );
4754
	}
4755
4756
	if ( strpos( $title, '%%search_near%%' ) !== false ) {
4757
		$search_term = '';
4758
		if ( isset( $_REQUEST['snear'] ) ) {
4759
			$search_term = esc_attr( $_REQUEST['snear'] );
4760
		}
4761
		$title = str_replace( "%%search_near%%", $search_term, $title );
4762
	}
4763
4764
	if ( strpos( $title, '%%name%%' ) !== false ) {
4765
		if ( is_author() ) {