Code Duplication    Length = 7-7 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 4721-4727 (lines=7) @@
4718
	 */
4719
	$title = apply_filters( 'geodir_replace_location_variables', $title, $location_array, $gd_page, $sep );
4720
	
4721
	if ( strpos( $title, '%%search_term%%' ) !== false ) {
4722
		$search_term = '';
4723
		if ( isset( $_REQUEST['s'] ) ) {
4724
			$search_term = esc_attr( $_REQUEST['s'] );
4725
		}
4726
		$title = str_replace( "%%search_term%%", $search_term, $title );
4727
	}
4728
4729
	if ( strpos( $title, '%%search_near%%' ) !== false ) {
4730
		$search_term = '';
@@ 4729-4735 (lines=7) @@
4726
		$title = str_replace( "%%search_term%%", $search_term, $title );
4727
	}
4728
4729
	if ( strpos( $title, '%%search_near%%' ) !== false ) {
4730
		$search_term = '';
4731
		if ( isset( $_REQUEST['snear'] ) ) {
4732
			$search_term = esc_attr( $_REQUEST['snear'] );
4733
		}
4734
		$title = str_replace( "%%search_near%%", $search_term, $title );
4735
	}
4736
4737
	if ( strpos( $title, '%%name%%' ) !== false ) {
4738
		if ( is_author() ) {