Commit Graph

28223 Commits

Author SHA1 Message Date
Gerhard Potgieter 1f46caaa4c Test some edge cases where CC name could be empty or contain a non standard value. 2018-07-16 13:02:24 +02:00
Gerhard Potgieter 370c200076 Make wc_array_cartesian test use predefined array for testing against instead of relying on product attributes. 2018-07-16 12:59:01 +02:00
Gerhard Potgieter c7884003dc Do not build paypal pay link when no base country is set. 2018-07-16 11:44:58 +02:00
LuigiPulcini bca7bfe29c
Adding product data to `removed_from_cart` event
Adding `$thisbutton.data()` to the arguments sent by the `removed_from_cart` event.
This would help developers easily detect which product has just been removed and alter their theme/plugin accordingly.
2018-07-14 16:11:16 +02:00
Brent Shepherd 67744b7768 Add 'woocommerce_shutdown_error' action 2018-07-13 17:08:34 +10:00
Brent Shepherd febea645f9 Log error's file and line number
To help with debugging.
2018-07-13 14:23:17 +10:00
Brent Shepherd 0c17fd49e4 Expand error logging to E_ERROR like errors
Including those triggered by code via trigger_error() and compile-time
parse errors (including those generated by Zend Scripting Engine).
2018-07-13 14:21:03 +10:00
Claudiu Lodromanean ef00985e44
Merge pull request #20762 from woocommerce/fix/20752
Fixed notice when variation does not exists on frontend
2018-07-12 11:59:05 -07:00
Joey 6820de4f2f removed all low_stock additions to api files 2018-07-12 11:55:16 +01:00
Peter Fabian 3fa3830b6c
Merge pull request #20757 from woocommerce/update/wc_get_user_agent
Make wc_get_user_agent respect RFC2616
2018-07-12 11:46:51 +02:00
Claudio Sanches 2a1940aeba Fixed notice when variation does not exists on frontend
Closes #20752
2018-07-11 22:02:56 -03:00
Claudiu Lodromanean 6dbd5d5323
Merge pull request #20731 from woocommerce/add/20724
Do not load all tables in multisite system status
2018-07-11 13:42:52 -07:00
Gerhard Potgieter 9e495478f4 Add unit test for wc_decimal_to_fraction 2018-07-11 15:17:00 +02:00
Gerhard Potgieter a28253739f Add wc_get_permalink_structure unit test 2018-07-11 15:10:55 +02:00
Gerhard Potgieter 0c01b6c3bb Add wc_get_credit_card_type_label unit test 2018-07-11 15:05:18 +02:00
Gerhard Potgieter 1d5605c9dc Add wc_array_cartesian unit test 2018-07-11 14:59:05 +02:00
Gerhard Potgieter 2f7e42bb2f Add wc_get_theme_support unit test 2018-07-11 14:38:33 +02:00
Gerhard Potgieter eb533d0263 Update test_get_woocommerce_currencies to test for both cached and uncached currencies, gives us more code coverage 2018-07-11 14:25:42 +02:00
Gerhard Potgieter a6e7ae15f9 Add unit test for testing wc_get_user_agent 2018-07-11 14:11:31 +02:00
Gerhard Potgieter f0bd830502 Do not return or store user agent in lower case as HTTP header fields values are case sensitive as per rfc2616 2018-07-11 13:54:14 +02:00
Peter Fabian 47d0bb7b6a Removed variables that are not needed. 2018-07-11 13:44:43 +02:00
Gerhard Potgieter 7fa802071e
Merge pull request #20490 from dezio1900/master
Allow items to be changed in wc_save_order_items function
2018-07-11 12:52:36 +02:00
ldybecklee 327fd26c70
Fix product csv exporter get stock value
seems the original get stock value is wrong, but I'm not sure if my change is correct...
what i'm considering is this line:  if ( $product->is_type( 'variation' && 'parent' === $manage_stock ) ) {
2018-07-11 17:28:50 +08:00
Gerhard Potgieter 3cda8c439c Better table matching on multisite, hat tip to @claudiulodro for pointing me in the right direction. 2018-07-11 11:19:10 +02:00
Claudiu Lodromanean 1ef4aa10a0
Merge pull request #20728 from woocommerce/fix/20708
Add edit_theme_options capability to shop manager role
2018-07-10 12:01:13 -07:00
Claudio Sanches 9b7fbff544
Merge pull request #20686 from woocommerce/fix/20673
Replaced query attribute placeholder with actual value for header link.
2018-07-10 15:22:30 -03:00
Claudio Sanches 4fd6dbd880
Merge pull request #20740 from woocommerce/fix/20224-b
Escape sku input properly for quick edit
2018-07-10 15:22:09 -03:00
Claudio Sanches 3ed4dea4bb
Merge pull request #20723 from woocommerce/fix/20707
Only wordwrap plain emails
2018-07-10 15:21:57 -03:00
Claudio Sanches 1c7b2f3100
Merge pull request #20670 from woocommerce/pr/20669
Deleting a product via API should handle children products regardless of type.
2018-07-10 15:16:13 -03:00
Gerhard Potgieter ac09473853 Escape sku input properly for quickedit 2018-07-10 10:56:49 +02:00
Gerhard Potgieter 36b6bd79c0 Add update routines to recreate user roles 2018-07-10 10:30:11 +02:00
Claudiu Lodromanean af98ef66e7
Merge pull request #20730 from woocommerce/fix/20716
Fix log file deletion
2018-07-09 11:35:45 -07:00
Claudiu Lodromanean 24a1ccf5fc
Merge pull request #20732 from woocommerce/update/20709
Outdated templates notice improvements
2018-07-09 11:27:46 -07:00
Claudiu Lodromanean 4d0890bf3b
Merge pull request #20714 from yratof/yratof-patch-item-name
Added filter on item name in quotes
2018-07-09 11:06:45 -07:00
Claudiu Lodromanean e8a2e19b27
Merge pull request #20648 from woocommerce/update/crud-get-image
Custom tables: Get image from ID, not post thumbnail
2018-07-09 11:04:52 -07:00
Peter Fabian 28cb32e54b PHPCS fixes. 2018-07-09 18:30:10 +02:00
Peter Fabian 7443a2f906 Switched variation creation to CRUD methods for unit test. 2018-07-09 18:27:56 +02:00
Peter Fabian 3af9c1e95b Merge branch 'master' into fix/20349
# Conflicts:
#	tests/framework/helpers/class-wc-helper-product.php
#	tests/unit-tests/api/products.php
2018-07-09 18:18:06 +02:00
Peter Fabian 2839dba7d2 Switched implementation of variation query parameters in the API from SQL query adjustment to one extra parent query. 2018-07-09 17:14:12 +02:00
Peter Fabian 4a42e2a7fc Added unit tests for query params for variations REST API endpoint. 2018-07-09 17:12:23 +02:00
Peter Fabian 55d7ea4ac5 Improved unit tests for products REST API endpoint. 2018-07-09 17:11:50 +02:00
Gerhard Potgieter 56a9799e6d
Merge pull request #20654 from woocommerce/update/get-terms
Custom tables - remove get terms
2018-07-09 15:27:26 +02:00
Gerhard Potgieter a4e3283b20 Update outdated templates notice 2018-07-09 15:10:49 +02:00
Gerhard Potgieter beaa610cc0 Only load tables for system that is part of current multisite, this avoids displaying all tables in a MS speeding up page load, and also prevent divulding tables on other sites in the MS environment. 2018-07-09 13:48:05 +02:00
Gerhard Potgieter bc3c780b92 PHPCS fixes 2018-07-09 13:04:16 +02:00
Gerhard Potgieter 1fdcf2a238 Fix log file deletion functionality. 2018-07-09 13:01:23 +02:00
Gerhard Potgieter ef2f868b89 Add edit_theme_options capability to shop manager to allow access to customizer for changing WooCommerce settings. 2018-07-09 10:45:48 +02:00
Towhidul Islam 7a957cc130 Convert hardcoded db prefix to dynamic db prefix. Fixes #20718 2018-07-08 10:35:32 +06:00
claudiulodro 38324edc71 Only wordwrap plain emails 2018-07-06 13:29:01 -07:00
Andrew Lazarus d49f02a4e6
Updated prefix in filter 2018-07-06 19:04:08 +02:00