Code Duplication    Length = 7-7 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 4446-4452 (lines=7) @@
4443
    }
4444
4445
4446
    if(strpos($title,'%%search_term%%') !== false){
4447
        $search_term = '';
4448
        if(isset($_REQUEST['s'])){
4449
            $search_term = esc_attr($_REQUEST['s']);
4450
        }
4451
        $title = str_replace("%%search_term%%",$search_term,$title);
4452
    }
4453
4454
    if(strpos($title,'%%search_near%%') !== false){
4455
        $search_term = '';
@@ 4454-4460 (lines=7) @@
4451
        $title = str_replace("%%search_term%%",$search_term,$title);
4452
    }
4453
4454
    if(strpos($title,'%%search_near%%') !== false){
4455
        $search_term = '';
4456
        if(isset($_REQUEST['snear'])){
4457
            $search_term = esc_attr($_REQUEST['snear']);
4458
        }
4459
        $title = str_replace("%%search_near%%",$search_term,$title);
4460
    }
4461
4462
    if(strpos($title,'%%name%%') !== false){
4463
        $author_name = get_the_author();