Plugin Directory

Changeset 3154607


Ignore:
Timestamp:
09/19/2024 02:10:11 PM (17 months ago)
Author:
wpengine
Message:

Tagging version 0.2.60

Location:
atlas-search
Files:
10 added
6 deleted
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • atlas-search/tags/0.2.60/README.txt

    r3149330 r3154607  
    33Tested up to: 6.6
    44Requires PHP: 7.4
    5 Stable tag: 0.2.59
     5Stable tag: 0.2.60
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848
    4949== Changelog ==
     50= 0.2.60 =
     51* **Fixed:** Disabled radio cards when API returns 400.
     52* **Fixed:** Don't show error when no AI search enabled and save Full Text Search card in configuration page.
     53* **Added:** Woo Commerce default price filtering integration.
     54* **Added:** Woo Commerce default order by integration.
     55* **Added:** Getting all WP posts now limits them to 1000 as opposed to 10000.
     56* **Added:** Disable configuration button until settings change in config page.
     57
    5058= 0.2.59 =
    5159* **Fixed:** Indexing errors when excluding post types.
  • atlas-search/tags/0.2.60/atlas-search.php

    r3149330 r3154607  
    1616 * Plugin URI:        https://developers.wpengine.com/
    1717 * Description:       Searching WordPress data with WP Engine Smart Search.
    18  * Version:           0.2.59
     18 * Version:           0.2.60
    1919 * Author:            WP Engine
    2020 * Author URI:        https://wpengine.com/
     
    4141 * Rename this for your plugin and update it as you release new versions.
    4242 */
    43 define( 'WPE_SMART_SEARCH_VERSION', '0.2.59' );
     43define( 'WPE_SMART_SEARCH_VERSION', '0.2.60' );
    4444
    4545/**
  • atlas-search/tags/0.2.60/helper/search/search.php

    r3143797 r3154607  
    2020class Search {
    2121
    22     const NEW_NAMING_MAPPING = array(
     22    const NEW_NAMING_MAPPING      = array(
    2323        'title'                => 'post_title',
    2424        'post_title'           => 'title',
     
    3030        'author.user_nicename' => 'author.displayName',
    3131    );
    32     const ORDER_BY_MAPPING   = array(
     32    const ORDER_BY_MAPPING        = array(
    3333        // WP GraphQL supported params.
    3434        'post_date'     => 'post_date_gmt',
     
    3939        'modified'      => 'post_modified_gmt',
    4040    );
    41     const DEFAULT_ORDER_BY  =
     41    public const DEFAULT_ORDER_BY =
    4242        array(
    4343            array( 'field' => '_score' ),
     
    282282         * Sometimes WP plugin developers calling with negative number expect to get all posts
    283283         */
    284         $posts_per_page = ( $posts_per_page < 0 ) ? 10000 : $posts_per_page;
     284        $posts_per_page = ( $posts_per_page < 0 ) ? 1000 : $posts_per_page;
    285285        $query_offset   = $query->get( 'offset', false );
    286286        $offset         = false !== $query_offset ? $query_offset : self::get_offset( $page_number, $posts_per_page );
  • atlas-search/tags/0.2.60/includes/class-wpe-content-engine.php

    r3147520 r3154607  
    237237        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'src/query/taxonomy.php';
    238238        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'src/blocks/blocks-callbacks.php';
     239        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'src/support/woocommerce/filters.php';
    239240        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'src/support/woocommerce/fields.php';
     241        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'src/support/woocommerce/queries.php';
    240242    }
    241243
  • atlas-search/tags/0.2.60/includes/smart-search-settings/build/asset-manifest.json

    r3147520 r3154607  
    22  "files": {
    33    "main.css": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css",
    4     "main.js": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.2259e6a0.js",
     4    "main.js": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.e264eede.js",
    55    "static/media/wpengine-logo.svg": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/media/wpengine-logo.40f3a1215fbea4708a6a4bff9624fece.svg",
    66    "static/media/content-copy.svg": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/media/content-copy.e50f17791e757794684afc63d5d4cb00.svg",
     
    1818    "index.html": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/index.html",
    1919    "main.751d9a0b.css.map": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css.map",
    20     "main.2259e6a0.js.map": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.2259e6a0.js.map"
     20    "main.e264eede.js.map": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.e264eede.js.map"
    2121  },
    2222  "entrypoints": [
    2323    "static/css/main.751d9a0b.css",
    24     "static/js/main.2259e6a0.js"
     24    "static/js/main.e264eede.js"
    2525  ]
    2626}
  • atlas-search/tags/0.2.60/includes/smart-search-settings/build/index.html

    r3147520 r3154607  
    1 <head><script defer="defer" src="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.2259e6a0.js"></script><link href="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css" rel="stylesheet"></head>
     1<head><script defer="defer" src="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.e264eede.js"></script><link href="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css" rel="stylesheet"></head>
  • atlas-search/tags/0.2.60/src/support/woocommerce/fields.php

    r3143797 r3154607  
    55use WP_Post;
    66use function AtlasSearch\Index\get_term_fields;
    7 use const AtlasSearch\Hooks\SMART_SEARCH_HOOK_EXTRA_FIELDS;
    8 use const AtlasSearch\Hooks\SMART_SEARCH_EXTRA_SEARCH_CONFIG_FIELDS;
    9 
    10 
    11 const SMART_SEARCH_WOOCOMMERCE_SUPPORT_ENABLED_OPTION = 'smart_search_woocommerce_support_enabled';
    12 
    13 
    14 add_action(
    15     'woocommerce_loaded',
    16     function () {
    17         if ( ! get_option( SMART_SEARCH_WOOCOMMERCE_SUPPORT_ENABLED_OPTION ) ) {
    18             do_action( 'qm/notice', 'WP Engine Smart Search: WooCommerce support is DISABLED' );
    19             return;
    20         }
    21 
    22         add_filter( SMART_SEARCH_HOOK_EXTRA_FIELDS, __NAMESPACE__ . '\add_extra_fields_to_product', 10, 2 );
    23         add_filter( SMART_SEARCH_EXTRA_SEARCH_CONFIG_FIELDS, __NAMESPACE__ . '\add_extra_search_config_fields', 10, 2 );
    24         do_action( 'qm/notice', 'WP Engine Smart Search: WooCommerce support is ENABLED' );
    25 
    26     }
    27 );
    287
    298/**
     
    5130        $fields['sku']               = $data['sku'];
    5231        $fields['weight']            = $data['weight'];
     32        $fields['total_sales']       = (int) $data['total_sales'];
     33        $fields['average_rating']    = (float) $data['average_rating'];
    5334
    5435        // Fetch product options (variations).
  • atlas-search/trunk/README.txt

    r3149330 r3154607  
    33Tested up to: 6.6
    44Requires PHP: 7.4
    5 Stable tag: 0.2.59
     5Stable tag: 0.2.60
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848
    4949== Changelog ==
     50= 0.2.60 =
     51* **Fixed:** Disabled radio cards when API returns 400.
     52* **Fixed:** Don't show error when no AI search enabled and save Full Text Search card in configuration page.
     53* **Added:** Woo Commerce default price filtering integration.
     54* **Added:** Woo Commerce default order by integration.
     55* **Added:** Getting all WP posts now limits them to 1000 as opposed to 10000.
     56* **Added:** Disable configuration button until settings change in config page.
     57
    5058= 0.2.59 =
    5159* **Fixed:** Indexing errors when excluding post types.
  • atlas-search/trunk/atlas-search.php

    r3149330 r3154607  
    1616 * Plugin URI:        https://developers.wpengine.com/
    1717 * Description:       Searching WordPress data with WP Engine Smart Search.
    18  * Version:           0.2.59
     18 * Version:           0.2.60
    1919 * Author:            WP Engine
    2020 * Author URI:        https://wpengine.com/
     
    4141 * Rename this for your plugin and update it as you release new versions.
    4242 */
    43 define( 'WPE_SMART_SEARCH_VERSION', '0.2.59' );
     43define( 'WPE_SMART_SEARCH_VERSION', '0.2.60' );
    4444
    4545/**
  • atlas-search/trunk/helper/search/search.php

    r3143797 r3154607  
    2020class Search {
    2121
    22     const NEW_NAMING_MAPPING = array(
     22    const NEW_NAMING_MAPPING      = array(
    2323        'title'                => 'post_title',
    2424        'post_title'           => 'title',
     
    3030        'author.user_nicename' => 'author.displayName',
    3131    );
    32     const ORDER_BY_MAPPING   = array(
     32    const ORDER_BY_MAPPING        = array(
    3333        // WP GraphQL supported params.
    3434        'post_date'     => 'post_date_gmt',
     
    3939        'modified'      => 'post_modified_gmt',
    4040    );
    41     const DEFAULT_ORDER_BY  =
     41    public const DEFAULT_ORDER_BY =
    4242        array(
    4343            array( 'field' => '_score' ),
     
    282282         * Sometimes WP plugin developers calling with negative number expect to get all posts
    283283         */
    284         $posts_per_page = ( $posts_per_page < 0 ) ? 10000 : $posts_per_page;
     284        $posts_per_page = ( $posts_per_page < 0 ) ? 1000 : $posts_per_page;
    285285        $query_offset   = $query->get( 'offset', false );
    286286        $offset         = false !== $query_offset ? $query_offset : self::get_offset( $page_number, $posts_per_page );
  • atlas-search/trunk/includes/class-wpe-content-engine.php

    r3147520 r3154607  
    237237        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'src/query/taxonomy.php';
    238238        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'src/blocks/blocks-callbacks.php';
     239        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'src/support/woocommerce/filters.php';
    239240        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'src/support/woocommerce/fields.php';
     241        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'src/support/woocommerce/queries.php';
    240242    }
    241243
  • atlas-search/trunk/includes/smart-search-settings/build/asset-manifest.json

    r3147520 r3154607  
    22  "files": {
    33    "main.css": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css",
    4     "main.js": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.2259e6a0.js",
     4    "main.js": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.e264eede.js",
    55    "static/media/wpengine-logo.svg": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/media/wpengine-logo.40f3a1215fbea4708a6a4bff9624fece.svg",
    66    "static/media/content-copy.svg": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/media/content-copy.e50f17791e757794684afc63d5d4cb00.svg",
     
    1818    "index.html": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/index.html",
    1919    "main.751d9a0b.css.map": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css.map",
    20     "main.2259e6a0.js.map": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.2259e6a0.js.map"
     20    "main.e264eede.js.map": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.e264eede.js.map"
    2121  },
    2222  "entrypoints": [
    2323    "static/css/main.751d9a0b.css",
    24     "static/js/main.2259e6a0.js"
     24    "static/js/main.e264eede.js"
    2525  ]
    2626}
  • atlas-search/trunk/includes/smart-search-settings/build/index.html

    r3147520 r3154607  
    1 <head><script defer="defer" src="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.2259e6a0.js"></script><link href="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css" rel="stylesheet"></head>
     1<head><script defer="defer" src="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.e264eede.js"></script><link href="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css" rel="stylesheet"></head>
  • atlas-search/trunk/src/support/woocommerce/fields.php

    r3143797 r3154607  
    55use WP_Post;
    66use function AtlasSearch\Index\get_term_fields;
    7 use const AtlasSearch\Hooks\SMART_SEARCH_HOOK_EXTRA_FIELDS;
    8 use const AtlasSearch\Hooks\SMART_SEARCH_EXTRA_SEARCH_CONFIG_FIELDS;
    9 
    10 
    11 const SMART_SEARCH_WOOCOMMERCE_SUPPORT_ENABLED_OPTION = 'smart_search_woocommerce_support_enabled';
    12 
    13 
    14 add_action(
    15     'woocommerce_loaded',
    16     function () {
    17         if ( ! get_option( SMART_SEARCH_WOOCOMMERCE_SUPPORT_ENABLED_OPTION ) ) {
    18             do_action( 'qm/notice', 'WP Engine Smart Search: WooCommerce support is DISABLED' );
    19             return;
    20         }
    21 
    22         add_filter( SMART_SEARCH_HOOK_EXTRA_FIELDS, __NAMESPACE__ . '\add_extra_fields_to_product', 10, 2 );
    23         add_filter( SMART_SEARCH_EXTRA_SEARCH_CONFIG_FIELDS, __NAMESPACE__ . '\add_extra_search_config_fields', 10, 2 );
    24         do_action( 'qm/notice', 'WP Engine Smart Search: WooCommerce support is ENABLED' );
    25 
    26     }
    27 );
    287
    298/**
     
    5130        $fields['sku']               = $data['sku'];
    5231        $fields['weight']            = $data['weight'];
     32        $fields['total_sales']       = (int) $data['total_sales'];
     33        $fields['average_rating']    = (float) $data['average_rating'];
    5334
    5435        // Fetch product options (variations).
Note: See TracChangeset for help on using the changeset viewer.