Plugin Directory

Changeset 2558083


Ignore:
Timestamp:
07/03/2021 10:11:19 AM (5 years ago)
Author:
chilisearch
Message:
  • version update
Location:
chilisearch
Files:
21 added
3 edited

Legend:

Unmodified
Added
Removed
  • chilisearch/trunk/README.md

    r2540429 r2558083  
    8888## Changelog
    8989
     90### 2.0.7
     91* bug fix
     92
    9093### 2.0.6
    9194* add friend referral gift-code
  • chilisearch/trunk/chilisearch.php

    r2540429 r2558083  
    1313 * Plugin URI:        https://chilisearch.com
    1414 * Description:       Power up discovery of Posts, Pages, Media, WooCommerce and bbPress using our AI-Powered Search Engine.
    15  * Version:           2.0.6
     15 * Version:           2.0.7
    1616 * Author:            ChiliSearch
    1717 * Author URI:        https://chilisearch.com/
     
    3838}
    3939
    40 define( 'CHILISEARCH_VERSION', '2.0.6' );
     40define( 'CHILISEARCH_VERSION', '2.0.7' );
    4141define( 'CHILISEARCH_DIR', __DIR__ );
    4242define( 'CHILISEARCH_PHP_MINIMUM', '5.6.0' );
     
    673673            'publishedAt' => ! empty( $post->post_date_gmt ) ? $post->post_date_gmt : null,
    674674        ];
     675        if ( empty( $document['title'] ) ) {
     676            return false;
     677        }
    675678        switch ( $post->post_type ) {
    676679            case self::WP_POST_TYPE_PRODUCT:
     
    969972            return true;
    970973        }
     974        $siteInfo           = $this->get_website_info();
     975        $documentCount      = isset( $siteInfo['documentsCount'] ) ? (int) $siteInfo['documentsCount'] : null;
     976        $documentCountLimit = isset( $siteInfo['documentCountLimit'] ) ? (int) $siteInfo['documentCountLimit'] : null;
     977        if ( isset( $documentCount, $documentCountLimit ) && $documentCount >= $documentCountLimit ) {
     978            return true;
     979        }
    971980        try {
    972981            if ( $post->post_status === 'publish' ) {
     
    10021011                'wordType'           => $this->settings['search_word_type'],
    10031012                'currency'           => '',
    1004                 'sortBy'             => $this->get_current_plan() === 'premium' ? self::SORT_BYS[ $this->settings['sort_by'] ] : self::SORT_BYS[ self::SORT_BY_RELEVANCY ],
     1013                'sortBy' => $this->get_current_plan() === 'premium' && !empty($this->settings['sort_by']) && array_key_exists( $this->settings['sort_by'], self::SORT_BYS ) ? self::SORT_BYS[ $this->settings['sort_by'] ] : self::SORT_BYS[ self::SORT_BY_RELEVANCY ],
    10051014                'displayInResult'    => [
    10061015                    'thumbnail'    => (bool) $this->settings['display_result_image'],
  • chilisearch/trunk/readme.txt

    r2540429 r2558083  
    77Tested up to: 5.7.1
    88Requires PHP: 5.6
    9 Stable tag: 2.0.6
     9Stable tag: 2.0.7
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    102102== Upgrade Notice ==
    103103
     104= 2.0.7 =
     105* Upgrade for latest changes
     106
    104107= 2.0.6 =
    105108* Upgrade for latest changes
     
    144147
    145148== Changelog ==
     149
     150= 2.0.7 =
     151* bug fix
    146152
    147153= 2.0.6 =
Note: See TracChangeset for help on using the changeset viewer.