Code Duplication    Length = 4-4 lines in 2 locations

geodirectory-functions/shortcode_functions.php 1 location

@@ 613-616 (lines=4) @@
610
        $query_args['show_special_only'] = 1;
611
    }
612
613
    if (!empty($args['with_pics_only'])) {
614
        $query_args['with_pics_only'] = 0;
615
        $query_args['featured_image_only'] = 1;
616
    }
617
618
    if (!empty($args['with_videos_only'])) {
619
        $query_args['with_videos_only'] = 1;

geodirectory-functions/general_functions.php 1 location

@@ 3715-3718 (lines=4) @@
3712
		$query_args['show_special_only'] = 1;
3713
	}
3714
3715
	if ( ! empty( $instance['with_pics_only'] ) ) {
3716
		$query_args['with_pics_only']      = 0;
3717
		$query_args['featured_image_only'] = 1;
3718
	}
3719
3720
	if ( ! empty( $instance['with_videos_only'] ) ) {
3721
		$query_args['with_videos_only'] = 1;