Claudio Sanches
1c65696535
Merge pull request #27850 from matt-h/webhook-schedule-when-processing
...
Make next webhook not return a date when the webhook is already running.
2020-12-07 19:20:02 -03:00
Claudio Sanches
09d98a6fe0
Merge pull request #28468 from woocommerce/fix/28417
...
Use single quotes inside MySQL query to avoid issues with ANSI_QUOTES
2020-12-07 19:08:38 -03:00
Roy Ho
aa89afcf95
Merge pull request #28332 from woocommerce/update/replace-jquery-click
...
Replace usages of depracted jQuery.fn.click() event shorthand
2020-12-07 06:03:56 -08:00
Rodrigo Primo
23af5478ec
Fix JS coding standards
2020-12-05 11:11:56 -03:00
Roy Ho
231ab353dd
Merge pull request #28469 from tyrann0us/patch-1
...
Simplify `reload_checkout` expression
2020-12-04 12:41:18 -08:00
Christopher Allford
57e0de341e
Merge branch 'master' into fix/27711
2020-12-03 12:11:29 -08:00
Christopher Allford
6780e3e07d
Added appropriate postcode formatting for Puerto Rico
2020-12-03 11:57:30 -08:00
Rodrigo Primo
39b0d83b4d
Merge pull request #28358 from szepeviktor/patch-1
...
Fix types in WC_Payment_Gateway
2020-12-03 15:51:50 -03:00
Rodrigo Primo
076d0b7373
Merge pull request #28415 from zzap/patch-3
...
Make City and Postcode mandatory fields for Serbia
2020-12-02 11:42:24 -03:00
Néstor Soriano
af3077bca9
Merge pull request #28467 from woocommerce/fix/28428
...
Update `lostpassword_post` action and add missing parameter
2020-12-02 15:31:21 +01:00
Néstor Soriano
43f735d0f8
Merge pull request #27558 from PlexusLLC/add_before_set_stock_action
2020-12-02 15:21:05 +01:00
Philipp Bammes
c84f4600e3
Simplify `reload_checkout` expression
2020-12-02 15:01:07 +01:00
Rodrigo Primo
de6d55eef9
Use single quotes inside MySQL query to avoid issues with ANSI_QUOTES
...
This commit replaces double quotes with single quotes inside a MySQL query to avoid a syntax error when the SQL mode ANSI_QUOTES is enabled in MySQL. When this mode is enabled, MySQL treats double quotes as identifiers (like the backtick character) instead of as string delimiters. Before this change, sites running with this mode enabled wouldn't be able to add products to orders created manually in the admin as the modified query would fail (other places that also use product search including variations would fail as well). The commit that introduced this issue shipped in WC 4.5.0 (see https://github.com/woocommerce/woocommerce/pull/27171 ).
2020-12-02 10:37:46 -03:00
Rodrigo Primo
ba538147c1
Update `lostpassword_post` action and add missing parameter
...
`lostpassword_post` is a WP action that is duplicated in WooCommerce to replicate the functionality to retrieve user password in the 'My Account' pages. WP recently added the variable `$user_data` as a second parameter to this action (a6cecef42f
). This commit simply copies this change to the version of the action that we maintain. Similar to what was done in 1a99235dc8
when a first parameter as added to the action in WP and we had to do the same in WC core.
2020-12-02 09:52:58 -03:00
pjv
b4fdf17215
Update includes/data-stores/class-wc-product-data-store-cpt.php
...
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2020-12-02 06:49:56 -06:00
Christopher Allford
d59b47903f
Fixed Puerto Rico address localization
...
* Renamed "City" to "Municipality"
* Made "State" not required and hidden
* Added ZIP code validation
2020-12-01 16:24:58 -08:00
Roy Ho
acd78d43f6
Merge pull request #27451 from haydenw/fix-27339
...
Fix #27339
2020-12-01 13:28:54 -08:00
Roy Ho
f698fbdeee
Merge pull request #28403 from bordoni/issue/28291
...
Prevent non-numeric values from throwing a Warning on PHP 7.4+
2020-12-01 10:43:13 -08:00
Gustavo Bordoni
d6d68ed9cd
Remove white space.
2020-12-01 13:16:53 -05:00
Roy Ho
78e8fb00d2
Merge pull request #28440 from mathiasdb/patch-1
...
Update wc-formatting-functions.php
2020-11-30 07:37:44 -08:00
Roy Ho
89efae43a1
Merge pull request #28416 from woocommerce/fix/issue-27154
...
Fix/issue 27154
2020-11-30 06:14:15 -08:00
Roy Ho
d795ecb6b9
Merge pull request #28351 from OlegApanovich/fix/27923
...
Fix toggle chevron issue in admin edit product data attribute section
2020-11-27 05:42:34 -08:00
OlegApanovich
26dae12279
Fix toggle chevron issue in admin edit product data attribute section #27923
...
After chevron clicking on attribute section complete edit product data section toggled insted cliackig area.
Key point issue is missing 'postbox' class of wordpress postbox.js library for a attribute block that we try to toggle.
2020-11-27 11:50:44 +02:00
Milana Cap
5fae30bea0
Make City and Postcode mandatory fields for Serbia
...
As these fields were mandatory for Serbia from the beginning, making them optional by default is causing shop owners additional effort to set them back to mandatory. This PR is making them mandatory by default.
Fixes #28366
2020-11-25 22:36:44 +01:00
roykho
3981377809
Strip the tags from product description on all other select2 fields that performs searches
2020-11-25 13:32:50 -08:00
roykho
9f12b34237
Fix unwanted html tags showing when searching products in select2 closes #27154
2020-11-25 13:15:56 -08:00
Gustavo Bordoni
2909be0777
Prevent non-numeric values from throwing a Warning on PHP 7.4+
...
Resolves #28291
2020-11-25 00:10:04 -05:00
Christopher Allford
686872a237
Merge pull request #28134 from woocommerce/add/2021-compat
...
Add support for Twenty Twenty-One theme
2020-11-24 16:26:34 -08:00
Claudio Sanches
1547372f62
Merge pull request #28377 from woocommerce/fix/28254
...
Map all possible taxonomy templates
2020-11-23 21:40:48 -03:00
Claudio Sanches
76c0a2ce8e
Merge pull request #28378 from woocommerce/fix/28256
...
Display *-product_<cat|tag>.php template overrides in Status page
2020-11-23 21:19:01 -03:00
Claudio Sanches
cba0cc4799
Revert "Load product category content with content-product-cat.php"
2020-11-23 20:52:27 -03:00
Claudio Sanches
e8b2a9adab
Display *-product_<cat|tag> template overrides in Status page
2020-11-23 20:12:38 -03:00
Claudio Sanches
4418e79d0a
Map all possible taxonomy templates
2020-11-23 19:29:30 -03:00
Roy Ho
36108a2c83
Merge pull request #28322 from aheckler/patch-1
...
Return default date and time formats if options are empty
2020-11-23 13:52:00 -08:00
Viktor Szépe
ac3acc3df0
Fix CS
2020-11-20 18:53:39 +01:00
Viktor Szépe
996fb293a8
Fix types in WC_Payment_Gateway
2020-11-20 18:37:45 +01:00
Mathias De Beyser
5f14472e5a
Update wc-formatting-functions.php
...
Issue
When changing the "low stock amount" on product level, a.k.a. setting a "low stock amount" for a specific product. The message on the single product page does not change from "%s in stock" to "Only %s left in stock". It only checks the global setting "low stock quantity" defined in WooCommerce > Products > Stock.
2020-11-19 21:29:57 +01:00
Rodrigo Primo
1fca8bb1b1
Replaces a few more instances of jQuery.fn.click() event shorthand
...
This commit replaces a few more instances of jQuery.fn.click() event shorthand that were missed in the previous commit. For more information see the commit message for 8ebead165e
.
2020-11-18 16:31:17 -03:00
Rodrigo Primo
ee31c791af
Fix PHPCS violations
2020-11-18 15:33:36 -03:00
Rodrigo Primo
8ebead165e
Replace usages of depracted jQuery.fn.click() event shorthand
...
This commit replaces all instances in WooCommerce codebase (except included third-party libraries) where jQuery.fn.click( handler ) event shorthand was used. This shorthand was deprecated in jQuery 3.3 (see https://github.com/jquery/jquery/issues/3214 ). The jQuery documentation was not updated yet (see https://github.com/jquery/jquery-migrate/issues/288 and https://github.com/jquery/api.jquery.com/issues/972 ).
jQuery.click() was not deprecated and so it was not replaced.
2020-11-18 15:27:46 -03:00
Rodrigo Primo
246710fce8
Merge branch 'master' into fix/28232
2020-11-17 14:47:33 -03:00
Adam Heckler
b0580f0eb4
More code standards fixes
2020-11-17 12:31:17 -05:00
Adam Heckler
c3487785d5
Code standards fixes
2020-11-17 10:54:53 -05:00
Adam Heckler
97eea98a23
Return default date/time formats if blank
...
Fixes #28319
2020-11-17 10:21:20 -05:00
Rodrigo Primo
0e319f3293
Merge pull request #28151 from woocommerce/add/requires-php-support
...
Add requires_php support
2020-11-17 10:39:12 -03:00
Christopher Allford
52354c95cd
Merge pull request #28277 from woocommerce/add/prepare-4.9
...
Prepared branch for 4.9
2020-11-16 08:42:29 -08:00
Jonathan Sadowski
67b3d1c5fb
Fix stretched product admin images
2020-11-14 10:27:42 -05:00
Vedanshu Jain
ae163eb28b
Merge pull request #27734 from woocommerce/enhancement/optimize-wc-order
...
Optimize function `wc_get_orders` by priming caches beforehand
2020-11-14 12:37:44 +05:30
Claudio Sanches
f8f1417d72
Fixed function name
2020-11-13 17:57:29 -03:00
Claudio Sanches
b506627528
Keep WC_Checkout::process_checkout() backwards compatible
2020-11-13 17:49:27 -03:00