Changeset 3154607
- Timestamp:
- 09/19/2024 02:10:11 PM (17 months ago)
- Location:
- atlas-search
- Files:
-
- 10 added
- 6 deleted
- 14 edited
- 1 copied
-
tags/0.2.60 (copied) (copied from atlas-search/trunk)
-
tags/0.2.60/README.txt (modified) (2 diffs)
-
tags/0.2.60/atlas-search.php (modified) (2 diffs)
-
tags/0.2.60/helper/search/search.php (modified) (4 diffs)
-
tags/0.2.60/includes/class-wpe-content-engine.php (modified) (1 diff)
-
tags/0.2.60/includes/smart-search-settings/build/asset-manifest.json (modified) (2 diffs)
-
tags/0.2.60/includes/smart-search-settings/build/index.html (modified) (1 diff)
-
tags/0.2.60/includes/smart-search-settings/build/static/js/main.2259e6a0.js (deleted)
-
tags/0.2.60/includes/smart-search-settings/build/static/js/main.2259e6a0.js.LICENSE.txt (deleted)
-
tags/0.2.60/includes/smart-search-settings/build/static/js/main.2259e6a0.js.map (deleted)
-
tags/0.2.60/includes/smart-search-settings/build/static/js/main.e264eede.js (added)
-
tags/0.2.60/includes/smart-search-settings/build/static/js/main.e264eede.js.LICENSE.txt (added)
-
tags/0.2.60/includes/smart-search-settings/build/static/js/main.e264eede.js.map (added)
-
tags/0.2.60/src/support/woocommerce/fields.php (modified) (2 diffs)
-
tags/0.2.60/src/support/woocommerce/filters.php (added)
-
tags/0.2.60/src/support/woocommerce/queries.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/atlas-search.php (modified) (2 diffs)
-
trunk/helper/search/search.php (modified) (4 diffs)
-
trunk/includes/class-wpe-content-engine.php (modified) (1 diff)
-
trunk/includes/smart-search-settings/build/asset-manifest.json (modified) (2 diffs)
-
trunk/includes/smart-search-settings/build/index.html (modified) (1 diff)
-
trunk/includes/smart-search-settings/build/static/js/main.2259e6a0.js (deleted)
-
trunk/includes/smart-search-settings/build/static/js/main.2259e6a0.js.LICENSE.txt (deleted)
-
trunk/includes/smart-search-settings/build/static/js/main.2259e6a0.js.map (deleted)
-
trunk/includes/smart-search-settings/build/static/js/main.e264eede.js (added)
-
trunk/includes/smart-search-settings/build/static/js/main.e264eede.js.LICENSE.txt (added)
-
trunk/includes/smart-search-settings/build/static/js/main.e264eede.js.map (added)
-
trunk/src/support/woocommerce/fields.php (modified) (2 diffs)
-
trunk/src/support/woocommerce/filters.php (added)
-
trunk/src/support/woocommerce/queries.php (added)
Legend:
- Unmodified
- Added
- Removed
-
atlas-search/tags/0.2.60/README.txt
r3149330 r3154607 3 3 Tested up to: 6.6 4 4 Requires PHP: 7.4 5 Stable tag: 0.2. 595 Stable tag: 0.2.60 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 49 49 == 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 50 58 = 0.2.59 = 51 59 * **Fixed:** Indexing errors when excluding post types. -
atlas-search/tags/0.2.60/atlas-search.php
r3149330 r3154607 16 16 * Plugin URI: https://developers.wpengine.com/ 17 17 * Description: Searching WordPress data with WP Engine Smart Search. 18 * Version: 0.2. 5918 * Version: 0.2.60 19 19 * Author: WP Engine 20 20 * Author URI: https://wpengine.com/ … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define( 'WPE_SMART_SEARCH_VERSION', '0.2. 59' );43 define( 'WPE_SMART_SEARCH_VERSION', '0.2.60' ); 44 44 45 45 /** -
atlas-search/tags/0.2.60/helper/search/search.php
r3143797 r3154607 20 20 class Search { 21 21 22 const NEW_NAMING_MAPPING = array(22 const NEW_NAMING_MAPPING = array( 23 23 'title' => 'post_title', 24 24 'post_title' => 'title', … … 30 30 'author.user_nicename' => 'author.displayName', 31 31 ); 32 const ORDER_BY_MAPPING = array(32 const ORDER_BY_MAPPING = array( 33 33 // WP GraphQL supported params. 34 34 'post_date' => 'post_date_gmt', … … 39 39 'modified' => 'post_modified_gmt', 40 40 ); 41 const DEFAULT_ORDER_BY=41 public const DEFAULT_ORDER_BY = 42 42 array( 43 43 array( 'field' => '_score' ), … … 282 282 * Sometimes WP plugin developers calling with negative number expect to get all posts 283 283 */ 284 $posts_per_page = ( $posts_per_page < 0 ) ? 1000 0: $posts_per_page;284 $posts_per_page = ( $posts_per_page < 0 ) ? 1000 : $posts_per_page; 285 285 $query_offset = $query->get( 'offset', false ); 286 286 $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 237 237 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'src/query/taxonomy.php'; 238 238 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'; 239 240 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'; 240 242 } 241 243 -
atlas-search/tags/0.2.60/includes/smart-search-settings/build/asset-manifest.json
r3147520 r3154607 2 2 "files": { 3 3 "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", 5 5 "static/media/wpengine-logo.svg": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/media/wpengine-logo.40f3a1215fbea4708a6a4bff9624fece.svg", 6 6 "static/media/content-copy.svg": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/media/content-copy.e50f17791e757794684afc63d5d4cb00.svg", … … 18 18 "index.html": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/index.html", 19 19 "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" 21 21 }, 22 22 "entrypoints": [ 23 23 "static/css/main.751d9a0b.css", 24 "static/js/main. 2259e6a0.js"24 "static/js/main.e264eede.js" 25 25 ] 26 26 } -
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 5 5 use WP_Post; 6 6 use 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 );28 7 29 8 /** … … 51 30 $fields['sku'] = $data['sku']; 52 31 $fields['weight'] = $data['weight']; 32 $fields['total_sales'] = (int) $data['total_sales']; 33 $fields['average_rating'] = (float) $data['average_rating']; 53 34 54 35 // Fetch product options (variations). -
atlas-search/trunk/README.txt
r3149330 r3154607 3 3 Tested up to: 6.6 4 4 Requires PHP: 7.4 5 Stable tag: 0.2. 595 Stable tag: 0.2.60 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 49 49 == 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 50 58 = 0.2.59 = 51 59 * **Fixed:** Indexing errors when excluding post types. -
atlas-search/trunk/atlas-search.php
r3149330 r3154607 16 16 * Plugin URI: https://developers.wpengine.com/ 17 17 * Description: Searching WordPress data with WP Engine Smart Search. 18 * Version: 0.2. 5918 * Version: 0.2.60 19 19 * Author: WP Engine 20 20 * Author URI: https://wpengine.com/ … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define( 'WPE_SMART_SEARCH_VERSION', '0.2. 59' );43 define( 'WPE_SMART_SEARCH_VERSION', '0.2.60' ); 44 44 45 45 /** -
atlas-search/trunk/helper/search/search.php
r3143797 r3154607 20 20 class Search { 21 21 22 const NEW_NAMING_MAPPING = array(22 const NEW_NAMING_MAPPING = array( 23 23 'title' => 'post_title', 24 24 'post_title' => 'title', … … 30 30 'author.user_nicename' => 'author.displayName', 31 31 ); 32 const ORDER_BY_MAPPING = array(32 const ORDER_BY_MAPPING = array( 33 33 // WP GraphQL supported params. 34 34 'post_date' => 'post_date_gmt', … … 39 39 'modified' => 'post_modified_gmt', 40 40 ); 41 const DEFAULT_ORDER_BY=41 public const DEFAULT_ORDER_BY = 42 42 array( 43 43 array( 'field' => '_score' ), … … 282 282 * Sometimes WP plugin developers calling with negative number expect to get all posts 283 283 */ 284 $posts_per_page = ( $posts_per_page < 0 ) ? 1000 0: $posts_per_page;284 $posts_per_page = ( $posts_per_page < 0 ) ? 1000 : $posts_per_page; 285 285 $query_offset = $query->get( 'offset', false ); 286 286 $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 237 237 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'src/query/taxonomy.php'; 238 238 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'; 239 240 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'; 240 242 } 241 243 -
atlas-search/trunk/includes/smart-search-settings/build/asset-manifest.json
r3147520 r3154607 2 2 "files": { 3 3 "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", 5 5 "static/media/wpengine-logo.svg": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/media/wpengine-logo.40f3a1215fbea4708a6a4bff9624fece.svg", 6 6 "static/media/content-copy.svg": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/media/content-copy.e50f17791e757794684afc63d5d4cb00.svg", … … 18 18 "index.html": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/index.html", 19 19 "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" 21 21 }, 22 22 "entrypoints": [ 23 23 "static/css/main.751d9a0b.css", 24 "static/js/main. 2259e6a0.js"24 "static/js/main.e264eede.js" 25 25 ] 26 26 } -
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 5 5 use WP_Post; 6 6 use 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 );28 7 29 8 /** … … 51 30 $fields['sku'] = $data['sku']; 52 31 $fields['weight'] = $data['weight']; 32 $fields['total_sales'] = (int) $data['total_sales']; 33 $fields['average_rating'] = (float) $data['average_rating']; 53 34 54 35 // Fetch product options (variations).
Note: See TracChangeset
for help on using the changeset viewer.