WordPress.org

Plugin Directory


Ignore:
Timestamp:
07/18/17 16:14:26 (5 weeks ago)
Author:
bastho
Message:

Improved search UI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • event-post/trunk/eventpost.php

    r1698242 r1698281  
    520520            $deps = array('jquery'); 
    521521        } 
    522         if($this->settings['datepicker']=='simple' || (isset($_GET['page']) && $_GET['page']=='event-settings')){ 
     522        if($this->settings['datepicker']=='simple' || !is_admin() || (isset($_GET['page']) && $_GET['page']=='event-settings')){ 
    523523            wp_enqueue_script('jquery-ui-datepicker'); 
    524524            $deps[] = 'jquery-ui-datepicker'; 
     
    530530        } 
    531531        wp_localize_script('event-post-admin', 'eventpost', array( 
     532            'ajaxurl' => admin_url('admin-ajax.php'), 
    532533            'imgpath' => plugins_url('/img/', __FILE__), 
    533534            'date_choose' => '<span class="screen-reader-text">'.__('Choose', 'event-post').'</span><i class="dashicons dashicons-calendar-alt"></i>', 
     
    19231924        $tax = (false !== $tax = filter_input(INPUT_GET, 'tax')) ? $tax : ''; 
    19241925 
     1926        if(empty(str_replace(array('0', ' ', ':', '-'), '', $from))){ 
     1927            $from=false; 
     1928        } 
     1929        if(empty(str_replace(array('0', ' ', ':', '-'), '', $to))){ 
     1930            $to=false; 
     1931        } 
     1932 
    19251933        // Search form 
    19261934        $this->admin_scripts(null, true); 
Note: See TracChangeset for help on using the changeset viewer.