Rodrigo Primo
b7aee86b2c
Remove hash_equals() polyfill that is no longer needed
...
This polyfill was added back in 2015
(1f62a53e0e
). WP includes the same polyfill
since version 3.9.2 and WC requires WP >= 5.0
(7d672c38a4
). So we don't need to maintain our own version of this function anymore.
2020-01-23 14:36:37 -03:00
Rodrigo Primo
1078b4fe87
Merge pull request #25320 from grey-rsi/top-rated-widget-args
...
Add `woocommerce_top_rated_widget_args` filter for WC_Widget_Top_Rate…
2020-01-23 12:31:38 -03:00
Peter Fabian
1f9cd9eae9
Merge pull request #24066 from malviyaritesh/fix/24062
...
Filter meta value even if key not found
2020-01-23 14:59:39 +01:00
vedanshujain
d768fcb139
Apply rounding only if value is integer to display "-" when needed.
2020-01-23 17:36:49 +05:30
Claudio Sanches
8ee6337aea
Move validation to the top
2020-01-22 12:39:19 -03:00
Claudio Sanches
d9cc0910ef
Trim whitespaces and strip slashes from MaxMind License Key
2020-01-22 12:38:10 -03:00
Sergey Ratushnuy
bd647cd9cf
Small fix
2020-01-21 18:03:01 +02:00
Sergey Ratushnuy
2d1ce22e25
Changed filter name
2020-01-21 17:29:58 +02:00
Claudio Sanches
5c169bf54c
Fixed default value for wc_get_customer_default_location()
2020-01-21 11:53:45 -03:00
Christopher Allford
a6981fc1c0
Added a file existence check to the MaxMind country lookup method to prevent warnings
2020-01-20 21:20:32 -08:00
Kathy Daring
917795d78f
Add woocommerce_quantity_input_placeholder filter
2020-01-20 10:27:45 -07:00
Rodrigo Primo
6333d11bc7
Merge pull request #25431 from woocommerce/update/maxmind-integration-docs
...
Updated MaxMind's license key field description
2020-01-20 13:54:38 -03:00
Claudio Sanches
66fcc31f00
Updated MaxMind's license key field description
2020-01-20 13:18:52 -03:00
Christopher Allford
c8c66cabee
Expanded the license key invalid error to consider the case where the key is not active yet
2020-01-20 07:57:44 -08:00
Mike Jolley
2638879bdc
Add columns to schema and update routine
2020-01-20 14:21:42 +00:00
Mike Jolley
314cc8eee6
Add columns to data store
2020-01-20 14:17:42 +00:00
Mike Jolley
083c87338b
Add columns to wc_update_product_lookup_tables
2020-01-20 14:17:25 +00:00
Gerhard Potgieter
dc5712db84
Merge pull request #25426 from rvdsteege/unique-meta-is-vat-exempt
...
Add order meta `is_vat_exempt` with unique meta key.
2020-01-20 14:31:24 +02:00
Gerhard Potgieter
6bed0db518
Merge pull request #25149 from 4selin/feature/25094
...
Address in shipping calculator malformed for Canada #25094
2020-01-20 14:24:35 +02:00
Reüel van der Steege
97456e7d78
Add order meta `is_vat_exempt` with unique meta key.
2020-01-20 12:06:32 +01:00
Rodrigo Primo
4e58f77575
Merge pull request #25322 from woocommerce/pr-25242
...
Prevent fatal error in set_current_gateway with no WC session
2020-01-17 09:54:03 -03:00
Rodrigo Primo
f0ccd9bd50
Merge pull request #25395 from woocommerce/fix/25394
...
Check for the WooCommerce Admin class before adding notice
2020-01-17 09:52:38 -03:00
Kathy Daring
bcb17b62c2
Add support for placeholders in quantity inputs
...
(cherry picked from commit 99eb5074f3
)
2020-01-16 12:47:15 -07:00
Rodrigo Primo
8489d1bd33
Merge branch 'master' into fix/25394
2020-01-16 16:35:43 -03:00
Rodrigo Primo
2668bf6025
Merge pull request #25314 from woocommerce/fix/24746
...
Removed the lowercase conversion of product search terms
2020-01-16 16:29:07 -03:00
Rodrigo Primo
5a7075813c
Merge pull request #25344 from woocommerce/bug/valid_order_status_filter
...
Add second parameter to `woocommerce_valid_order_statuses_for_payment` filter.
2020-01-16 16:01:09 -03:00
Rodrigo Primo
cb85c981ac
Merge branch 'master' into pr-25242
2020-01-16 15:30:58 -03:00
Rodrigo Primo
3fd6a66229
Merge pull request #25405 from woocommerce/fix/25385
...
Use wp_mail() default args in WC_Email
2020-01-16 15:23:30 -03:00
Claudio Sanches
bccb93fa3c
Merge pull request #25378 from woocommerce/fix/25361
...
Add license key support to MaxMind GeoLite2 database downloads
2020-01-15 20:51:14 -03:00
Claudio Sanches
eedf82da38
Fixed coding standards
2020-01-15 20:40:55 -03:00
Christopher Allford
e56e5dfc50
Pushed the first woocommerce_geoip_updater execution to fifteen days in the future
...
This will prevent the routine from deleting the pre-update archive that we just moved in the previous update routine.
2020-01-15 10:25:51 -08:00
Christopher Allford
2b503e0409
Changed the MaxMind database update process to move the existing archive instead of deleting it
2020-01-15 10:24:13 -08:00
Claudio Sanches
d9c22d60be
Use wp_mail() default args in WC_Email
2020-01-15 13:33:12 -03:00
Ron Rennick
fda63f4536
move action scheduler to external via composer
2020-01-15 10:31:04 -04:00
Claudio Sanches
5bafac3012
Improved maxmind_missing_license_key_notice logic
2020-01-14 23:32:55 -03:00
Christopher Allford
42269f965c
Added clarification that the MaxMind license key is not strictly necessary
2020-01-14 14:09:51 -08:00
Christopher Allford
27bcba1ac7
Added a deprecation to the old Geolite library wrapper class' public methods
2020-01-14 13:44:41 -08:00
Christopher Allford
c34a5b6ffe
Added an update task to increase the database version
2020-01-14 13:39:47 -08:00
Christopher Allford
1ac8eebac3
Added clarity to the file path in the integration settings
2020-01-14 13:32:59 -08:00
Christopher Allford
e851160927
Removed the erroneous space on the woocommerce_geoip_updater scheduled event
2020-01-14 13:20:41 -08:00
Rodrigo Primo
241c6cd590
Make context for admin notice documentation more clear
2020-01-14 17:07:12 -03:00
Claudio Sanches
92478b4739
Introduced woocommerce_maxmind_geolocation_update_database_periodically filter
2020-01-14 16:57:07 -03:00
Rodrigo Primo
efb200799d
Merge branch 'fix/25361' of github.com:woocommerce/woocommerce into fix/25361
2020-01-14 16:47:06 -03:00
Rodrigo Primo
23e1abe1dc
Fix typo in php docblock
2020-01-14 16:45:57 -03:00
Claudio Sanches
f9c31589c6
Fixed conditional code
2020-01-14 16:44:01 -03:00
Claudio Sanches
10cdbf88be
Use shop base address as default customer location
2020-01-14 16:29:48 -03:00
Claudio Sanches
992e13fb08
Updated implementation of geolite2
2020-01-14 16:24:07 -03:00
Claudio Sanches
46110fa39c
Introduced woocommerce_get_geolocation filter
2020-01-14 15:54:24 -03:00
Claudio Sanches
978c5b5fb9
Apply woocommerce_maxmind_geolocation_display_notices filter in notices class
2020-01-14 15:22:53 -03:00
Claudio Sanches
b3b4e92fe1
Moved HTML to a single file
2020-01-14 12:20:46 -03:00
Christopher Allford
0f18570827
Added the database path to the integration page for documentation purposes
2020-01-13 21:02:22 -08:00
Christopher Allford
b577b8a386
Changed the geoip update cron to run every 15 days to better comply with MaxMind's TOS
2020-01-13 17:02:41 -08:00
Claudio Sanches
1c874264d8
Removed MaxMind from System Status page
2020-01-13 21:48:23 -03:00
Christopher Allford
25dbc47da9
Added a note that the MaxMind integration will only do country lookups.
2020-01-13 14:43:00 -08:00
Christopher Allford
7a5083e47b
Revert "Added a database option to allow for selecting different MaxMind databases"
...
This reverts commit d32c470cea
.
2020-01-13 14:41:24 -08:00
Christopher Allford
d32c470cea
Added a database option to allow for selecting different MaxMind databases
2020-01-13 14:10:08 -08:00
Claudio Sanches
f9d8b85c04
Remove notice when license key is present
2020-01-13 17:40:10 -03:00
Christopher Allford
ef0eccf0ac
Added upgrade step for removing the legacy MaxMind database
2020-01-13 11:18:14 -08:00
Christopher Allford
48d819ebeb
Added support for non-standard upload folder paths
2020-01-13 11:00:23 -08:00
Christopher Allford
6d3a3053c5
Moved the database file into the woocommerce_uploads folder
2020-01-13 08:53:43 -08:00
Christopher Allford
4f6aec61fd
Added support for a randomized MaxMind database file prefix
2020-01-13 08:16:44 -08:00
Joshua Flowers
902e1cc184
Check for the WooCommerce Admin class before adding notice
2020-01-13 17:43:27 +08:00
Joel Rowley
d6771dc681
Prevent fatal error in set_current_gateway with no WC session
2020-01-13 14:18:49 +05:30
Christopher Allford
f5d07c954c
Adjusted the MaxMind license key notice to be clearer
2020-01-10 13:07:26 -08:00
Claudio Sanches
107720dc08
Make is_package_shippable less strict
2020-01-10 17:05:28 -03:00
Claudio Sanches
49aed6f6ca
Remove alternatives for deprecated methods
2020-01-10 16:31:27 -03:00
Claudio Sanches
c3abe8ac65
Added missing license key notice and triggers
2020-01-10 15:07:05 -03:00
Claudio Sanches
48547143f4
Fixed integration ID
2020-01-10 15:02:56 -03:00
Claudio Sanches
91ec28f167
Updated integration ID and included methods to display notices
2020-01-10 15:02:11 -03:00
Claudio Sanches
cfeb07eaf7
Removed legacy code
2020-01-10 13:18:25 -03:00
Claudio Sanches
8aa7e62a21
Fixed fatal error in system status page
2020-01-10 12:22:42 -03:00
Claudio Sanches
2554cbf6e0
Prevent fatal error if MaxMind Reader is not installed
2020-01-10 12:16:53 -03:00
Claudio Sanches
0e119cb97a
Fixed missing methods, added deprecated notices and @since
2020-01-10 11:58:53 -03:00
Christopher Allford
93e1d606ed
Fixed a bug where empty database paths might break the update
2020-01-10 02:47:23 -08:00
Christopher Allford
19ded6609d
Refactored the MaxMind database class to not use static methods in order to make testing the integration class easier
2020-01-10 02:09:51 -08:00
Christopher Allford
26e0b71fce
Added support for mod_maxminddb's MM_COUNTRY_CODE server variable
2020-01-10 01:23:06 -08:00
Christopher Allford
0f6da046a1
Refactored the IP geolocation method
2020-01-10 00:08:24 -08:00
Christopher Allford
b7521368a7
Fixed the response for the geolocation filter
2020-01-10 00:07:55 -08:00
Christopher Allford
bbbfc3bfab
Moved the MaxMind geolocation lookup into the integration class
2020-01-09 23:46:25 -08:00
Christopher Allford
02ee3f695e
Moved the database update from the WC_Geolocation class to the MaxMind-specific integration
2020-01-09 23:22:42 -08:00
Christopher Allford
6e41f370a5
Added a documentation link to the license key setting description
2020-01-09 21:39:28 -08:00
Christopher Allford
2df3af1e63
Deprecated the WC_Geolocation::get_local_database_path method
2020-01-09 21:31:12 -08:00
Christopher Allford
f91ff82806
Moved the loading of the database class into the integration
2020-01-09 21:29:47 -08:00
Christopher Allford
d45a3541f4
Removed the unnecessary GeoLite2 version check
2020-01-09 20:58:42 -08:00
Christopher Allford
0d4b8f4bd3
Added sanitization to the license key in download URLs
2020-01-09 20:44:13 -08:00
Christopher Allford
6af0edfd94
Added a deprecation notice for the GEOLITE2_DB constant
2020-01-09 16:21:33 -08:00
Christopher Allford
72a84911ea
Simplified the URL generation for geolocation database downloads
2020-01-09 16:18:20 -08:00
Christopher Allford
7cdd19da3f
Fixed the erroneous return in WC_Geolocation::get_local_database_path
2020-01-09 16:16:34 -08:00
Christopher Allford
bf057927ae
Moved the loading of integration classes into the WC_Autoloader
2020-01-09 15:46:01 -08:00
Christopher Allford
98119047bf
Added back the WC_Geolocation's get_local_database_path method since it was publicly used
2020-01-09 00:56:22 -08:00
Christopher Allford
3e597e6f68
Replaced the Geolocation database fetching functionality with MaxMind integration
2020-01-09 00:31:51 -08:00
Christopher Allford
000a75c23b
Fixed the validation for MaxMind license keys
2020-01-08 22:56:24 -08:00
Christopher Allford
95e59fc777
Made the database service class methods static for convenience \
2020-01-08 21:59:04 -08:00
Christopher Allford
1eb49ef8b8
Added filterable support for fetching the database path
...
This replaces the corresponding geolocation class functionality. We are deprecating the woocommerce_geolocation_local_database_path filter in favor of the woocommerce_maxmind_geolocation_databse_path filter. Since we want the option to turn this into a feature plugin, it's wise to make sure nothing is too generic.
2020-01-08 21:48:05 -08:00
Christopher Allford
46d7f16b19
Added support for downloading and extracting the GeoLite2 database
2020-01-08 21:09:35 -08:00
Christopher Allford
45157ff4e1
Added a default integration settings page for managing MaxMind Geolocation services
2020-01-08 21:08:25 -08:00
Christopher Allford
a477f9367d
Added support for creating default integrations
2020-01-08 21:05:14 -08:00
Christopher Allford
300064187b
Moved the MaxMind DB Reader library into composer and pinned the latest version
2020-01-07 15:25:58 -08:00
Claudio Sanches
cd137915b8
Set correct post type for product variation
...
And catch any WC_Data_Exception
2020-01-06 21:36:54 -03:00
Claudio Sanches
3ebda4a431
Use WC_Data_Exception in WC_Product_Variation_Data_Store_CPT
2020-01-06 21:35:23 -03:00
Claudio Sanches
85a077b939
Coupon race condition prevention
2020-01-06 19:44:24 -03:00
Jeremy Pry
19684ceb6c
Add second parameter to `woocommerce_valid_order_statuses_for_payment` filter.
...
Everywhere the `woocommerce_valid_order_statuses_for_payment` filter is used, a second parameter is passed: the `WC_Order` object. This parameter was missed in #25158 .
Omitting this parameter can cause errors in other extensions expecing that it will be present when hooking into the filter.
2019-12-31 15:13:50 -05:00
Vedanshu Jain
842861005c
Merge pull request #25312 from woocommerce/fix/25268
...
Fixed number of filter args in WC_Emails
2019-12-26 16:59:17 +05:30
Sergey Ratushnuy
e3ac006420
Add `woocommerce_top_rated_widget_args` filter for WC_Widget_Top_Rated_Products widget
2019-12-26 11:51:34 +02:00
Christopher Allford
a7daebc6fd
Fixed an exception that was thrown when a country had no states when checking for package shippability
2019-12-26 13:55:42 +05:30
Christopher Allford
e800b40ad6
Made packages with incomplete destinations unshippable
2019-12-26 13:55:41 +05:30
Christopher Allford
874be93c14
Removed the lowercase conversion of product search terms
...
When searched in a case sensitive manner, the conversion to lowercase causes uppercase matches that would have been found to be lost. This change increases the tolerance of the OR search format while also removing this unintended side-effect.
2019-12-24 15:00:40 -08:00
Claudio Sanches
eb57532740
Fixed number of filter args in WC_Emails
2019-12-24 12:09:50 -03:00
Claudio Sanches
7701d4b57c
Merge pull request #25286 from woocommerce/fix-phpcs-violations
...
Fix PHPCS violations automatically using PHPCBF
2019-12-23 12:22:42 -03:00
David Levin
40c76b83a2
update order to play nice with gateways, add paid by customer when order is paid in full
2019-12-22 20:14:31 -08:00
David Levin
e4fcfc4d1a
add net payment calculation, and re-order refund item to bottom of rows
2019-12-20 14:28:06 -08:00
David Levin
34ff4544ff
trying to get net payment to work
2019-12-20 12:27:17 -08:00
David Levin
b7c455c9d1
Add line for net payment post refund
2019-12-20 12:06:11 -08:00
Rodrigo Primo
7337ab60c2
Fix PEAR.Functions.FunctionCallSignature violations
...
This commit fixes all violations of the PEAR.Functions.FunctionCallSignature sniff automatically using phpcbf.
2019-12-20 15:25:23 -03:00
Rodrigo Primo
86c1b61f03
Fix Generic.WhiteSpace.ScopeIndent violations
...
This commit fixes all violations of the Generic.WhiteSpace.ScopeIndent sniff automatically using phpcbf.
2019-12-20 14:48:11 -03:00
Rodrigo Primo
2c74233be2
Fix WordPress.WhiteSpace.DisallowInlineTabs violations
...
This commit fixes all violations of the WordPress.WhiteSpace.DisallowInlineTabs sniff automatically using phpcbf.
2019-12-20 14:27:07 -03:00
Rodrigo Primo
487f96d844
Fix WordPress.DateTime.CurrentTimeTimestamp vilations
...
This commit fixes all violations of the WordPress.DateTime.CurrentTimeTimestamp sniff automatically using phpcbf.
2019-12-20 14:23:05 -03:00
Rodrigo Primo
62d6b05b58
Fix Generic.Formatting.MultipleStatementAlignment violations
...
This commit fixes all violations of the Generic.Formatting.MultipleStatementAlignment sniff automatically using phpcbf.
2019-12-20 14:21:08 -03:00
Rodrigo Primo
179dd7003e
Fix Generic.Arrays.DisallowShortArraySyntax violations
...
This commit fixes all violations of the
Generic.Arrays.DisallowShortArraySyntax sniff automatically using
phpcbf.
2019-12-20 14:18:04 -03:00
Rodrigo Primo
94373f78ea
Fix WordPress.Arrays.MultipleStatementAlignment errors automatically using phpcbf
2019-12-20 13:51:26 -03:00
Rowayda.Khayri
f6574e3f91
fix a typo
2019-12-20 18:45:34 +02:00
David Levin
b5bdb3dae0
change the order of shipping and fees in order line items
2019-12-19 12:11:50 -08:00
David Levin
25603cc190
display actual item price before discount in order item cost
2019-12-19 08:14:03 -08:00
David Levin
7ecae84d99
Rename coupons to discounts in order summary
2019-12-19 08:00:21 -08:00
David Levin
8c62fc72a6
update order summary totals
2019-12-19 07:53:35 -08:00
David Levin
d25178b793
rename fee method again
2019-12-18 22:19:34 -08:00
Matt Harvey
11ee9525b3
Merge branch 'update/order-details-3' into update/order-details-3
2019-12-18 22:09:59 -08:00
Matt Harvey
4326e39250
Leave other fee total logic alone, reduce the fee array to get a simple sum
2019-12-18 22:08:39 -08:00
David Levin
5df30cdbd6
rename method to get fee totals
2019-12-18 21:34:40 -08:00
Matt Harvey
73189340c8
Merge branch 'master' into update/order-details-4
2019-12-18 21:00:32 -08:00
Matt Harvey
4eeec4705d
Abstract fee calculation and expose as method to abstract Object class.
2019-12-18 20:58:39 -08:00
David Levin
c6cd7331f9
update order details summary with items subtotal and start to add fees
2019-12-18 20:51:45 -08:00
Justin Shreve
a5ee52a6c6
Add WP version check before recommending WooCommerce Admin
2019-12-18 09:29:21 -05:00
Rohan V
83c88e47a5
Add fix to increase column size for existing installations
2019-12-18 13:24:18 +05:30
Rohan V
2541786ef5
Increase field size for new installation
2019-12-18 12:49:32 +05:30
vedanshujain
ad2f76275a
Applied coding standards
2019-12-17 19:13:19 +05:30
vedanshujain
ba2d825800
Use DB timestamp to ensure consistency between servers.
2019-12-17 19:13:19 +05:30
vedanshujain
9b7343d23b
Applied coding standards
2019-12-17 19:13:19 +05:30
vedanshujain
47ba1d49da
Cascade to return null to prevent notice when array is empty.
...
Another situation where this change is required when there are two coupons in an order but only one coupon has limit. In this case array will be present but one of the coupon will not have a corresponding record which will throw a notice.
2019-12-17 19:13:19 +05:30
vedanshujain
53bfcea110
Use same filter for stocks and coupon for consistency.
2019-12-17 19:13:19 +05:30
vedanshujain
72545c44b7
Add support for `_held_for_checkout` records to improve performance.
...
This will also improve transactional stability and avoid race conditions by providing a way to lock usage counts.
2019-12-17 19:13:19 +05:30
Rodrigo Primo
ae1717cd4f
Fix PHPCS violations automatically using PHPCBF
2019-12-13 17:51:14 -03:00
Rodrigo Primo
f06ad5d78a
Replace removed WordPress.Security.NonceVerification.NoNonceVerification
...
WordPress Coding Standard 2.0 removed the sniff
WordPress.Security.NonceVerification.NoNonceVerification:
```
The WordPress.Security.NonceVerification sniff used the same error code for both an error as well as a warning.
The old error code NoNonceVerification is no longer used.
The error now uses the Missing error code, while the warning now uses the Recommended error code.
```
(from
d45f5e5cf3/CHANGELOG.md (200-rc1---2018-12-31)
)
This commit updates WooCommerce code and replaces all instances where WordPress.Security.NonceVerification.NoNonceVerification verification was used with either WordPress.Security.NonceVerification.Missing or
WordPress.Security.NonceVerification.Recommended. In a few cases WordPress.Security.NonceVerification.NoNonceVerification was used but was not needed, so instead of replacing the sniff, the line was removed. In two other cases, I removed other unrelated sniffs that were not needed.
2019-12-13 17:45:32 -03:00
Rodrigo Primo
9c4de8f5e7
Fix indentation
2019-12-13 16:48:17 -03:00
Rodrigo Primo
d451b68488
Merge pull request #24929 from helgatheviking/feature/woocommerce_process_variation_object
...
Add woocommerce_admin_process_variation_object before $variation->save()
2019-12-13 16:46:22 -03:00
Rodrigo Primo
00c40dab1a
Add pay order product has enough stock filter ( #25230 )
...
* [#25021 ] Add filter when checking if product has enough stock while paying for order
* [#25021 ] Retain original < check, invert bool
* [#25021 ] Make filter more readable
2019-12-13 11:16:30 -03:00
Rodrigo Primo
e963d7cfab
Fix minor imprecision in wc_is_wp_default_theme_active() documentation
2019-12-13 09:59:20 -03:00
Peter Fabian
72925ef41c
Centralize check for default themes.
...
This should make Storefront appear in the Setup Wizard again.
2019-12-11 18:35:04 +01:00
Claudio Sanches
2975b3a7b7
Rate limit feature
2019-12-11 01:38:19 -03:00
Claudio Sanches
589d8c4591
Updated WooCommerce::$version
2019-12-10 22:55:08 -03:00
Claudio Sanches
f7632de06e
Merge pull request #25164 from om4james/webhook-delete-cache
...
Delete cached webhook data when a webhook is deleted
2019-12-10 22:45:42 -03:00
Claudio Sanches
02ae29c8fc
Fixed support to older versions of WordPress
2019-12-10 22:12:50 -03:00
dsmithweb
5a17c63cc9
Update links
2019-12-10 18:41:55 -06:00
Claudio Sanches
57d5c88b13
Merge pull request #24876 from akshaya-rane/fix-product-bulk-edit
...
refs #24638 Fixed Stock status update on Bulk Edit
2019-12-10 12:29:48 -03:00
Peter Fabian
d8f49787a4
Better reflect variable purpose with updated name.
2019-12-10 14:22:30 +01:00
Peter Fabian
fd66112bb7
Add WP version number class to Setup Wizard/OBW body element.
2019-12-10 13:32:13 +01:00
Claudio Sanches
104f40c36e
Merge pull request #24281 from woocommerce/fix/24269
...
Handle multiple decimal points
2019-12-09 14:07:29 -03:00
Andrej Mernik
d20d429e32
Add postcode validation for Slovenia ( #25174 )
...
Add postcode validation for Slovenia
2019-12-09 10:09:45 -03:00
Claudio Sanches
85635773e9
Fixed coding standards
2019-12-06 12:51:10 -03:00
Claudio Sanches
78e382e4d6
Fixed incorrect concatenation of variation sale prices with ".00"
2019-12-06 12:37:23 -03:00
Claudio Sanches
0d1d0d6653
Fixed coding standards
2019-12-06 11:18:13 -03:00
Claudio Sanches
b4af5f3c89
Updated regex to allow only one decimal point
2019-12-06 11:11:47 -03:00
James Collins
b262ac8e53
Fix for duplicate webhook deliveries
2019-12-06 09:54:24 +08:00
James Collins
0246b02a94
Merge branch 'master' into webhook-delete-cache
2019-12-06 08:57:54 +08:00
Khokan Sardar
51252a6f8e
Fixed issue #24575 ( #24586 )
...
* Fixed issue #24575
* Fixed implementation for #24575
2019-12-05 21:23:40 -03:00
Juancho Pestana
b8217fa080
Fix #24365 : Prevent billing address from being updated on shipping update. ( #24374 )
...
* Prevent billing address from being updated on shipping update.
* Set billing address if empty.
* Fix coding standard issue.
* Fixed missing tab
2019-12-05 21:17:01 -03:00
Claudio Sanches
5dac360e8a
Merge pull request #24208 from woocommerce/fix/order-screen-tax-calculation-to-honor-rounding-setting
...
Honor tax rounding preference in edit item and refund flows
2019-12-05 20:52:48 -03:00
Claudio Sanches
2e94410dc4
Merge pull request #24683 from n-dawson/fix-archive-orderby-param
...
Refine static homepage check to exclude blog archive queries. Fixes #…
2019-12-05 20:41:59 -03:00
Claudio Sanches
4ea81923da
Merge pull request #24935 from woocommerce/fix/24845-wpcom-customizer
...
Do not run send_frame_options_header when on the customizer
2019-12-05 20:28:55 -03:00
Rodrigo Primo
27915dd696
Exception when WC_Product_Variation is instantiated with the wrong type
...
This commits changes WC_Product_Variation to raise an exception when the
class is instantiated with an ID that belongs to a post object that is
not a product variation.
This is necessary to avoid problems like the one described in #24956
where passing a variable product ID to WC_Product_Variation would result
in transparently modifying the variable product title and excerpt.
2019-12-05 15:45:48 -03:00
Rodrigo Primo
61a843679a
Fix WPCS violations automatically using phpcbf
2019-12-05 15:45:12 -03:00
Claudio Sanches
d7e2a98aaf
Merge pull request #24828 from woocommerce/fix/24695
...
Adds shared code between Orders and Cart calculation logic.
2019-12-05 12:39:50 -03:00
Peter Fabian
44d39c369e
Fixed the PHPCS to reflect new rules.
2019-12-05 16:00:18 +01:00
Peter Fabian
4dfa68b62d
More PHPCS fixes.
2019-12-05 15:46:13 +01:00
Peter Fabian
2e81f21e29
Improved variable naming and comments.
2019-12-05 15:37:33 +01:00
Peter Fabian
159199f254
Check the nonce before the rate limiting.
2019-12-05 15:36:50 +01:00
Peter Fabian
85c4a5beed
PHPCS fixes.
2019-12-05 15:30:53 +01:00
Gerhard Potgieter
7d39222334
Merge pull request #25162 from woocommerce/fix/24018
...
Hid variable parent products from "Add Products" search on order page
2019-12-05 14:22:43 +02:00
Rodrigo Primo
6b61d5f025
Merge pull request #24934 from woocommerce/add/filter_invalid_variations_notice
...
Introduce show_invalid_variations_notice filter
2019-12-05 09:08:24 -03:00
Peter Fabian
0d3074a554
Added rate limiting to Add payment method.
2019-12-05 12:03:02 +01:00
Gerhard
216a86b558
Change filter name to woocommerce_show_invalid_variations_notice and also pass through the $product_object variable.
2019-12-05 08:08:07 +02:00
Christopher Allford
b67d094601
Added support for comma-delimited lists of types to exclude
2019-12-04 14:39:41 -08:00
Rodrigo Primo
3af024fc5c
Merge pull request #25031 from woocommerce/feature/24956
...
Introduced wc_get_product_object() helper
2019-12-04 16:53:04 -03:00
Rodrigo Primo
aaea7b1c55
Merge pull request #25001 from woocommerce/feature/inline-notices
...
Initial support to inline notices
2019-12-04 16:50:40 -03:00
Rodrigo Primo
fe0c1c441e
Merge pull request #24852 from JacobMC/remove_function_causing_php_error
...
Refactor to remove PHP 7 Error
2019-12-04 16:29:11 -03:00
Claudio Sanches
e3b2d9f10c
Merge branch 'master' into feature/inline-notices
2019-12-04 16:26:10 -03:00
Claudio Sanches
5fdb880831
Merge branch 'master' into feature/24956
2019-12-04 16:18:39 -03:00
Claudio Sanches
8033d5751e
Changed wc_get_product_classname function name to wc_get_product_object
2019-12-04 16:15:16 -03:00
Claudio Sanches
a12c25862b
Revert "Add support for '_held_for_checkout` records to prevent race conditions."
2019-12-04 16:03:05 -03:00
Claudio Sanches
0686e6f1cd
Merge pull request #25000 from woocommerce/feature/pay-button-support
...
Initial support for "pay button"
2019-12-04 16:02:02 -03:00
Claudio Sanches
f07ed76e43
Fixed coding standards
2019-12-04 15:53:48 -03:00
Rodrigo Primo
4af9a94129
PHPCS fixes
2019-12-04 15:52:20 -03:00
Claudio Sanches
b76bebab8d
Improved escaping and HTML formatting
...
Fixed coding standards
2019-12-04 15:52:00 -03:00
Claudio Sanches
adbb4fd2d3
Merge pull request #24937 from jenkoian/wc-placeholder-attrs
...
Add support for custom attributes to wc_placeholder_img().
2019-12-04 15:42:41 -03:00
Claudio Sanches
24c473f932
Merge pull request #24991 from woocommerce/add/new-onboarding-ab-test
...
Onboarding - Show the new experience to 10% of new users
2019-12-04 11:00:23 -03:00
James Collins
b29f8cc1bd
Deleted cached webhook data when deleting a webhook
2019-12-04 12:04:35 +08:00
Christopher Allford
d3a7266848
Hid variable product types from "Add Products" search on order management page
2019-12-03 14:17:51 -08:00
Christopher Allford
d1e25c9118
Added support for excluding certain product types from AJAX product searches
2019-12-03 14:14:47 -08:00
Claudio Sanches
3519b5bd5c
Merge pull request #25049 from woocommerce/fix/24953
...
Prevent creating products before registering related post types and taxonomies.
2019-12-03 18:02:22 -03:00
Claudio Sanches
3beb581215
Merge pull request #25074 from woocommerce/fix/24959
...
Added Photoswipe and jQuery-UI CSS minification
2019-12-03 17:59:51 -03:00