Commit Graph

279 Commits

Author SHA1 Message Date
Rodrigo Primo 20fd569a55 Fix clearing filters in "Filter products by attribute" widget
This commit fixes an issue that was making it impossible to clear filters in the "Filter products by attribute" widget when the attribute name contained non-ASCII characters. The problem was caused by a call to sanitize_title() which doesn't seem necessary as it is sanitizing one of the widget parameters which is already sanitized in 679d719368/includes/widgets/class-wc-widget-layered-nav.php (L116). So this commit simply removes the sanitize_title() call. Even if we needed to sanitize the variable `$taxonomy`, it would be better to use sanitize_text_input_field() or wc_sanitize_taxonomy_name() as sanitize_title() will replace accented characters.

For more about the problem that is fixed by this commit see #21028
2018-08-14 11:45:57 -03:00
Mike Jolley 9bead7a702
Merge pull request #20617 from woocommerce/add/20603
Convert product categories widget to use selectWoo.
2018-06-27 18:52:01 +01:00
Gerhard Potgieter 4c54dedd9d Rredirect to shop page when product categories dropdown filter is cleared. 2018-06-26 11:54:04 +02:00
Gerhard Potgieter 345416312a Move selectwoo support to widget class to avoid it running on admin pages. 2018-06-25 15:58:18 +02:00
Mike Jolley 01a3e359c3 Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-06-13 10:18:38 +01:00
Mike Jolley 679d719368 Use correct escaping on placeholder
Use correct escaping on placeholder - this is not HTML, this is an attribute output within javascript code.

Closes #20360
2018-06-04 10:53:10 +01:00
Rodrigo Primo 597033ca6f Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-04-24 13:47:22 -03:00
Ernest 0d70b3b34e Recent Product Reviews template 2018-04-13 14:20:46 +03:00
Rodrigo Primo bb553c88ae Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-03-29 12:05:55 -03:00
Rodrigo Primo edfadcf7ae Product price filter widget: add a new filter to change the query to get max and min prices 2018-03-29 11:52:49 -03:00
Mike Jolley 06418f67e5
Merge pull request #19225 from roylindauer/17355-SplitAndFilter
Split layered nav transient per issue #17355
2018-03-14 12:50:54 +00:00
Roy Lindauer b151480e6b fix indentation issues 2018-03-13 15:34:47 -07:00
Claudio Sanches 82fec65fa0 Merge branch 'master' into update/walkers-phpcs 2018-03-12 12:31:57 -03:00
Claudio Sanches 18a44172a2 Fixed class-wc-widget-top-rated-products.php PHPCS violations 2018-03-09 17:50:02 -03:00
Claudio Sanches b329d81279 Fixed class-wc-widget-recently-viewed.php PHPCS violations 2018-03-09 17:48:28 -03:00
Claudio Sanches d3b81b17a8 Fixed class-wc-widget-recent-reviews.php PHPCS violations 2018-03-09 17:45:45 -03:00
Claudio Sanches f9eed130ec Fixed class-wc-widget-rating-filter.php PHPCS violations 2018-03-09 17:43:52 -03:00
Claudio Sanches dfe3965fbb Fixed class-wc-widget-products.php PHPCS violations 2018-03-09 17:41:07 -03:00
Claudio Sanches 85aba0221a Fixed class-wc-widget-product-tag-cloud.php PHPCS violations 2018-03-09 17:37:23 -03:00
Claudio Sanches 74b5e3f8fa Fixed class-wc-widget-product-search.php PHPCS violations 2018-03-09 17:29:16 -03:00
Claudio Sanches cbb1271b2c Fixed class-wc-widget-product-categories.php PHPCS violations 2018-03-09 17:28:08 -03:00
Claudio Sanches 341dddc3ae Fixed class-wc-widget-price-filter.php PHPCS violations 2018-03-09 17:26:40 -03:00
Claudio Sanches e87c309b01 Fixed class-wc-widget-layered-nav.php PHPCS violations 2018-03-09 17:10:03 -03:00
Claudio Sanches 84b0446736 Fixed class-wc-widget-layered-nav-filters.php PHPCS violations 2018-03-09 16:56:15 -03:00
Claudio Sanches 5cf942c22b Fixed class-wc-widget-cart.php PHPCS violations 2018-03-09 16:37:52 -03:00
Claudio Sanches 4daf256c32 Fixed path of walker classes 2018-03-09 16:31:00 -03:00
Roy Lindauer bb9afb29be
cached_counts would not be defined if cache is false 2018-03-06 07:32:12 -08:00
Roy Lindauer 4147038e93 Add filter to control caching of layered nav counts. Split cached layered nav counts by taxonomy 2018-03-02 22:14:20 -08:00
Mike Jolley 5330d0b860 Make terms logic match for breadcrumb and widget 2018-02-20 11:49:06 +00:00
Mike Jolley 2ed9691c14 Fix shop on homepage with unsupported themes 2018-02-01 11:15:46 +00:00
Claudiu Lodromanean e898623668
Merge pull request #18174 from woocommerce/fix/18170
Adjusts price filter code to exclude taxes to match how prices are stored in the DB
2017-12-18 11:13:44 -08:00
Mike Jolley 5ed3c9e37e Adjusts price filter code to exclude taxes to match how prices are stored in the DB 2017-12-14 15:21:49 +00:00
Boro Sitnikovski 080ece9588 Change method name 2017-12-14 15:37:42 +01:00
Boro Sitnikovski e1b753122e Deprecate the function as a whole 2017-12-14 10:23:51 +01:00
claudiulodro d60456cc73 Resolve conflicts and bring up to date with master 2017-12-04 13:56:59 -08:00
Claudio Sanches 777a004a1f Allow max of 15 products in Recent Viewed Products widget 2017-11-29 19:24:39 -02:00
Mike Jolley 208b2d1b81 Slugs are encoded, so decode before outputting to the form
Fixes #17845
2017-11-21 16:50:33 +00:00
Mike Jolley 46775c2f7d standards 2017-11-20 12:14:05 +00:00
Alexandre GASNE 0018b4349e Fix: Apostrophe wrongly escaped for price nav filter and widget nav filters 2017-11-18 20:11:53 +01:00
Mike Jolley 76adff572e woocommerce_recently_viewed_products_widget_query_args filter
Closes #17678
2017-11-15 10:19:11 +00:00
Mike Jolley cc18f85baa Replace usage of global query 2017-11-09 12:01:27 +00:00
Mike Jolley 1a7d7dd127 Widget base url 2017-11-09 11:24:29 +00:00
Mike Jolley 1b22d97be2 Combined get_page_base_url 2017-11-09 11:16:47 +00:00
Gerhard Potgieter 21377fe5a7 input to button for submit in class-wc-widget-layered-nav.php 2017-11-07 10:56:36 +02:00
Gerhard Potgieter 364d266def PHPCS fixes for class-wc-widget-layered-nav.php 2017-11-07 10:55:27 +02:00
Mike Jolley a6e5a684d0 Merge branch 'pr/17134' 2017-10-27 16:07:41 +01:00
Mike Jolley e5038e737e Standards 2017-10-27 16:07:30 +01:00
Mike Jolley 35f5140e1c Merge branch 'pr/17137' 2017-10-27 15:59:56 +01:00
Mike Jolley 47bb63733b Standards 2017-10-27 15:59:47 +01:00
Mike Jolley 8695d46637 Merge branch 'pr/17041' 2017-10-27 15:35:43 +01:00