Plugin Directory

Changeset 2683712


Ignore:
Timestamp:
02/23/2022 12:16:53 PM (4 years ago)
Author:
pavlo.opanasenko
Message:

Version 1.6.2

Location:
searchwp-live-ajax-search
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • searchwp-live-ajax-search/tags/1.6.2/includes/class-client.php

    r2455620 r2683712  
    104104            } else {
    105105                // native WordPress search
    106                 $args = $_POST;
    107                 $args['s'] = $query;
    108                 if ( ! isset( $_REQUEST['post_status'] ) ) {
    109                     $args['post_status'] = 'publish';
    110                 }
    111                 if ( ! isset( $_REQUEST['post_type'] ) ) {
    112                     $args['post_type'] = get_post_types( array(
    113                         'public'              => true,
    114                         'exclude_from_search' => false,
    115                     ) );
    116                 }
     106                $args = array(
     107                    's'           => $query,
     108                    'post_status' => 'publish',
     109                    'post_type'   => get_post_types(
     110                        array(
     111                            'public'              => true,
     112                            'exclude_from_search' => false,
     113                        )
     114                    ),
     115                );
    117116            }
    118117
  • searchwp-live-ajax-search/tags/1.6.2/readme.txt

    r2682016 r2683712  
    44Requires at least: 3.9
    55Tested up to: 5.9.1
    6 Stable tag: 1.6.1
     6Stable tag: 1.6.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7676
    7777== Changelog ==
     78
     79= 1.6.2 =
     80* Limits the arguments passed to the query when used with the WordPress native search.
    7881
    7982= 1.6.1 =
  • searchwp-live-ajax-search/tags/1.6.2/searchwp-live-ajax-search.php

    r2682016 r2683712  
    44Plugin URI: https://searchwp.com/
    55Description: Enhance your search forms with live search, powered by SearchWP (if installed)
    6 Version: 1.6.1
     6Version: 1.6.2
    77Requires PHP: 5.6
    88Author: SearchWP, LLC
     
    4545    public $dir;
    4646    public $url;
    47     public $version = '1.6.1';
     47    public $version = '1.6.2';
    4848    public $results = array();
    4949
     
    6666        }
    6767
    68         if ( version_compare( $this->last_version, '1.6.1', '<' ) ) {
     68        if ( version_compare( $this->last_version, '1.6.2', '<' ) ) {
    6969            update_option( 'searchwp_live_search_last_update', current_time( 'timestamp' ) );
    7070            $this->after_upgrade();
  • searchwp-live-ajax-search/trunk/includes/class-client.php

    r2455620 r2683712  
    104104            } else {
    105105                // native WordPress search
    106                 $args = $_POST;
    107                 $args['s'] = $query;
    108                 if ( ! isset( $_REQUEST['post_status'] ) ) {
    109                     $args['post_status'] = 'publish';
    110                 }
    111                 if ( ! isset( $_REQUEST['post_type'] ) ) {
    112                     $args['post_type'] = get_post_types( array(
    113                         'public'              => true,
    114                         'exclude_from_search' => false,
    115                     ) );
    116                 }
     106                $args = array(
     107                    's'           => $query,
     108                    'post_status' => 'publish',
     109                    'post_type'   => get_post_types(
     110                        array(
     111                            'public'              => true,
     112                            'exclude_from_search' => false,
     113                        )
     114                    ),
     115                );
    117116            }
    118117
  • searchwp-live-ajax-search/trunk/readme.txt

    r2682016 r2683712  
    44Requires at least: 3.9
    55Tested up to: 5.9.1
    6 Stable tag: 1.6.1
     6Stable tag: 1.6.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7676
    7777== Changelog ==
     78
     79= 1.6.2 =
     80* Limits the arguments passed to the query when used with the WordPress native search.
    7881
    7982= 1.6.1 =
  • searchwp-live-ajax-search/trunk/searchwp-live-ajax-search.php

    r2682016 r2683712  
    44Plugin URI: https://searchwp.com/
    55Description: Enhance your search forms with live search, powered by SearchWP (if installed)
    6 Version: 1.6.1
     6Version: 1.6.2
    77Requires PHP: 5.6
    88Author: SearchWP, LLC
     
    4545    public $dir;
    4646    public $url;
    47     public $version = '1.6.1';
     47    public $version = '1.6.2';
    4848    public $results = array();
    4949
     
    6666        }
    6767
    68         if ( version_compare( $this->last_version, '1.6.1', '<' ) ) {
     68        if ( version_compare( $this->last_version, '1.6.2', '<' ) ) {
    6969            update_option( 'searchwp_live_search_last_update', current_time( 'timestamp' ) );
    7070            $this->after_upgrade();
Note: See TracChangeset for help on using the changeset viewer.