Changeset 2595114
- Timestamp:
- 09/07/2021 02:11:49 PM (5 years ago)
- Location:
- growanizer/trunk
- Files:
-
- 4 edited
-
growanizer.php (modified) (2 diffs)
-
modules/growanizer-product-finder/includes/class-growpf-query.php (modified) (1 diff)
-
modules/growanizer-related-products/includes/class-growrp-post-type.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
growanizer/trunk/growanizer.php
r2576583 r2595114 4 4 * Plugin Name: Growanizer 5 5 * Description: The new generation of smart sales for WooCommerce. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: Custom4Web 8 8 * Author URI: https://www.custom4web.com/ … … 38 38 const ADMIN_PATH = 'admin'; 39 39 const MODULES_PATH = 'modules'; 40 const VERSION = '1.0. 1';40 const VERSION = '1.0.2'; 41 41 const PREFIX = 'growanizer_'; 42 42 -
growanizer/trunk/modules/growanizer-product-finder/includes/class-growpf-query.php
r2574491 r2595114 90 90 // Remove post type archive name from front page title tag. 91 91 add_filter('post_type_archive_title', '__return_empty_string', 5); 92 93 $pf_rule_id = isset($_GET['pf-rule-id']) ? sanitize_key($_GET['pf-rule-id']) : ''; 94 self::$pf_rule_id = $pf_rule_id; 95 $this->set_pf_rule_meta($q); 96 97 $this->product_query($q); 92 98 } elseif (!$q->is_post_type_archive('product') && !$q->is_tax(get_object_taxonomies('product'))) { 93 99 // Only apply to product categories, the product post archive, the shop page, product tags, and product attribute taxonomies. 94 100 return; 95 101 } 96 97 $pf_rule_id = isset($_GET['pf-rule-id']) ? sanitize_key($_GET['pf-rule-id']) : '';98 self::$pf_rule_id = $pf_rule_id;99 $this->set_pf_rule_meta($q);100 101 $this->product_query($q);102 102 } 103 103 -
growanizer/trunk/modules/growanizer-related-products/includes/class-growrp-post-type.php
r2574491 r2595114 78 78 } 79 79 80 $maybe_irk_order_by_stock = has_filter('posts_clauses', 'irk_order_by_stock'); 81 if( $maybe_irk_order_by_stock ) { 82 remove_filter( 'posts_clauses', 'irk_order_by_stock', $maybe_irk_order_by_stock ); 83 } 84 80 85 if( is_product() ) { 81 86 $rule_ids = $this->match_rule( $post->ID ); … … 91 96 $this->template->rules = $rules; 92 97 } 98 } 99 100 if( $maybe_irk_order_by_stock ) { 101 add_filter( 'posts_clauses', 'irk_order_by_stock', $maybe_irk_order_by_stock ); 93 102 } 94 103 } -
growanizer/trunk/readme.txt
r2582143 r2595114 6 6 Tested up to: 5.8.0 7 7 Requires PHP: 7.0 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 61 61 1.0.0 Initial release 62 62 63 1.0.1 Added compatibility with the Pro version of the plugin when uninstalling one of the plugins. 63 1.0.1 Added compatibility with the Pro version of the plugin when uninstalling one of the plugins. 64 65 1.0.2 Added compatibility with theme Irankala. Fixed incompatibility with the plugin Advanced AJAX Product Filters for WooCommerce.
Note: See TracChangeset
for help on using the changeset viewer.