Plugin Directory

Changeset 2601411


Ignore:
Timestamp:
09/19/2021 08:52:02 PM (5 years ago)
Author:
reader87
Message:

doamin_search_shortcodes.php file updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dominion-domain-checker-wpbakery-addon/trunk/modules/domain_search/domain_search_6/doamin_search_shortcodes.php

    r2601062 r2601411  
    127127                if(!empty($domain)){
    128128        $output1 = '<select id="domainext_domain_search_6" class="ft-drlist" name="domainext_domain_search_6">';
    129          $domain = !empty($domain) ? explode("\n", trim($domain)) : array();
     129       
     130        $domain = !empty($domain) ? explode("\n", trim($domain)) : array();
     131        $domain = !empty($domain) ? implode(" ", $domain) : '';
     132        $domain = !empty($domain) ? explode(" ", $domain) : array();
     133       
    130134          foreach ( $domain as $label ) {
    131            if( $label ) {   
    132              $extvalue = str_replace(array('<br />'), '', $label);
    133              $output1 .= '<option value="'.$extvalue.'">'.htmlspecialchars_decode($label).'</option>';
     135           if( $label ) {
     136             $output1 .= '<option value="'.htmlspecialchars_decode($label).'">'.htmlspecialchars_decode($label).'</option>';
    134137           }
    135138          }
     
    160163
    161164
    162 //if(class_exists('WPBakeryVisualComposerAbstract')) {
     165if(class_exists('WPBakeryVisualComposerAbstract')) {
    163166    include_once('doamin_search_vc_shortcodes.php');
    164 //}
     167}
Note: See TracChangeset for help on using the changeset viewer.