Commit Graph

647 Commits

Author SHA1 Message Date
Claudio Sanches c96ed877af
Merge pull request #23660 from gocodebox/master
add filter to allow disabling endpoint 404 behavior, per #23622
2019-05-10 12:50:29 -03:00
Thomas Patrick Levy 4e58b098e5 update filter 2019-05-09 15:49:03 -07:00
Thomas Patrick Levy 57bbcf94b7 add filter to allow disabling endpoint 404 behavior, per #23622 2019-05-08 17:35:28 -07:00
Rodrigo Primo 45c2c78ea2 Fix: parameter values should be converted back as well when building form fields
PR #23196 added a workaround to `parse_str()` limitation when dealing with full-stops, pluses, and spaces in the parameter key. This workaround involved temporarily replacing those three characters with placeholders before calling `parse_str()` and then replacing back to the original form. This commit fixes a bug in this logic that was replacing back only parameters keys and not parameters values.

For example, if the query string is `?query.parameter=foo.bar`, the resulting <input> field contained `foo{dot}bar`, instead of the expected `foo.bar`.
2019-04-26 13:58:27 -03:00
Mike Jolley 192fecc0d8 Remove filter only needs priority
Co-Authored-By: Dragoș Mocrii <dragosmocrii@users.noreply.github.com>
2019-04-24 13:54:12 +01:00
Mike Jolley 04e51191c4 Pass $class 2019-04-23 18:06:09 +01:00
Mike Jolley 246596dec0 Put the post_class back to avoid breaking bw compat. Append core classes on top 2019-04-23 18:04:20 +01:00
Mike Jolley 662af85bea cleanup and docs 2019-04-18 19:33:48 +01:00
Mike Jolley 7737fc5928 remove post_class and implement woocommerce_post_class 2019-04-18 19:27:00 +01:00
Mike Jolley fbaaa319dd Use global product if null 2019-04-18 17:25:13 +01:00
Mike Jolley b686150655
Merge pull request #23196 from woocommerce/fix/23195
Replace full stops before running through `parse_str`
2019-04-18 11:01:59 +01:00
Mike Jolley b1a811ca46 Replace spaces 2019-04-03 11:58:08 +01:00
Mike Jolley a66adf0829 Replace full stops before parse_str 2019-04-02 13:58:37 +01:00
Ben S c1a6cdb873
Format empty cart message as information notice 2019-03-26 18:35:21 +01:00
Rodrigo Primo 9574762e8b
Merge pull request #22915 from woocommerce/fix/22894
Add woocommerce_get_product_subcategories_cache_key filter
2019-03-07 16:49:17 -03:00
Mike Jolley 16a0a3e27e Update from master 2019-03-05 19:03:01 +00:00
Mike Jolley 7c9932da6d woocommerce_get_product_subcategories_cache_key filter 2019-03-01 10:55:11 +00:00
Mike Jolley 20eb503128 Add alt text to gallery thumbnail 2019-02-26 14:03:25 +00:00
Mike Jolley ffa230de90 Escape html entities before passing to WP/photoswipe 2019-02-20 11:49:55 +00:00
Mike Jolley afe219d854 Select an option vs state 2019-02-18 11:49:46 +00:00
Mike Jolley 377d79e175 Merge branch 'fix/21830' 2019-02-13 14:45:00 +00:00
Mike Jolley fb5f9c1ecb
Merge pull request #22690 from Tofandel/patch-1
The "for" attribute of a label for a radio input is invalid
2019-02-13 14:40:52 +00:00
Andrew Lazarus 11c16f35ab
Updated product loop title filter with esc_attr() 2019-02-13 15:07:07 +01:00
Andrew Lazarus aee5cf2bff
Added filter for product title classes within product loop 2019-02-12 13:37:02 +01:00
Mike Jolley 1efe7747a8 merge conflict 2019-02-08 13:08:55 +00:00
Mike Jolley 1743c13225
Merge pull request #22631 from woocommerce/fix/21677
WC Endpoint 404s
2019-02-08 13:05:49 +00:00
Mike Jolley 8404b644da
Merge pull request #22645 from woocommerce/update/21963
Add notice hash to store notice cookie
2019-02-08 13:05:03 +00:00
Adrien Foulon 8dc9a46c17
The "for" attribute of a label for a radio input is invalid
The main label of a radio supposedly targeting the first value of the radios contains only the value instead of theId_theValue which is the id of the radio
2019-02-08 02:02:44 +01:00
Mike Jolley b2c33b8e34 Merge branch 'master' into performance/slow-term-queries 2019-02-07 13:49:48 +00:00
Mike Jolley 889cf64ac4 Merge branch 'performance/wc-get-product-class' 2019-02-07 13:34:18 +00:00
nishitlangaliya f69ac18ccd fix: default value passed to sorting dropdown 2019-02-07 13:26:43 +05:30
Mike Jolley 4b485eba13 Fixed unit tests 2019-02-06 21:00:07 +00:00
Mike Jolley e604a3ae24 correct id without $post 2019-02-06 19:57:06 +00:00
Gerhard Potgieter b7971bd0dc
Merge pull request #22632 from woocommerce/fix/22552-screen-reader-ratings
Accessibility: Add a screen reader label for product rating star icons
2019-02-06 15:40:26 +02:00
Ron Rennick 7b5810d3da limit page 2 not showing products to shop showing subcategories 2019-02-04 13:52:06 -04:00
Mike Jolley 1928f34699 Add notice hash to store notice cookie
Closes #21963
2019-02-04 13:18:09 +00:00
Mike Jolley a5d62b83a8 Merge branch 'enhancement/woocommerce_display_product_attributes' 2019-02-04 11:25:13 +00:00
Mike Jolley 7093c652e7 Add localisation to new label 2019-02-01 17:13:41 +00:00
Mike Jolley a0f47fb429 404 on endpoints 2019-02-01 16:56:00 +00:00
Mike Jolley 5825a66a30 Cleanup method 2019-02-01 16:55:51 +00:00
Kelly Dwan a2d5d3dff7 Accessibility: Add a label for product rating star icons 2019-02-01 11:47:14 -05:00
Mike Jolley e3f2cad544 Remove escape 2019-02-01 16:10:14 +00:00
Mike Jolley d167cb0a95 Add caching for template names to avoid multiple lookups 2019-01-30 16:09:08 +00:00
Mike Jolley 0dd7cd2b8b Improved post_class generation to avoid loading more product objects 2019-01-30 16:02:22 +00:00
Mike Jolley bd076d42da Refactor wc_get_product_class to avoid $post object 2019-01-30 16:02:00 +00:00
Gerhard 69baf175c1 After some testing using area-hidden seems to deliver the best results for not producing the hissing sound on reviews. 2019-01-29 13:48:47 +02:00
Gerhard 94f64f3851 PHPCS fixes 2019-01-29 13:36:16 +02:00
Gerhard e74f0acc19 Add a screen reader label to the star rating div to avoid screen readers trying to read the text of the star font. 2019-01-29 13:34:04 +02:00
Ron Rennick a663f56306 two more sniffs in wc-template-functions.php 2019-01-28 14:36:39 -04:00
Ron Rennick 475c35ed7a phpcs sniff fixes for wc-template-functions.php 2019-01-28 11:25:45 -04:00