Commit Graph

16350 Commits

Author SHA1 Message Date
Peter Fabian 058f14e7d3 Corrected wording of stock quantity description. 2018-08-27 17:20:46 +02:00
Claudiu Lodromanean 66c7c244ca
Merge pull request #21186 from woocommerce/fix/string-i18n
Use entire sentence for checkout address_2 placeholder string
2018-08-24 10:04:54 -07:00
Claudiu Lodromanean d72ffe48e7
Merge pull request #21180 from woocommerce/fix/21160
Make RO state required.
2018-08-24 09:53:53 -07:00
Claudiu Lodromanean 1b405c2c12
Merge pull request #21162 from wackywombaat12/Fix/20987
Fix/20987
2018-08-24 09:51:23 -07:00
Claudiu Lodromanean a479ba1ff6
Merge pull request #21168 from woocommerce/fix/21079
Updated order of array traversal to respect user's order
2018-08-24 07:04:05 -07:00
Rodrigo Primo e1aa7bba4d Use entire sentence for checkout address_2 placeholder string
The placeholder string that is displayed in the address_2 field in the checkout was changed in #20639 to hide the "(optional)" part when the field is mandatory. The problem is that this was done splitting the sentence in two parts which goes against i18n best practices (https://developer.wordpress.org/themes/functionality/internationalization/#best-practices-for-writing-strings) as the order of the words can be different depending on the language. This commit creates two full sentences one with the "(optional)" part and another one without it to better support the translation of both strings.
2018-08-24 09:45:16 -03:00
Peter Fabian 2e350fe5b7 Small PHPCS fix. 2018-08-24 09:21:49 +02:00
Gerhard Potgieter bea8151533 Make RO state required. 2018-08-24 09:16:07 +02:00
Jack Boyle 63b84ef407 Fix Requested Changes
Changed to check if field exists and the field is not blank.
2018-08-24 13:03:09 +10:00
Claudiu Lodromanean babfacd6bb
Merge pull request #21108 from woocommerce/fix/21025
Set tabindex=1 for notices
2018-08-23 13:11:08 -07:00
Andrew Minion 067a79c336
fix typo 2018-08-23 14:37:54 -04:00
Peter Fabian f5fd36fbdf Updated order of array traversal to respect user's order when changing order of attributes for variations. 2018-08-23 18:41:28 +02:00
Jack Boyle fd33f2c2a6 Added Tests
Added Tests for new wildcard functionality.
2018-08-23 15:23:35 +10:00
Jack Boyle c4eda39177 Add wildcard handler for SKU and other meta values
Add wildcard handler for SKU and other meta values
2018-08-23 09:59:39 +10:00
Claudiu Lodromanean fe69a875e2
Merge pull request #20993 from woocommerce/fix/20959
Changed wc_clean to checking for valid utf8 for line items and password.
2018-08-22 10:12:48 -07:00
Gerhard Potgieter 64c9b5fc6a
Merge pull request #21109 from woocommerce/fix/21057
Fix: properly output product structured data when product URL contains some non-ASCII characters
2018-08-22 13:09:14 +02:00
Claudiu Lodromanean bfa36fe923
Merge pull request #21106 from woocommerce/fix/21027
Use refund currency when displaying refund amount
2018-08-21 12:46:59 -07:00
Claudiu Lodromanean 9777ba18ff
Merge pull request #21103 from woocommerce/fix/21093
Disabled postcode requirement for Bahrain.
2018-08-21 12:11:11 -07:00
Peter Fabian 5b0cc306a5 Moved the wc_kses_notice to wc-notice-functions.php and applied it in wc_print_notices(). 2018-08-21 12:00:48 +02:00
Peter Fabian 9845c3c131 PHPCS. 2018-08-21 11:48:29 +02:00
Peter Fabian ae05d6e5ea Removed author tag and bumped version of templates to 3.5.0, factored out function to one common place. 2018-08-21 11:47:50 +02:00
Peter Fabian 9319b3c262 Bahrain postcode visible, but not required. 2018-08-21 11:15:09 +02:00
Rodrigo Primo 5e7c8c6959 Remove unneeded call to wc_clean() when outputting product structured data
This commit removes an unneeded call to wc_clean() before outputting product structured data to the browser. wp_json_encode() is called before the data is sent to the browser and it should be enough to escape it. wc_clean(), which calls sanitize_text_field() internally, was causing issues with the product URL when its name contained some non-ASCII characters (see #21057 for examples of characters).
2018-08-20 14:48:17 -03:00
Claudiu Lodromanean 42e2e4a4b2
Merge pull request #21073 from woocommerce/fix/20694
Show system status updates for woocommerce wp.org plugins
2018-08-20 10:29:01 -07:00
Peter Fabian 355d95db9d Added tabindex 1 to Add to cart notices (View cart/Continue shopping). 2018-08-20 18:39:31 +02:00
Rodrigo Primo b8354da6b1 Use refund currency when displaying refund amount
Use the refund currency when wc_price() is called to display the refund amount in the "Edit order" admin screen. Without this change, wc_price would use the store default currency which is a problem for stores that at some point changed their currency or stores using extensions which support multiple currencies.
2018-08-20 11:32:56 -03:00
Rodrigo Primo aef5d3373c phpcs fixes 2018-08-20 11:12:12 -03:00
Peter Fabian a777f9b548 Disable postcode requirement for Bahrain. 2018-08-20 12:40:53 +02:00
Peter Fabian 1a2f0d4a0b Removed check for invalid utf8 in passwords. 2018-08-17 11:01:30 +02:00
Claudiu Lodromanean 6eea244a28
Merge pull request #21074 from woocommerce/fix/21026
Fixes two product attributes issues when non-ASCII characters are used in the attribute name
2018-08-16 13:22:16 -07:00
Claudiu Lodromanean f1c6f3cb3e
Merge pull request #21065 from andgrankin/patch-1
Fixed typo in translations context
2018-08-16 12:59:57 -07:00
Claudiu Lodromanean 7a0b15b9ec
Merge pull request #21072 from woocommerce/fix/21071
Hide activate step in wizard when you cannot install plugins
2018-08-16 12:55:41 -07:00
Gerhard Potgieter 2c15bee1d4 Refine wp.org update check to use correct data structures when querying data. 2018-08-16 14:27:35 +02:00
Gerhard Potgieter 2625823734 Add fallback to wp.org plugin info check if the changelog check fails, this is for free plugins hosted on .org 2018-08-16 14:09:39 +02:00
Gerhard Potgieter 1b98c1e22e Hide activate step on wizard when the user does not have install_plugins capability, administrators on multisites cannot install plugins, only super admins are allowed. 2018-08-16 12:38:27 +02:00
David Marín bc86676b7e
Update class-wc-meta-box-product-data.php 2018-08-16 09:28:48 +02:00
David Marín 6b3ef46f4e
Complete filter call 2018-08-16 09:28:03 +02:00
David Marín 97eddce025
Admin: New filter to customize variations count
Adding new filter to customize variations count, so internal-use variations can be hidden by plugins.
2018-08-16 08:37:25 +02:00
andgrankin 5bb55159a7
Fixed typo in translations context
When only one shipping package translation was not applied because of wrong context.
2018-08-16 12:30:42 +07:00
Rodrigo Primo 4d2530ef45 Fix: product attributes cache should work when non-ASCII characters are used
This commit fixes an issue in the code that sets product attributes that was breaking product attributes cache removal when non-ASCII characters are used in the attribute name. For more information see https://github.com/woocommerce/woocommerce/issues/21026#issuecomment-412111740
2018-08-15 13:24:33 -03:00
Rodrigo Primo fef0cd48ea phpcs fixes 2018-08-15 13:24:09 -03:00
Claudiu Lodromanean ec0613ad78
Merge pull request #21056 from Luminus/fix-21055
Make postcode field optional and hidden for Nigeria and label State correctly
2018-08-15 08:38:13 -07:00
Luminus Olumide Alabi 798cd36f04 Make postcode field optional and hidden for Nigeria and label State correctly 2018-08-15 10:36:20 +01:00
Nico Mollet cc9e904cfc
Standardize case of button View cart
Hello,

In this WC_Cart class, there are two string for `View cart`.
Line 1037 and line 1065.

The other `button wc-forward` buttons are first character uppercase only.

The PR changes `View Cart` to `View cart`.
Thank you
2018-08-15 09:13:59 +02:00
Claudiu Lodromanean 41a9994e52
Merge pull request #21051 from woocommerce/feature/add-cart-contents-filter
Add new filter to allow modifications of cart contents
2018-08-14 13:02:25 -07:00
Boro Sitnikovski a1bec3f200 Update comment style 2018-08-14 21:30:02 +02:00
Boro Sitnikovski 1c4ef011d2 Add new filter to allow modifications of cart contents 2018-08-14 18:34:52 +02:00
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
Rodrigo Primo a637fe10b8
Merge pull request #21018 from Luminus/fix-21016
Make city field optional and hidden for Singapore addresses
2018-08-14 10:31:27 -03:00
Peter Fabian 4dce6ec050
Merge pull request #21011 from woocommerce/fix/21010
Allow usage of orderby sorting via GET params when using the shortcode.
2018-08-14 09:54:11 +02:00