Commit Graph

16006 Commits

Author SHA1 Message Date
Mike Jolley bda186338c Adds the template to the fragment name so that switching themes invalidates any fragments created under the previous theme 2018-04-30 11:28:51 +01:00
Gerhard Potgieter 3f87b3e009 Include scheduled products in the export. 2018-04-30 07:36:00 +02:00
Claudio Sanches 877cc29604 Ensure coupon amount is always a float value
Closes #19889
2018-04-27 18:03:04 -03:00
Claudio Sanches 96c538bf4a Fixed coding standards for #19866 2018-04-27 16:00:53 -03:00
Claudio Sanches b7f1d20148 Fixed coding standards 2018-04-27 15:43:27 -03:00
Rodrigo Primo 18a8a6b752 Don't schedule event to delete transients if limit set to 0
Third-party code can set the limit of transients to be deleted to 0 using the filter `woocommerce_delete_version_transients_limit`. If this happens, the code shouldn't schedule a cron event to delete more transients to avoid flooding the list of cron jobs.

Fixes #19890
2018-04-27 10:31:45 -03:00
Mike Jolley 495cfb44ce
Merge pull request #19880 from woocommerce/add/adjust-priority-privacy-exporters
Reduce priority value for WooCommerce personal data exports
2018-04-27 10:38:00 +01:00
Claudiu Lodromanean 3b24aa9791
Merge pull request #19877 from woocommerce/fix/19863
Fix CSV import cleanup methods
2018-04-26 13:05:27 -07:00
claudiulodro 0b51ad006e Spelling fix 2018-04-26 13:04:09 -07:00
Claudiu Lodromanean 88a13b02db
Merge pull request #19876 from woocommerce/fix/product-type-filter
Fix: product type filter should show selected product type
2018-04-26 11:56:04 -07:00
Claudiu Lodromanean 0bf2dfbca8
Merge pull request #19872 from woocommerce/update/email-restrictions-text
Updates email restrictions label so it's clear this is a whitelist
2018-04-26 11:49:54 -07:00
Claudiu Lodromanean 0e20fb0768
Merge pull request #19861 from rnaby/250418-222543-wc-product-variation
Rewritten the logic and cleaned the code.
2018-04-26 11:46:21 -07:00
Claudiu Lodromanean 08088f15a9
Merge pull request #19858 from rnaby/250418-221130-wc-customer-data-store
Removed redundant else statement and inverted the early return
2018-04-26 11:21:41 -07:00
Allen Snook 65311c41c7 Reduce priority value for WooCommerce personal data exports 2018-04-26 10:50:37 -07:00
Mike Jolley 0d4401d9a8
Merge pull request #19871 from woocommerce/update/gdpr-defaults
Fix GDPR defaults
2018-04-26 17:22:03 +01:00
Mike Jolley 970a77b43b This was not needed after all. 2018-04-26 17:18:39 +01:00
Claudiu Lodromanean 9b37eb980f
Merge pull request #19848 from woocommerce/tweak/support-payment_method_in
Support payment_method_in when selecting orders
2018-04-26 08:26:33 -07:00
Mike Jolley b4657d5a42 Status must be set after import 2018-04-26 16:06:04 +01:00
Mike Jolley 90c5cf67fa Fixed data cleanup after failed import 2018-04-26 16:05:12 +01:00
Boro Sitnikovski d6b4ca980c Add support for arrays when building meta query args 2018-04-26 16:49:49 +02:00
Rodrigo Primo 49855b4676 Fix: product type filter should show selected product type
Since admin lists were refactored in 8f37ea33ed, a bug was introduced that prevented the "Filter by product type" select box in the products list page in the admin from showing the selected product type when filtering by "Downloadable" products. Before marking this option as selected, the code was checking if `$wp_query->query['product_type']` is set. This check made sense before the refactor (see 8f37ea33ed (diff-a116210e8adc50b0853846ba935daaadL1544)) but it doesn't make sense anymore. In the new method, `$wp_query` is not even used.
2018-04-26 10:02:44 -03:00
Mike Jolley b1dfc31d4e Remove tx id 2018-04-26 13:15:14 +01:00
Mike Jolley ef69c27f25 Updates email restrictions label so it's clear this is a whitelist 2018-04-26 12:58:08 +01:00
Mike Jolley ffc5fc6b74
Merge pull request #19865 from rnaby/260418-090005-wc-checkout
Method refactored
2018-04-26 12:37:08 +01:00
Mike Jolley 79c6c6c61b
Merge pull request #19866 from rnaby/260418-091223-wc-checkout
get_value method refactored
2018-04-26 12:34:46 +01:00
Mike Jolley 6a1cd802bc
Merge pull request #19868 from rnaby/260418-101617-wc-checkout
process_order_without_payment method redundant else removed
2018-04-26 12:29:14 +01:00
Mike Jolley e6eaa4f83c Fix colorpicker styling 2018-04-26 12:21:17 +01:00
Mike Jolley ccff8ecd17 Fix policy text preview in customizer. 2018-04-26 12:11:11 +01:00
Mike Jolley d73d15a73d Phone was required in 3.3 - set default 2018-04-26 11:52:36 +01:00
Mike Jolley e15a4f63a0 Update defaults so account creation is disabled until setup by admin 2018-04-26 11:50:15 +01:00
Mike Jolley 091d5326f2 Update abstract class and privacy code 2018-04-26 11:29:51 +01:00
Khan M Rashedun-Naby c235d05446 process_order_payment method redundant else removed. 2018-04-26 10:24:31 +06:00
Khan M Rashedun-Naby dfcec0ce39 process_order_without_payment method redundant else removed 2018-04-26 10:18:47 +06:00
Khan M Rashedun-Naby e1fea55cb6 get_value method refactored 2018-04-26 09:40:58 +06:00
Khan M Rashedun-Naby 6714d47e8d Some more clean up 2018-04-26 09:11:36 +06:00
Khan M Rashedun-Naby d7458493c6 get_checkout_fields method refactored 2018-04-26 09:03:51 +06:00
Khan M Rashedun-Naby 98a13a0fc2 Rewritten the logic and cleaned the code. 2018-04-25 22:54:17 +06:00
Khan M Rashedun-Naby c174316bf8 Removed redundant else statement and inverted the early return 2018-04-25 22:21:21 +06:00
Mike Jolley 2f6d2b857b
Merge pull request #19833 from rnaby/240418-091920-wc-admin-log-table-list
Inverted the condition based returns.
2018-04-25 12:00:34 +01:00
Mike Jolley 6694d64ef6
Merge pull request #19845 from woocommerce/feature/19840
Trigger GeoLite2 database download after update
2018-04-25 11:59:46 +01:00
Khan M Rashedun-Naby f1c359859b Removed redundant else 2018-04-25 14:35:30 +06:00
Boro Sitnikovski 92cd1ec0d8 Abstract out privacy class so that extensions can easily re-use it 2018-04-25 02:13:59 +01:00
Boro Sitnikovski e891e3ed7d Support payment_method_in when selecting orders 2018-04-25 01:40:29 +01:00
Claudio Sanches d496e28d08 Trigger GeoLite2 database download after update
Closes #19840
2018-04-24 15:32:27 -03:00
Mike Jolley 30a8785ff4 Add up/down buttons 2018-04-24 19:26:17 +01:00
Mike Jolley 7be62795db Add wp-util script and strings for localisation 2018-04-24 19:26:00 +01:00
Claudio Sanches 574c829096 Introduced function to check if geolocation is enabled 2018-04-24 15:22:12 -03:00
Mike Jolley c8005a8c00 Wording updates 2018-04-24 16:47:55 +01:00
Mike Jolley f9c3ed14e4 Fix transient clearing 2018-04-24 15:44:30 +01:00
Mike Jolley d6a6356d53 After activating a subscription, caches for updates must be purged 2018-04-24 15:43:52 +01:00
Mike Jolley 6d9bacb982 Removes freegeoip service 2018-04-24 14:32:21 +01:00
Mike Jolley da9c99a12f
Merge pull request #19837 from woocommerce/update/obw-tracker-request
Delay tracking request
2018-04-24 13:23:31 +01:00
Gerhard Potgieter 07dcf77f6f Deffer first tracker send to a cron instead of direct calling it. 2018-04-24 14:16:41 +02:00
Mike Jolley cb9dab21d6
Merge pull request #19822 from woocommerce/fix/19790-positive-page-id
Do not load unsupported theme functionality when shop page -1
2018-04-24 12:29:22 +01:00
Gerhard Potgieter fc43bd2410 Delay tracking request by 10 seconds to allow for page load to complete first. 2018-04-24 12:42:06 +02:00
Gerhard Potgieter 56c539681b Yoda, you must! 2018-04-24 07:18:09 +02:00
Khan M Rashedun-Naby 845097f42a Inverted the condition based returns. 2018-04-24 09:21:33 +06:00
Mike Jolley 0f71eb15bf
Merge pull request #19712 from woocommerce/update/wc-tracker
Tracker Changes
2018-04-23 19:28:14 +01:00
Claudio Sanches 9ac00e1986 Use trailingslashit() instead of DIRECTORY_SEPARATOR
This will avoid any double `/` and should work on Windows too.
2018-04-23 14:19:42 -03:00
Claudio Sanches 9d99ca4c47
Merge pull request #19812 from shivapoudel/fix/19742
Fix - Notice while downloding GeoIP DB on Windows
2018-04-23 14:17:37 -03:00
Shiva Poudel 0c5d6dd285 Tweak - Use of trailingslashit instead 2018-04-23 22:07:14 +05:45
Gerhard Potgieter 8c677d9214
Merge pull request #19821 from haydenw/haydenw-patch-1
Pass `$flat` variable to `woocommerce_order_items_meta_display` filter
2018-04-23 14:02:21 +02:00
Gerhard Potgieter ca9865beeb Ensure shop_page_id is > 0 before loading the unsupported theme functionality. In some cases shop_page_id can be -1 which will result in a true as only 0 is seen as false. 2018-04-23 09:47:21 +02:00
Hayden Whiteman 1c8d5d42d1
Pass `$flat` variable to `woocommerce_order_items_meta_display` filter
Allow 3rd parties to determine if output should be flat.
2018-04-23 13:45:07 +12:00
Eric Daams 956dc6b9b9 Fixes spelling mistake in privacy policy content snippet. 2018-04-23 09:50:08 +09:30
Shiva Poudel a4b5f0bef4 Fix - Notice while downloding GeoIP database on Windows
DIRECTORY_SEPARATOR was the culprit :)

CC @claudiosanches

Closes #19742
2018-04-21 02:43:37 +05:45
GlennMartin1 da6000a633
Update class-wc-admin-help.php 2018-04-20 14:25:11 -04:00
GlennMartin1 ab929c5ae3
correct two links in Help tab 2018-04-20 14:20:39 -04:00
Claudio Sanches 781d38dc51 Removed undefined wp_json_decode() function from PayPal response
Closes #19807
2018-04-20 13:26:05 -03:00
Mike Jolley 2cc1504f7e Merge branch 'master' into update/erasure-requests
# Conflicts:
#	includes/class-wc-privacy.php
2018-04-20 16:49:17 +01:00
Mike Jolley f71ffb5f5e Added erasure code and moved into separate classes. 2018-04-20 16:47:58 +01:00
Claudio Sanches c115832c4a
Merge pull request #19802 from woocommerce/update/19786
Throw an error when the order is not loaded on checkout
2018-04-20 11:55:45 -03:00
Claudio Sanches 3ca48187a1
Merge pull request #19803 from tivnet/patch-6
Update class-wc-privacy.php
2018-04-20 11:54:39 -03:00
Gerhard Potgieter 0d84bcc3eb Tweaks as per review 2018-04-20 15:20:43 +02:00
Gregory Karpinsky 3fe4de8a95
Docblock: wc_get_orders returns WC_Order[] 2018-04-20 08:01:53 -04:00
Gregory Karpinsky 8d2b32b622
Update class-wc-privacy.php
Spelling
2018-04-20 07:57:53 -04:00
Mike Jolley 342ce28c61 Throw an error when the order is not loaded on checkout 2018-04-20 11:54:36 +01:00
Mike Jolley eeaebc92a0
Merge pull request #19788 from rnaby/class-wc-rest-customers-controller-update_customer_meta_fields-doc-spelling-fix
Spelling fix
2018-04-20 11:40:22 +01:00
Mike Jolley 7f4f70fbea
Merge pull request #19795 from rnaby/class-wc-api-reports-validate_request-removed-unnecessary-else
Removed unnecessary else condition.
2018-04-20 11:40:02 +01:00
Gerhard Potgieter 03e60f105e Remove unused method 2018-04-20 12:38:25 +02:00
Mike Jolley fe30b4900e
Merge pull request #19798 from tivnet/patch-6
Update wc-template-functions.php
2018-04-20 11:37:39 +01:00
Gregory Karpinsky 88b9f3763e
Update wc-template-functions.php
`wc_privacy_policy_page_id()` has no parameters.
2018-04-19 21:35:02 -04:00
Gregory Karpinsky 02a4538c82
Update wc-template-functions.php
Spelling
2018-04-19 21:19:36 -04:00
Khan M Rashedun-Naby b6cfc6f291 Removed unnecessary else condition. 2018-04-20 01:06:25 +06:00
Mike Jolley 8aa214bab5 Better callback 2018-04-19 18:37:07 +01:00
Mike Jolley bd539e38f0 Remove output buffering 2018-04-19 18:27:29 +01:00
Mike Jolley b28b611bb6 Hook notices into WC areas and support returning notices 2018-04-19 18:26:52 +01:00
Mike Jolley efe06cb147 Remove direct calls to wc_print_notices 2018-04-19 18:26:21 +01:00
Khan M Rashedun-Naby 1b7e14a4b6 Spelling fix 2018-04-19 21:10:36 +06:00
Mike Jolley 1d0528b73f
Merge pull request #19778 from woocommerce/fix/inline-docs-admin-attributes
Fixed admin attributes page inline docs
2018-04-19 10:48:36 +01:00
Khan M Rashedun-Naby 9aed8394cb Removed unnecessary else condition check. I think in this situation after early returning the else is redundant. 2018-04-19 11:04:44 +06:00
Claudio Sanches 00bc21135c Fixed admin attributes page inline docs 2018-04-18 15:32:46 -03:00
claudiulodro 3547df00d9 Use min of 1 for number 2018-04-18 09:48:42 -07:00
claudiulodro c15cb09700 Resolve merge conflicts 2018-04-18 09:46:15 -07:00
claudiulodro 754031ce6d Add min to date number 2018-04-18 09:42:32 -07:00
claudiulodro 63972447cb Fix nonexistent function calls 2018-04-18 09:40:23 -07:00
Mike Jolley 33f4fd7b93 Moved to privacy class and updated dummy content. 2018-04-18 17:10:41 +01:00
Mike Jolley 128c9cb0da Merge branch 'master' into update/19739 2018-04-18 17:02:46 +01:00
Beka Rice 7bd9cdacaa Filter the used coupon URL in 'edit order' screen 2018-04-18 11:49:35 -04:00
Claudio Sanches 9679e7be1f
Merge pull request #19772 from woocommerce/update/notice-display
Only show notices on specific screens
2018-04-18 12:23:11 -03:00
Mike Jolley d381330a91
Merge pull request #19705 from woocommerce/fix/19619
Handling of PHP's automatic array key conversion to int
2018-04-18 15:40:31 +01:00
Claudiu Lodromanean 48eb13d602
Merge pull request #19747 from woocommerce/update/19734
Add privacy policy to account pages
2018-04-18 07:26:06 -07:00
Gerhard Potgieter 3f785d8964 Remove unused variables and merge correct ones. 2018-04-18 16:10:37 +02:00
Gerhard Potgieter a15687470d Move fist and last date into one query 2018-04-18 16:07:54 +02:00
Peter Fabian 4538f3fa8f Moved wc_selected to core functions. 2018-04-18 15:54:57 +02:00
GlennMartin1 256a4d96e2
grammar fix... 2018-04-18 09:11:32 -04:00
Mike Jolley fc8e7be3ab Only show notices on specific screens 2018-04-18 14:08:31 +01:00
Mike Jolley e201b74832
Merge pull request #19756 from woocommerce/feature/19735
Notice about HTTPS as a requirement
2018-04-18 13:53:54 +01:00
Mike Jolley 5455e7049b Update notice text 2018-04-18 13:52:59 +01:00
Mike Jolley 29961b540a Fix up query 2018-04-18 12:04:53 +01:00
Mike Jolley 248ad8f860 Add anonymized meta to order 2018-04-18 11:35:42 +01:00
Mike Jolley 30ba25d535 Remove defaults 2018-04-18 11:24:07 +01:00
Mike Jolley 9dfb91835e Merge branch 'master' into update/gdpr-order-cleanup 2018-04-18 11:21:43 +01:00
Mike Jolley 8a05930cba
Merge pull request #19761 from woocommerce/update/obw-save-locales-measurement-units-when-saving-address
OBW: Save locale-specific measurement units upon saving address
2018-04-18 11:09:48 +01:00
Mike Jolley 97e747e745 Add default text prop 2018-04-18 11:05:36 +01:00
Mike Jolley b05ac76303
Merge pull request #19762 from woocommerce/update/obw-store-state-control-in-store-setup-form-layout
OBW: Position State select between City and Zip inputs
2018-04-18 11:04:41 +01:00
Peter Fabian b770e0baed Used the selected function to take care of markup and simple case. 2018-04-18 09:57:19 +02:00
Gerhard Potgieter a7b4bcb31a Restore order counts 2018-04-18 09:04:34 +02:00
Gerhard Potgieter db57a67fde Use sql query to improve speed and only do gross 2018-04-18 08:59:34 +02:00
Paul Dechov c1211e5f03 OBW: Move store State dropdown between City and Zip 2018-04-17 23:16:59 -04:00
Paul Dechov 8c8e18d25b OBW: Save locale-specific measurement units upon saving address 2018-04-17 22:52:42 -04:00
Jeff Stieler e2d6656124 OBW: show PayFast payment gateway to merchants in South Africa. 2018-04-17 17:45:43 -06:00
Claudiu Lodromanean 59d967c859
Merge pull request #19754 from woocommerce/add/obw-eway-payment-gateway
OBW: Show eWAY payment gateway to merchants in AUS/NZ.
2018-04-17 16:33:41 -07:00
Jeff Stieler 098115006e OBW: prevent MailChimp from redirecting after activation. 2018-04-17 17:15:14 -06:00
Claudio Sanches 5dda3496fc Display message once per user 2018-04-17 18:26:08 -03:00
Claudio Sanches c4d099fe87 Included missing doc link 2018-04-17 18:10:36 -03:00
Jeff Stieler baa2180221 OBW: Show eWAY payment gateway to merchants in AUS/NZ. 2018-04-17 15:05:34 -06:00
claudiulodro 6d8946048f Add skip link to recommended step and make skip links darker 2018-04-17 13:55:23 -07:00
Claudio Sanches b270bd2c5b Fixed PHPCS violations 2018-04-17 17:44:11 -03:00
Claudio Sanches 8350f88f57 Introduced message about secure connection 2018-04-17 17:39:18 -03:00
Claudiu Lodromanean 624e8d5cb0
Merge pull request #19723 from woocommerce/update/extras-obw-tab
OBW: Replace Extras step with Recommended
2018-04-17 13:32:14 -07:00
claudiulodro f9e45bea91 Bring up-to-date with master and resolve merge conflicts 2018-04-17 13:27:39 -07:00
claudiulodro 700f0bfca1 Implement privacy policy content 2018-04-17 11:03:39 -07:00
Valerie 43ab4b25ae OBW: Update Recommended step description 2018-04-17 13:51:49 -04:00
Valerie 551db8246e OBW: Add MailChimp to recommended step 2018-04-17 13:51:49 -04:00
Valerie c1e55cd6a5 OBW: Update automated taxes option 2018-04-17 13:51:48 -04:00
Valerie 452491d12d OBW: Update Storefront description and style 2018-04-17 13:51:46 -04:00
Mike Jolley 6c5d4c7cda Add privacy settings 2018-04-17 18:32:31 +01:00
Valerie cadcd562d8 OBW: Rename Extras Step as Recommended 2018-04-17 13:14:27 -04:00
Mike Jolley 718c91f920
Merge pull request #19639 from woocommerce/fix/19620
Introduced new wc_get_product_class() and wc_product_class()
2018-04-17 17:00:43 +01:00
Claudio Sanches c185d6b6d3 Merge branch 'fix/19620' of github.com:woocommerce/woocommerce into fix/19620 2018-04-17 12:54:35 -03:00
Claudio Sanches a7ce4ff6d3 Escape all at the same time 2018-04-17 12:54:01 -03:00
Mike Jolley da17e4a174
Merge pull request #19711 from wayheming/master
Recent Product Reviews template
2018-04-17 16:53:55 +01:00
Claudiu Lodromanean 006bd017cd
Merge pull request #19675 from woocommerce/fix/19605
Slash meta values before updating the DB in the data store
2018-04-17 08:50:50 -07:00
Claudio Sanches 933bcc32c3
Merge branch 'master' into fix/19620 2018-04-17 12:45:20 -03:00
Claudiu Lodromanean 9821f6d23f
Merge pull request #19744 from woocommerce/update/19592
BD states and iso codes
2018-04-17 08:44:34 -07:00
Claudiu Lodromanean 90dfbf0ccd
Merge pull request #19728 from woocommerce/fix/plugin-installer-non-slug-filenames
Setup wizard: Bug fix and support for non-slug filenames in plugin installer
2018-04-17 08:39:16 -07:00
Claudio Sanches f18220a009 Updated unit tests 2018-04-17 12:31:14 -03:00
Mike Jolley fc05f8adb2
Merge pull request #19625 from danielbitzer/master
Set the order created_via property for orders created via admin area
2018-04-17 16:26:20 +01:00
Claudio Sanches 54b6174b34 Fixed $post when using product instance 2018-04-17 12:21:56 -03:00
Claudio Sanches c19836b0e4 Moved espace to wc_product_class 2018-04-17 12:18:21 -03:00
Mike Jolley ba3da2fc1f Use original code 2018-04-17 16:18:14 +01:00
Mike Jolley 77b73e05c8 Trigger updater 2018-04-17 16:16:11 +01:00
Claudio Sanches 627292d627 Include categories and tags by default 2018-04-17 12:14:18 -03:00
Mike Jolley 9b043868e9 Update routine 2018-04-17 16:13:44 +01:00
Mohammed Saimon 7869d5bc83 fix(csv-importer): export/import: unlimited downloads/time on downloadable products conflict is fixed #19720 (#19732)
* fix(csv-importer): export/import: unlimited downloads/time on downloadable products conflict is fixed #19720

* added -- which was removed unwillingly

* changed method name to parse_int_field and removed unnecessary checking
2018-04-17 15:37:33 +01:00
Mike Jolley bce3c7e94c Disable anon for now 2018-04-17 15:33:40 +01:00
Mike Jolley 314d949d2c Background process to cleanup 2018-04-17 15:21:03 +01:00
Mike Jolley 6e9e1aaa62 Daily order cleanup cron schedule 2018-04-17 12:33:22 +01:00
Mike Jolley 6598f6dc61 Basic privacy class from #19330 2018-04-17 12:25:03 +01:00
Peter Fabian 7861d7b95f Changed usage of selected with in_array to wc_selected. 2018-04-17 13:24:39 +02:00
Mike Jolley d8814f9381 tip alignment 2018-04-17 12:19:01 +01:00
Mike Jolley 27cf41bbf0 Added personal data cleanup settings 2018-04-17 11:45:24 +01:00
Peter Fabian 49529e0912 Added wc_selected function.
- Added unit test for the wc_selected function.
2018-04-17 12:13:46 +02:00
Mike Jolley e8cc1076ad
Merge pull request #19637 from woocommerce/update/gdpr-checkout-customizer
GDPR checkout improvements
2018-04-16 20:00:33 +01:00
Khan M Rashedun-Naby 74c2ceb3d1 Removed unnecessary variable. 2018-04-17 00:09:30 +06:00
Mike Jolley 860e7a5d23 Merge branch 'master' into update/gdpr-checkout-customizer 2018-04-16 18:02:28 +01:00
Mike Jolley 8a19c5962b Further simplified customiser options 2018-04-16 17:56:44 +01:00
Mike Jolley 094fc1bf3a
Merge pull request #19703 from woocommerce/update/settings-tabs-for-privacy
Moved around settings tabs to allow for a privacy page
2018-04-16 16:45:19 +01:00
Mike Jolley 7f013a0616 Fix storefront * hiding 2018-04-16 15:12:15 +01:00
Mike Jolley 78f96fcd40 Hook mapping/bw compat 2018-04-16 14:27:03 +01:00
Paul Dechov a4f76e3529 Fix broken activation when done immediately after installation 2018-04-16 07:22:15 -04:00
Paul Dechov 73884400f1 Remove unnecessary 'file' value for existing plugins 2018-04-16 07:21:04 -04:00
Paul Dechov 2b118c8ba8 Always check for active plugin in wizard before scheduling install
Check for active plugin independent of whether 'file' is present. Also omits directory from 'file' string and prepends [slug]/ to it.
2018-04-16 07:20:42 -04:00
Paul Dechov 3814796a24 Enhance plugin installer to accept plugin 'file'
'file' string as part of plugin information is used for activating plugin in combination with slug, or instead of slug in the case of plugins already installed. Defaults to [slug].php.
2018-04-16 07:16:59 -04:00
Claudiu Lodromanean 1d6ee4736b
Merge pull request #19678 from woocommerce/fix/19514
Handle escape characters for fputcsv
2018-04-13 12:01:32 -07:00
Mike Jolley 93d20d9c93 Data removal handling 2018-04-13 18:03:02 +01:00
Mike Jolley eb6d230d38 Export downloads and logs 2018-04-13 17:00:26 +01:00
Peter Fabian 93a0808887 Specified input parameters more precisely. 2018-04-13 16:35:14 +02:00
Mike Jolley 965712a1d7 Data removal for accounts/guests 2018-04-13 15:35:03 +01:00
Peter Fabian 8cb1490d55 Added wc prefix to function name. 2018-04-13 16:29:16 +02:00
Mike Jolley 3f2d8e8eef delete_by_user_id method for customer downloads 2018-04-13 15:07:58 +01:00
Mike Jolley 53a93fd3b1 Clean up user data on delete. 2018-04-13 15:07:38 +01:00
Peter Fabian 62f9b129dc Converted all input values to selected to strings
Extracted conversions and compare logic to a separate function to improve readability.
2018-04-13 14:23:32 +02:00
Gerhard Potgieter df5bfc5b6a Private not public 2018-04-13 14:18:39 +02:00
Ernest 0d70b3b34e Recent Product Reviews template 2018-04-13 14:20:46 +03:00
Mike Jolley 6cb72c2e03 Add extra data to export 2018-04-13 11:49:03 +01:00
Gabor Javorszky ff3fcf0d2b Make Product Factory use global $post instead of $GLOBALS['post'] 2018-04-13 11:29:33 +01:00
Gabor Javorszky 73e0e3a60e Make Product Factory return an int from $post->ID 2018-04-13 11:28:42 +01:00
Gabor Javorszky 615815353f Make Order Factory return an int as well from $post->ID 2018-04-13 11:27:30 +01:00
Gabor Javorszky d569920825 Cast coupon's $post->ID to int 2018-04-13 11:25:58 +01:00
Peter Fabian 0fc6d4e20c Fix strict comparison for normal select, too. 2018-04-13 10:26:37 +02:00
Peter Fabian e17e6d0b0f Improved the comment 2018-04-12 19:34:49 +02:00
Mike Jolley 704ee893cf Update for new patch in core 2018-04-12 17:32:02 +01:00
Mike Jolley 1b34cd4745 Moved settings tabs around to allow for privacy page. 2018-04-12 16:59:42 +01:00
Claudiu Lodromanean 736e713b0b
Merge pull request #19699 from woocommerce/fix/19685
Added scroll to notices to cart page
2018-04-12 08:51:51 -07:00
Peter Fabian b88a21dae9 Add dependency on the common js code. 2018-04-12 16:15:00 +02:00
Mike Jolley 7080989081 Move coupon settings to general settings 2018-04-12 11:13:15 +01:00
Mike Jolley eb886c924e Rename option tabs 2018-04-12 11:13:01 +01:00
JeroenSormani 4e6b0dc500 Doc improvements (return types mostly) 2018-04-12 09:10:14 +02:00
Claudiu Lodromanean 5bc7e91b67
Merge pull request #19670 from woocommerce/update/19641
Load meta box input values using CRUD and edit context
2018-04-11 10:14:06 -07:00
Mike Jolley 6c14ad9a88 More wording tweaks 2018-04-11 17:12:48 +01:00
Mike Jolley 592605f071 Wording 2018-04-11 16:45:41 +01:00
Mike Jolley cdd5b25bd8 Privacy page and default text handling 2018-04-11 16:41:39 +01:00
Mike Jolley 25f0bd46fc Remove terms from settings so it's with new checkbox options 2018-04-11 15:03:47 +01:00
Mike Jolley e190d354b4 Page selection for privacy/terms 2018-04-11 15:01:21 +01:00
Mike Jolley 0f8e1cd705 Use placeholders 2018-04-11 14:07:50 +01:00
Mike Jolley 4e58d756f0 Tweak checkbox placement 2018-04-11 13:50:28 +01:00
Mike Jolley 4e9984718d Simplify required field option 2018-04-11 13:40:42 +01:00
Mike Jolley eb3b1dbee6 Add dummy product to cart when viewing preview 2018-04-11 13:19:39 +01:00
Gerhard Potgieter 8125797aad Remove counts variable from merge as it is now part of main method. 2018-04-11 10:35:43 +02:00
Gerhard Potgieter fa2f0add45 Make order status counts part of the main order method 2018-04-11 10:32:24 +02:00
Gerhard Potgieter 38a87b0ad2 Gross per gateway 2018-04-11 09:56:39 +02:00
Gerhard Potgieter 3e2f20adf6 Fix net and gross calculations 2018-04-11 08:48:32 +02:00
Gerhard Potgieter 25971b88b9 Format datetime 2018-04-11 08:41:57 +02:00
Gerhard Potgieter 19b7052a12 PHPCS fixes 2018-04-11 08:26:22 +02:00
Gerhard Potgieter af1de29536 Fix up main orders method 2018-04-11 08:14:20 +02:00
Gerhard Potgieter eb1dcff545 Convert to one order order loop 2018-04-11 08:12:55 +02:00
Claudio Sanches be1b200ce8
Merge pull request #19669 from woocommerce/fix/19450
Avoid storing coupon `used_by` data
2018-04-10 14:30:33 -03:00
Claudio Sanches f3f05fd59a
Merge pull request #19668 from woocommerce/fix/19657
Clear shipping transient when saving shipping method on zones screen
2018-04-10 14:28:53 -03:00
Claudio Sanches 81a699114c
Merge pull request #19667 from woocommerce/fix/19655
Load gateways before order is saved/email is triggered
2018-04-10 14:27:47 -03:00
Mike Jolley 5d4561240a Handle escape characters for fputcsv 2018-04-10 18:08:56 +01:00
Claudio Sanches 2a4b364069
Merge pull request #19671 from woocommerce/fix/19661
sanitize_text_field does not preserve line breaks. wp_kses_post seems more appropriate.
2018-04-10 11:49:51 -03:00
Mike Jolley 903e3e8acd Fix featured filter 2018-04-10 14:58:06 +01:00
Mike Jolley 73709ee7cd Slash meta values before updating the DB in the data store 2018-04-10 14:43:38 +01:00
Gerhard Potgieter 59984654ec Add discount totals 2018-04-10 14:27:42 +02:00
Gerhard Potgieter 9e6fe4cad1 Add net total 2018-04-10 14:22:21 +02:00
Gerhard Potgieter 601c9910a9 Add first order date 2018-04-10 14:17:17 +02:00
Gerhard Potgieter d63b0018d8 Add tax total 2018-04-10 14:10:21 +02:00
Mike Jolley 50e2832d2d sanitize_text_field does not preserve line breaks. wp_kses_post seems more appropriate.
Fixes #19661
2018-04-10 13:09:20 +01:00
Mike Jolley efe0d36eea Load meta box input values using CRUD and edit context 2018-04-10 13:01:52 +01:00
Gerhard Potgieter 4a7ee19d18 Add shipping 2018-04-10 14:01:22 +02:00
Mike Jolley 55aced044f Avoid storing coupon `_used_by` data 2018-04-10 12:36:24 +01:00
Mike Jolley 47fbd79d8f Clear shipping transient when saving shipping method on zones screen 2018-04-10 12:25:09 +01:00
Mike Jolley f9cc65b586 Load gateways before order is saved/email is triggered
Fixes #19655
2018-04-10 12:15:14 +01:00
Mike Jolley cc14ddf1ae
Merge pull request #19658 from woocommerce/fix/19588
Changed county codes for Ireland according to ISO
2018-04-10 12:01:01 +01:00
Peter Fabian 8e8a1ca054 Clear comment count transient when cleaning product transients 2018-04-10 12:12:51 +02:00
Peter Fabian ac1883ee00 Included db update scripts in WC install 2018-04-09 23:24:26 +02:00
Peter Fabian a3d6dc1775 Changed county codes for Ireland according to ISO 2018-04-09 23:15:09 +02:00
Peter Fabian d2efef5a1c Handling of PHP's automatic array key conversion to int 2018-04-09 16:39:14 +02:00
Gerhard Potgieter 72d078452c Add last order and gross functions 2018-04-09 14:54:50 +02:00
Mohammed Saimon eccd74b71d added checking for invalid ratings while saving 2018-04-09 18:13:13 +06:00
Mohammed Saimon 6d973b98b6 returned data early if nonce checking is failed 2018-04-07 15:13:35 +06:00
Mohammed Saimon 6f36133ed5 Product rating count doesn't update when ratings are edited by admin is fixed #19581 2018-04-07 12:50:14 +06:00
Claudio Sanches 900c8fc33f
Merge pull request #19380 from woocommerce/update/19302
Override supports for PayPal to see if credentials exist
2018-04-06 15:44:42 -03:00
Claudio Sanches 60ad91266d Fixed wrong variable 2018-04-06 15:08:11 -03:00
Claudio Sanches b3bf245929 Introduced new wc_get_product_class() and wc_product_class functions 2018-04-06 13:58:59 -03:00
Mike Jolley 212a8a180f Back compat 2018-04-06 11:51:03 +01:00
Mike Jolley 3140a0fb62 More customistion options for terms and conditions. 2018-04-06 11:43:30 +01:00
Brian Henry b6f1f68a00
Documentation punctuation fixes: its = posessive 2018-04-05 19:45:14 -07:00
Mike Jolley 46815d1d01 Add controls to control if address 2, company, and phone fields are optional, required, or hidden. 2018-04-05 17:51:43 +01:00
Mike Jolley e30b8e8a5f Rename script so required label logic works 2018-04-05 17:02:06 +01:00
Mike Jolley 3bf567279b Improve default appearance of descriptions so they toggle on focus and support HTML. 2018-04-05 16:56:00 +01:00
Mike Jolley 3a6c3e002b Add option to choose if the checkout marks either required or optional fields, and style these options. 2018-04-05 14:12:59 +01:00
Mike Jolley 0091d7a18c Adds checkout section to the customizer under `woocommerce` 2018-04-05 13:55:15 +01:00
Daniel Bitzer 1f5d4050b3 Set created_via propery for orders created in admin area 2018-04-05 13:58:51 +02:00
Mike Jolley 3c35320f76
Merge pull request #19610 from woocommerce/fix/19569
Use nbsp to separate * denoting required fields.
2018-04-05 11:02:39 +01:00
Mike Jolley 68c6c16a3b
Merge pull request #19611 from woocommerce/fix/wc_get_page_id-bug
Fixed bug when using asbint() with wc_get_page_id()
2018-04-05 10:55:43 +01:00
Mike Jolley b0d3f732d6
Merge pull request #19615 from woocommerce/fix/variable-passed-by-reference
Fixed PHP notice in WC_Product_CSV_Importer_Controller->handle_upload
2018-04-05 10:53:52 +01:00
Mike Jolley 5172694a3a
Merge pull request #19477 from woocommerce/fix/infinite-scroll
Infinite scroll compatibility
2018-04-05 10:46:44 +01:00
Mike Jolley 086f07c47d
Merge pull request #19602 from woocommerce/fix/19431
Link product import/export to import/export capabilities
2018-04-05 10:45:29 +01:00
Claudio Sanches 0ac857f049 Fixed PHP notice in WC_Product_CSV_Importer_Controller->handle_upload
Fixed notice:

```
PHP Notice:  Only variables should be passed by reference in includes/admin/importers/class-wc-product-csv-importer-controller.php on line 298
```
2018-04-04 15:50:08 -03:00
Claudio Sanches 95edc882ea Fixed bug when using asbint() with wc_get_page_id()
When a page does not exists `wc_get_page_id()` returns `-1`, so applying
`absint()` should cause bugs when comparing with "Hello world!" page.
2018-04-04 12:12:05 -03:00
Claudio Sanches ac2e71f22f
Merge pull request #19607 from kouratoras/patch-1
Switch to intval when checking for the shop page
2018-04-04 12:02:56 -03:00
Peter Fabian 80dc183880 Use nbsp to separate * denoting required fields. 2018-04-04 16:45:40 +02:00
Claudiu Lodromanean 4d04038372
Merge pull request #19599 from RamseyInHouse/suppressHelperConnectNotice
Add filter to suppress admin WordPress.com connection message.
2018-04-04 07:44:42 -07:00
Claudiu Lodromanean b97d578628
Merge pull request #19603 from woocommerce/fix/19589
Switched Georgian Lari to correct UTF symbol
2018-04-04 07:35:39 -07:00
Peter Fabian ada11aa4e2 Hid import/export from menu when having insufficient capabilities
- Made AJAX reply more verbose in case of insufficient capabilities.
2018-04-04 15:06:13 +02:00
Konstantinos Kouratoras 7a9569a185
Switch to intval when checking for the shop page
When shop page is not set, shop page id is set to -1. Using absint when checking if the current page is the shop page, this was applied to post with ID 1. Using intval, this is prevented.

Fixes #19606
2018-04-04 15:15:36 +03:00
Peter Fabian 0e25f5840a Comment PHPCS fix. 2018-04-04 12:18:53 +02:00
Peter Fabian d920f3dcba PHPCS fixes. 2018-04-04 12:06:01 +02:00
Peter Fabian 55632d0703 Switched Georgian Lari to correct UTF symbol 2018-04-04 11:11:05 +02:00
Peter Fabian 1ef47120a8 Link product import/export to import/export capabilities
- show Import/Export Products buttons only if the user has import/export capability
- show Woo importer/exporter under Tools only if user has import/export capability
- require both edit_products and import/export to run those actions
-
2018-04-04 10:30:49 +02:00
Philip Downer 73ff850b82 Add filter to suppress WordPress.com connection message.
Allows developers to supress only the WordPress.com connection message, while still leaving other admin notices (eg., upgrade notice) in place.
2018-04-03 13:42:01 -05:00
Mike Jolley 4e42b2cd30 Handle manage_stock mixed content for variations 2018-04-03 17:46:43 +01:00
Mike Jolley 5ac7aac369 Improve can_refund_order and add unit tests 2018-04-03 17:09:09 +01:00
Mike Jolley 46516422dd
Merge pull request #19221 from woocommerce/pr/18596
Use shipping method instances to conditionally enable COD
2018-04-03 16:26:39 +01:00
Mike Jolley d02106f697 Merge branch 'master' into pr/18596 2018-04-03 16:24:19 +01:00
Claudio Sanches d043e4727b
Merge pull request #19595 from woocommerce/fix/19562
Trigger post modified update when saving products and variations, but no other product data
2018-04-03 12:23:10 -03:00
Mike Jolley 7b45e90357 Merge branch 'master' into update/19302 2018-04-03 14:57:24 +01:00
Mike Jolley 5bc26ebd79 Merge branch 'master' into update/17427 2018-04-03 14:38:49 +01:00
Mike Jolley 2ed018d542 Trigger post modified update when saving products and variations, but no other product data
Closes #19562
2018-04-03 12:51:58 +01:00
Claudiu Lodromanean fe140110a6
Merge pull request #19502 from rynaldos/duplicate-queries
Duplicate queries for WC_Admin_Report->get_order_report_data()
2018-04-02 08:49:25 -07:00
Will Gorham 55707ecc7e Display order item refund as negative value 2018-03-30 17:09:44 -04:00
Claudiu Lodromanean 5ff236fd54
Merge pull request #19567 from woocommerce/fix/19524
Ensure background process class returns `data` as an array
2018-03-30 08:13:52 -07:00
Claudiu Lodromanean b92ea90761
Merge pull request #19571 from Chouby/before_delete_product
Add action woocommerce_before_delete_{$post_type}
2018-03-30 08:00:17 -07:00
Mike Jolley 01be034279 Disable geolocation if using legacy php #19548 2018-03-29 17:04:31 +01:00
Mike Jolley 69a3a78a4c Typo 2018-03-29 16:46:11 +01:00
Mike Jolley b88289e5c1 GeoIP version check in status report 2018-03-29 16:44:45 +01:00
Mike Jolley 7ec6917475 PHP version checks to recommend 7.2 2018-03-29 16:38:44 +01:00
Mike Jolley 36aee04abb Include WordPress version check and resolve phpcs issues 2018-03-29 16:08:36 +01:00
Frédéric Demarle ee2140944c add action woocommerce_before_delete_{$post_type} 2018-03-29 14:52:19 +02:00
Mike Jolley 51d634e29a Ensure background process class returns `data` as an array
Fixes #19524
2018-03-29 11:09:41 +01:00
Mike Jolley 4a6c526229
Merge pull request #19557 from bernattorras/before_variations_hook
Add 'woocommerce_variable_product_before_variations' hook to variations tab
2018-03-29 11:00:34 +01:00
bernat torras 307605a739 Added 'Removed extra tabs 2018-03-28 21:27:46 +02:00
Claudio Sanches e718bdd11c
Merge pull request #19192 from nishitlangaliya/Issue-18990
Fixes- Admin - removed product type column
2018-03-28 15:37:57 -03:00
Claudio Sanches 5bec3b229f
Merge pull request #19527 from woocommerce/fix/19519
Use `get_variation_price` method in structured data to grab min/max so filters are ran.
2018-03-28 15:23:14 -03:00
Claudio Sanches 35b75b5beb
Merge pull request #19555 from woocommerce/update/19547-wp-cli-pagination
WP-CLI integration per_page default
2018-03-28 14:01:38 -03:00
bernat torras 47d85844d8 Added 'woocommerce_variable_product_before_variations' hook to variation tab 2018-03-28 16:02:06 +02:00
Mike Jolley 51252915e1
Merge pull request #19493 from woocommerce/fix/19404
Removed line item limit and made sure the URL is shorter than 2083 ch…
2018-03-28 13:56:57 +01:00
Peter Fabian 3809ab3f4c Fixed shipping tax logic to behave the same as originally 2018-03-28 13:08:05 +02:00
Gerhard Potgieter 2c24872989
Merge pull request #19541 from woocommerce/update/tracking-wording
Tweak wording for opt-out
2018-03-28 12:12:18 +02:00
Mike Jolley 5547c57c03
Merge pull request #19504 from woocommerce/fix/19485-backorder-import
Product import backorders default to no
2018-03-28 11:00:09 +01:00
Mike Jolley 7966fcfbe7
Merge pull request #19522 from woocommerce/fix/19491
Apply strip_tags to attributes in loop template
2018-03-28 10:57:58 +01:00
Peter Fabian c2e27919ce Replaced array_key_exists with isset test 2018-03-28 11:19:03 +02:00
Peter Fabian 59c47c4407 Refactored line item logic
- prepare_line_items is not used as a test anymore, it only updates line items
- add_line_item is not used as a test anymore, only adds line items
- added method line_items_valid to test for valid line items
- shipping tax inclusion test moved to get_shipping_cost_line_item to encapsulate shipping tax-related logic
2018-03-28 11:04:34 +02:00
Gerhard Potgieter 9c67760bc0 per_page must be between 1 and 100, default to 100. 2018-03-28 10:18:10 +02:00
Gerhard Potgieter 1f2468ca3e When no per_page is defined for list wp-cli command default to displaying all items as per the wp-cli standard. 2018-03-28 09:47:15 +02:00
Mike Jolley 57378785bf Split up state and country fields 2018-03-27 19:32:04 +01:00
Mike Jolley 38c29204d4 Include US in US dollar dropdown so it's searchable 2018-03-27 18:35:15 +01:00
Claudiu Lodromanean d802d2ca6a
Merge pull request #19526 from woocommerce/fix/19511
Tweak `wc_get_price_excluding_tax` to not round the return value so calculations in admin are not pre-rounded.
2018-03-27 08:36:31 -07:00
Peter Fabian 86f1b3701f Tag stripped outside template
Stripping only affects aria-label attribute now.
2018-03-27 17:19:49 +02:00
Claudiu Lodromanean ccdf0923fa
Merge pull request #19509 from woocommerce/update/19506
Call empty cart when completing payment in PayPal
2018-03-27 07:58:59 -07:00
Peter Fabian f39e8e3900 Removed incorrect comment 2018-03-27 16:28:25 +02:00
Peter Fabian 5eda49f98a Line item logic refactored
Renamed function get_non_line_item_args
Documentation updates
...all part of code review fixes
2018-03-27 15:55:03 +02:00
Mike Jolley 0c3ab5d485 Update currency text to make it clear it's to accept payments 2018-03-27 13:35:13 +01:00
Mike Jolley 0599c06b20 Disable Gutenberg for products. 2018-03-27 13:28:03 +01:00
Mike Jolley dd3b998851 Tweak wording for opt-out 2018-03-27 13:00:19 +01:00
Mike Jolley ffb6bc844c Use `get_variation_price` method in structured data to grab min/max so filters are ran.
Closes #19519
2018-03-26 12:54:17 +01:00
Peter Fabian 88588eccbc Code duplication removed
Added test for non line item agrument presence
Fixed incorrect comment
2018-03-26 13:05:55 +02:00
Mike Jolley ced5980e79 Tweak `wc_get_price_excluding_tax` to not round the return value so calculations in admin are not pre-rounded. 2018-03-26 12:03:00 +01:00
Mike Jolley b25ff31d5c
Merge pull request #19419 from woocommerce/feature/18477
MaxMind GeoLite2 integration
2018-03-26 11:31:21 +01:00
Mike Jolley c8f6330158
Merge pull request #19515 from woocommerce/fix/order-products-by-price
Use minimum price to order variable products on term archives
2018-03-26 11:17:23 +01:00
Peter Fabian e19d64e51e Fixed PHPCS violations 2018-03-26 11:00:28 +02:00
ahmedofali d06854a0b4 Defining array before attempting to append to it 2018-03-25 18:28:14 +00:00
Rodrigo Primo a02b77bedc Use minimum price to order variable products on term archives
Commit 12d7bf7 added a specific query to order products by price from low to high on term archives (see #17690 and #16694 for more details), but, probably due to a copy and paste error, it changed the behavior when dealing with variable products. Instead of using the smallest variation price of each variable product, it was using the highest variation price. This commit changes this new query to use the smallest variation price of each variable product. This way ordering by price from low to high on term archives will again behave in the same way that on the shop page when dealing with variable products.
2018-03-23 16:15:37 -03:00
Mike Jolley fb290ebbaa
Merge pull request #19510 from woocommerce/fix/19472
Check query var for orderby if not found in $_GET
2018-03-23 18:00:42 +00:00
Peter Fabian 26144afbc6 Test request length after applying filter
- added default value to get_line_item_args to not break interface
- smaller code review updates
2018-03-23 17:22:09 +01:00
claudiulodro 62d88892bf Check query var for orderby 2018-03-23 08:30:02 -07:00
Mike Jolley 0573232c62 Call empty cart when completing payment in PayPal 2018-03-23 12:54:03 +00:00
Mike Jolley f98eb66f8c Webhooks do not need permission checks 2018-03-23 12:45:10 +00:00
Mike Jolley 0f040f08c4
Merge pull request #19494 from woocommerce/fix/download-handler-class-phpcs
Fixed includes/class-wc-download-handler.php PHPCS violations
2018-03-23 11:51:01 +00:00
Gerhard Potgieter e876f0dfb2 empty check on 0 will be true, return no when empty. 2018-03-23 11:21:59 +02:00
Gerhard Potgieter 04cce41b6b Default to no when importing backorders. 2018-03-23 11:19:02 +02:00
rspublishing 2eca0d73bd Duplicate queries for WC_Admin_Report->get_order_report_data() 2018-03-23 11:15:21 +02:00
Peter Fabian 59af63e642 Merge branch 'master' into fix/19404 2018-03-23 09:36:15 +01:00
Claudiu Lodromanean d4ef90bf91
Merge pull request #19495 from woocommerce/fix/emails-class-phpcs
Fixed includes/class-wc-emails.php PHPCS violations
2018-03-22 13:27:21 -07:00
Claudiu Lodromanean 8048afe4ce
Merge pull request #19498 from woocommerce/fix/frontend-scripts-class-phpcs
Fixed includes/class-wc-frontend-scripts.php PHPCS violations
2018-03-22 13:25:12 -07:00
Claudio Sanches 027789271d Fixed includes/class-wc-frontend-scripts.php PHPCS violations 2018-03-22 16:01:03 -03:00
Claudio Sanches 930591808b Fixed includes/class-wc-product-variation.php PHPCS violations 2018-03-22 15:49:01 -03:00
Claudio Sanches b2e33b3fb9 Fixed includes/class-wc-product-variable.php PHPCS violations 2018-03-22 15:47:50 -03:00
Claudio Sanches 8470a691a7 Fixed includes/class-wc-product-simple.php PHPCS violations 2018-03-22 15:43:51 -03:00
Claudio Sanches 50c0a34dec Fixed includes/class-wc-product-query.php PHPCS violations 2018-03-22 15:41:53 -03:00
Claudio Sanches dfeb867a04 Fixed includes/class-wc-product-grouped.php PHPCS violations 2018-03-22 15:37:29 -03:00
Claudio Sanches 73a56469ef Fixed includes/class-wc-product-factory.php PHPCS violations 2018-03-22 15:36:07 -03:00
Claudio Sanches 6eada732b8 Fixed includes/class-wc-product-external.php PHPCS violations 2018-03-22 15:26:09 -03:00
Claudio Sanches 475e0c734f Fixed includes/class-wc-product-download.php PHPCS violations 2018-03-22 15:10:22 -03:00
Claudio Sanches 809ca5e0fc Fixed includes/class-wc-product-attribute.php PHPCS violations 2018-03-22 15:07:06 -03:00
Claudio Sanches a529e1fdf3 Fixed includes/class-wc-emails.php PHPCS violations 2018-03-22 14:54:16 -03:00
Claudio Sanches 88d0b502d9 Fixed includes/class-wc-download-handler.php PHPCS violations 2018-03-22 14:12:36 -03:00
Mike Jolley db9e66e743
Merge pull request #19481 from woocommerce/fix/payment-classes-phpcs
Fixed payment main classes PHPCS violations
2018-03-22 15:11:13 +00:00
Mike Jolley d40e09b3c9
Merge pull request #19484 from woocommerce/fix/shipping-classes-phpcs
Fixed shipping classes PHPCS violations
2018-03-22 15:08:11 +00:00
Mike Jolley 66a5895645
Merge pull request #19483 from woocommerce/fix/posts-classes-phpcs
Fixed post classes PHPCS violations
2018-03-22 15:07:45 +00:00
Claudio Sanches e79012e7e3 Fixed a typo 2018-03-22 12:06:36 -03:00
Peter Fabian 27a309d2df Removed line item limit and make sure the URL is shorter than 2083 characters
- removed limit to 9 line items per Paypal order
- if the request URL with all line items will be longer than 2083 characters, send it as one line item
- fix the character limit function to account for URL encoding happening in http_build_query
2018-03-22 15:39:30 +01:00
Claudio Sanches fd57c1c596 Fixed includes/class-wc-shipping-rate.php PHPCS violations 2018-03-21 20:58:20 -03:00
Claudio Sanches 996d3decfe Fixed file and class dockblock 2018-03-21 20:54:10 -03:00
Claudio Sanches 39f1c3e8fc Fixed coding standards 2018-03-21 20:53:59 -03:00
Claudio Sanches 7b1fc4c8e8 Fixed includes/class-wc-post-types.php PHPCS violations 2018-03-21 20:50:40 -03:00
Claudio Sanches ce8033ddf6 Fixed includes/class-wc-post-data.php PHPCS violations 2018-03-21 20:44:35 -03:00
Claudio Sanches b0617a13c4 Removed unnecessary ternary operators 2018-03-21 20:05:19 -03:00
Claudio Sanches 0660a50e07 Removed obvious boolean results 2018-03-21 19:57:10 -03:00
Claudio Sanches 72d0b448f6 Fixed includes/class-wc-payment-tokens.php PHPCS violations 2018-03-21 19:45:27 -03:00
Claudio Sanches d14615a6f7 Fixed includes/class-wc-payment-gateways.php PHPCS violations 2018-03-21 19:40:47 -03:00
Mike Jolley a826d4d91f Better method of removing product query after it runs. 2018-03-21 17:41:14 +00:00
Claudio Sanches 21dc6d28cf
Merge branch 'master' into feature/18477 2018-03-21 14:31:58 -03:00
Mike Jolley b037c965cb Set default order if empty 2018-03-21 17:24:00 +00:00
Mike Jolley 9c42735386 temp fix; comment out lines 2018-03-21 16:41:22 +00:00
Mike Jolley dc7aa30694
Merge pull request #19467 from woocommerce/fix/some-includes-classes-phpcs
Fixed PHPCS violations in some classes on includes directory
2018-03-21 10:39:18 +00:00
Claudio Sanches a7692478b0 Fixed includes/class-wc-order-item.php PHPCS violations 2018-03-21 00:56:59 -03:00
Claudio Sanches 583378cf7b Fixed includes/class-wc-order-item-tax.php PHPCS violations 2018-03-21 00:52:55 -03:00
Claudio Sanches eedc8c57e5 Improved class description 2018-03-21 00:50:30 -03:00
Claudio Sanches 949514fe75 Fixed includes/class-wc-order-item-product.php PHPCS violations 2018-03-21 00:49:45 -03:00
Claudio Sanches d03e5a5f6c Fixed includes/class-wc-order-item-shipping.php coding standards 2018-03-21 00:46:32 -03:00
Claudio Sanches 51a06da91d Fixed includes/class-wc-order-item.php PHPCS violations 2018-03-21 00:45:44 -03:00
Claudio Sanches 9a55d16f44 Fixed includes/class-wc-order.php PHPCS violations 2018-03-21 00:44:44 -03:00
Claudio Sanches ddac79152a Fixed includes/class-wc-order-item-meta.php PHPCS violations 2018-03-21 00:43:54 -03:00
Claudio Sanches e70f278123 Fixed includes/class-wc-order-item-fee.php PHPCS violations 2018-03-21 00:39:37 -03:00
Claudio Sanches 806c0d7a6d Fixed includes/class-wc-order-item-coupon.php PHPCS violations 2018-03-21 00:33:44 -03:00
Claudio Sanches f2cce37d6f Fixed includes/class-wc-order-factory.php PHPCS violations 2018-03-21 00:31:15 -03:00
Claudio Sanches 7978671dd0 Fixed includes/class-woocommerce.php coding standards 2018-03-21 00:22:29 -03:00
Claudio Sanches 7f5e5a3ca4 Short ABSPATH check in includes/class-wc-webhook.php 2018-03-21 00:22:04 -03:00
Claudio Sanches cc7d7eec42 Fixed includes/class-wc-validation.php coding standards 2018-03-21 00:21:41 -03:00
Claudio Sanches e2a079f42f Fixed includes/class-wc-template-loader.php coding standards 2018-03-21 00:20:19 -03:00
Claudio Sanches 539282be16 Fixed includes/class-wc-structured-data.php PHPCS violations 2018-03-21 00:19:41 -03:00
Claudio Sanches 698be52bf8 Fixed includes/class-wc-shortcodes.php PHPCS violations 2018-03-21 00:18:50 -03:00
Claudio Sanches 8a31755b8c Fixed includes/class-wc-session-handler.php PHPCS violations 2018-03-21 00:18:01 -03:00
Claudio Sanches 24cc589fd5 Fixed includes/class-wc-register-wp-admin-settings.php PHPCS violations 2018-03-21 00:16:26 -03:00
Claudio Sanches b44aece433 Fixed includes/class-wc-regenerate-images.php PHPCS violations 2018-03-21 00:14:07 -03:00
Claudio Sanches cf06e58906 Fixed includes/class-wc-query.php PHPCS violations 2018-03-21 00:13:22 -03:00
Claudio Sanches e825f33414 Fixed includes/class-wc-meta-data.php PHPCS violations 2018-03-21 00:11:16 -03:00
Claudio Sanches 7173396912 Fixed includes/class-wc-log-levels.php PHPCS violations 2018-03-21 00:08:59 -03:00
Claudio Sanches 56d9a88926 Fixed includes/class-wc-integrations.php PHPCS violations 2018-03-21 00:07:37 -03:00
Claudio Sanches b8534eee28 Fixed includes/class-wc-install.php PHPCS violations 2018-03-21 00:06:47 -03:00
Claudio Sanches d59a7463eb Fixed includes/class-wc-geolocation.php PHPCS violations 2018-03-21 00:03:50 -03:00
Claudio Sanches d989627125 Fixed includes/class-wc-embed.php PHPCS violations 2018-03-21 00:02:57 -03:00
Claudio Sanches a1a82b09bb Fixed includes/class-wc-discounts.php PHPCS violations 2018-03-21 00:00:54 -03:00
Claudio Sanches db713cce76 Short ASBPATH check in deprecated action and filter classes 2018-03-21 00:00:21 -03:00
Claudio Sanches 9a9906ec46 Fixed includes/class-wc-datetime.php PHPCS violations 2018-03-20 23:59:56 -03:00
Mike Jolley 016b3c76fb
Merge pull request #18196 from woocommerce/update/17795
Add refunded payment prop after an API refund succeeds.
2018-03-20 17:10:40 +00:00
Mike Jolley e413cdd75e
Merge pull request #19458 from woocommerce/fix/customer-classes-phpcs
Fixed Customer classes PHPCS violations
2018-03-20 16:47:59 +00:00
Mike Jolley 701f17840a
Merge pull request #19457 from woocommerce/fix/countries-class-phpcs
Fixed includes/class-wc-countries.php PHPCS violations
2018-03-20 16:47:03 +00:00
Mike Jolley b51626f183
Merge pull request #19456 from woocommerce/fix/coupon-class-phpcs
Fixed includes/class-wc-coupon.php PHPCS violations
2018-03-20 16:46:25 +00:00
Mike Jolley 6e02397935
Merge pull request #19459 from woocommerce/fix/data-classes-phpcs
Fixed Data store classes PHPCS violations
2018-03-20 16:44:57 +00:00
Mike Jolley 99ec658684
Merge pull request #19455 from woocommerce/fix/comments-class-phpcs
Fixed includes/class-wc-comments.php PHPCS violations
2018-03-20 16:44:27 +00:00
Claudio Sanches 16f3858472 Fixed "end if" comment 2018-03-19 20:22:39 -03:00
Claudio Sanches 62f2a603d5 Fixed includes/class-wc-data-store.php PHPCS violations 2018-03-19 20:21:10 -03:00
Claudio Sanches 3e7b6a9f7b Fixed includes/class-wc-data-exception.php PHPCS violations 2018-03-19 20:17:56 -03:00
Claudio Sanches d528e65849 Fixed includes/class-wc-customer.php PHPCS violations 2018-03-19 20:15:16 -03:00
Claudio Sanches 37a9af55c0 Fixed includes/class-wc-customer-download.php PHPCS violations 2018-03-19 20:07:49 -03:00
Claudio Sanches 4a384da01a Fixed includes/class-wc-customer-download-log.php PHPCS violations 2018-03-19 20:01:52 -03:00
Claudio Sanches 96ec4d6215 Fixed includes/class-wc-coupon.php PHPCS violations 2018-03-19 19:59:20 -03:00
Claudio Sanches 0b5aef0fd3 Fixed includes/class-wc-countries.php PHPCS violations 2018-03-19 19:42:55 -03:00
Claudio Sanches f81b90efe6 Fixed includes/class-wc-comments.php PHPCS violations 2018-03-19 19:39:31 -03:00
Claudio Sanches 73b1c9c603 Short ASBPATH check 2018-03-19 19:28:37 -03:00
Claudiu Lodromanean b8700c51e2
Merge pull request #19449 from woocommerce/fix/19439
Set is_shortcode loop prop when outputting subcategories
2018-03-19 11:35:58 -07:00
Claudiu Lodromanean 0454f1539b
Merge pull request #19387 from woocommerce/update/19345
Add names to nonces
2018-03-19 11:14:23 -07:00
Mike Jolley f6dc960e46 phpcs 2018-03-19 18:09:13 +00:00
Mike Jolley 6539b7913e Merge branch 'master' 2018-03-19 18:05:36 +00:00
Mike Jolley fb8b670cda Merge branch 'master' into update/19345 2018-03-19 18:00:28 +00:00
Mike Jolley e509e92f7b BW compat for nonce check 2018-03-19 17:59:30 +00:00
Mike Jolley 40b831f4df Missing $like was breaking unit tests.
@rodrigoprimo
2018-03-19 17:36:36 +00:00
Claudiu Lodromanean e6a266e30f
Merge pull request #19412 from woocommerce/update/19408
Use wc_get_default_products_per_row as the default for product shortcodes
2018-03-19 09:23:44 -07:00
Mike Jolley d099aae4ec Fix test and default 2018-03-19 13:05:43 +00:00
Mike Jolley ce7caa8029 Merge branch 'master' into fix/19284 2018-03-19 13:01:31 +00:00
Mike Jolley f7056a4284 missing echo 2018-03-19 12:59:50 +00:00
Mike Jolley 6e2b65aca9
Merge pull request #19434 from woocommerce/fix/php-warning-catalog-ordering
Fixed PHP warning on woocommerce_catalog_ordering()
2018-03-19 12:54:27 +00:00
Mike Jolley c26e766b06
Merge pull request #19428 from woocommerce/fix/phpcs-includes-product-grouped
Fix PHPCS violations in includes/class-wc-product-grouped.php
2018-03-19 12:52:21 +00:00
Mike Jolley 5a8c1ee81c
Merge pull request #19433 from woocommerce/fix/cart--classes-phpcs
Fixed cart classes PHPCS violations
2018-03-19 12:51:50 +00:00
Mike Jolley 127b9a89d0
Merge pull request #19436 from liquidweb/feature/register-additional-woocommerce-tables
Add the "woocommerce_install_get_tables" filter to WC_Install::get_tables()
2018-03-19 12:50:40 +00:00
Mike Jolley 808dbec82a Set is_shortcode loop prop when outputting subcategories
Fixes #19439
2018-03-19 11:12:18 +00:00
Claudio Sanches 47894cc64d Fixed includes/class-wc-checkout.php PHPCS violations 2018-03-16 16:15:08 -03:00
Steve Grunwell 049876ac8f Add the "woocommerce_install_get_tables" filter to WC_Install::get_tables()
This commit adds a new filter, "woocommerce_install_get_tables", to the WC_Install::get_tables() method, enabling WooCommerce extensions to register new, WooCommerce-specific tables, ensuring these tables can be cleaned up automatically should WooCommerce be uninstalled (useful for things like custom table data stores). Nothing gets added by default, but this provides an integration point for plugins like WooCommerce Custom Orders Table.
2018-03-16 18:54:17 +00:00
Claudio Sanches 15989622df Fixed PHP warning on woocommerce_catalog_ordering()
This fixes the follow warning:

> PHP Warning:  array_key_exists(): The first argument should be either a string or an integer in includes/wc-template-functions.php on line 1012

When an option doesn't exists is returned `false`, just setting a default value to fix the issue.

This issue should happen in new installations of WooCommerce 3.3 when no
order is defined on the customizer.
2018-03-16 15:13:21 -03:00
Claudio Sanches 84c047dad1 Fixed includes/class-wc-cart.php PHPCS violations 2018-03-16 15:08:52 -03:00
Claudio Sanches 67cd6b8fbf Fixed includes/class-wc-cart-totals.php PHPCS violations 2018-03-16 14:47:18 -03:00
Claudio Sanches 8effbb11bd Fixed includes/class-wc-cart-session.php PHPCS violations 2018-03-16 14:45:28 -03:00
Claudio Sanches c904894035 Fixed includes/class-wc-cart-fees.php PHPCS violations 2018-03-16 14:43:53 -03:00
Claudio Sanches db3924f2c7
Merge pull request #19421 from woocommerce/fix/auth-class-phpcs
Fixed includes/class-wc-auth.php PHPCS violations
2018-03-16 11:57:05 -03:00
Mike Jolley 09b089fff4
Merge pull request #19424 from woocommerce/fix/breadcrumb-class-phpcs
Fixed includes/class-wc-breadcrumb.php PHPCS violations
2018-03-16 14:14:26 +00:00
Mike Jolley 6cc5f2e171
Merge pull request #19140 from woocommerce/fix/subcategory-cache
Clear subcategory cache
2018-03-16 14:08:58 +00:00
Mike Jolley eb26221b1a Merge branch 'master' into update/19061 2018-03-16 13:59:05 +00:00
Mike Jolley 7a568e2f68 Personal data removal experiment 2018-03-16 13:53:18 +00:00
Rodrigo Primo 6fcc468aba PHPCS fixes in includes/class-wc-product-grouped.php 2018-03-16 10:00:42 -03:00
Rodrigo Primo 8e87ce7e57 Remove unused variable 2018-03-16 09:57:18 -03:00
Gerhard Potgieter b0902e56d8
Merge pull request #19423 from woocommerce/fix/background-emailer-class-phpcs
Fixed includes/class-wc-background-emailer.php PHPCS violations
2018-03-16 13:40:41 +02:00
Gerhard Potgieter 5fcef12667
Merge pull request #19422 from woocommerce/fix/autoload-class-phpcs
Fixed includes/class-wc-autoloader.php PHPCS violations
2018-03-16 13:26:45 +02:00
Gerhard Potgieter c0d3050a99
Merge pull request #19420 from woocommerce/fix/api-class-phpcs
Fixed includes/class-wc-api.php PHPCS violations
2018-03-16 13:11:22 +02:00
Mike Jolley 5740dc15e7
Merge pull request #19416 from woocommerce/fix/17876
Enable selecting with tab key on selectWoo
2018-03-16 11:08:30 +00:00
Claudio Sanches 8d860d7fb3 Fixed includes/class-wc-breadcrumb.php PHPCS violations 2018-03-15 18:30:08 -03:00
Claudio Sanches 3d4217143e Fixed includes/class-wc-background-emailer.php PHPCS violations 2018-03-15 18:22:12 -03:00
Claudio Sanches 820426a4d0 Short ASBPATH check in includes/class-wc-background-updater.php 2018-03-15 18:14:36 -03:00
Claudio Sanches 0ce0edac73 Fixed includes/class-wc-autoloader.php PHPCS violations 2018-03-15 18:13:26 -03:00
Claudio Sanches 8ab919ee94 Fixed includes/class-wc-auth.php PHPCS violations 2018-03-15 17:58:12 -03:00
Claudio Sanches b6bcb44f3f Fixed includes/class-wc-api.php PHPCS violations 2018-03-15 17:35:40 -03:00
Claudio Sanches 827d957d66 Load GeoLite2 Reader when creating a new instance of WC_Geolite_Integration 2018-03-15 17:30:17 -03:00
Claudio Sanches 774a54b8ee Deprecated old WC_Geo_IP class 2018-03-15 17:23:40 -03:00
claudiulodro b0fa583f6e Enable selecting with tab key on selectWoo 2018-03-15 11:52:07 -07:00
Claudio Sanches 6405e8645a Removed legacy private methods from WC_Geolocation 2018-03-15 14:01:36 -03:00
Claudio Sanches a731135cae Removed outdated IP lookup service and improved check for valid IPs 2018-03-15 13:45:49 -03:00
Claudiu Lodromanean fbccc4ed5c
Merge pull request #19415 from woocommerce/fix/19401
Reload gateways after updating the order.
2018-03-15 09:21:15 -07:00
Claudiu Lodromanean 88531fdfc6
Merge pull request #19414 from woocommerce/fix/19398
Inherit 'is variation' from existing attribute during csv import
2018-03-15 09:06:57 -07:00
Claudiu Lodromanean b00e05bb64
Merge pull request #19413 from woocommerce/update/19402
Add post_excerpt to product search
2018-03-15 08:00:52 -07:00
Mike Jolley 2abd510b36
Merge pull request #19391 from woocommerce/fix/rounding
100% coupon with inclusive taxes and out-of-base rounding issue fix
2018-03-15 12:43:58 +00:00
Mike Jolley 4bbdf30794 Reload gateways after updating the order. Fixes #19401 2018-03-15 12:39:30 +00:00
Mike Jolley e86ae89123 phpcs 2018-03-15 12:36:10 +00:00
Mike Jolley 565f1c6e66 Inherit 'is variation' from existing attribute during csv import 2018-03-15 12:18:31 +00:00
Mike Jolley 3df5a479f9 Add post_excerpt to product search 2018-03-15 11:21:27 +00:00
Mike Jolley 1c9143546f Use wc_get_default_products_per_row as the default for product shortcodes
Closes #19408

Will apply if no fixed columns are provided via the shortcode args.
2018-03-15 11:16:34 +00:00
Mike Jolley 94bfd3b336 Update formatting and tests 2018-03-15 10:54:32 +00:00
Mike Jolley c4b3bd0114
Merge pull request #19405 from woocommerce/phpcs-fixes
Fix PHPCS violations in a few files
2018-03-15 10:02:23 +00:00
Rodrigo Primo a767eb1a87 PHPCS fixes in includes/class-wc-shipping-zone.php 2018-03-14 17:54:42 -03:00
Rodrigo Primo af75da87fd PHPCS fixes in includes/class-wc-shipping-zones.php 2018-03-14 17:53:41 -03:00
Rodrigo Primo 45c1adec23 Remove unused private method WC_Shipping::get_default_method()
This method was create in commit 9f65d2a1fc and it was used only once inside WC_Shipping::calculate_shipping(). But commit 4c4f26ff41 removed this call to WC_Shipping::get_default_method() and left the method unused.
2018-03-14 17:50:38 -03:00
Rodrigo Primo e90ce56a50 PHPCS fixes in includes/class-wc-shipping.php 2018-03-14 17:50:19 -03:00
Rodrigo Primo 202e527a83 PHPCS fixes in includes/class-wc-shortcodes.php 2018-03-14 17:41:24 -03:00
Claudio Sanches 4a638c60bb Reschedule download of GeoLite2 database when something goes wrong 2018-03-14 16:07:00 -03:00
Claudio Sanches 4e9c8f2590 Updated GeoLite2 Reader errors to warning level 2018-03-14 16:03:31 -03:00
Claudio Sanches 51cfb9b03e Updated how GeoLite2 database is downloaded 2018-03-14 16:01:33 -03:00
Claudio Sanches 1791a192d8 Check for PHP version before try use GeoLite2 2018-03-14 14:07:20 -03:00
Claudio Sanches 7f6f4b848d Created WC_Geolite_Integration class to handle with GeoLite2 integration 2018-03-14 13:57:07 -03:00
Claudio Sanches 29b9e9c085 GeoLite2 Reader integration 2018-03-14 12:42:53 -03:00
claudiulodro f39a9ee61a Round fractional cents when oob 2018-03-14 08:35:41 -07:00
Claudiu Lodromanean feba3bd3ed
Merge pull request #19378 from woocommerce/fix/19217
Deletes orphan variations after successful import.
2018-03-14 08:27:30 -07:00
Mike Jolley 27f07807a5 Clean up 2018-03-14 15:23:39 +00:00
Mike Jolley e0ab13bd3c Tests and test pass 2018-03-14 15:14:45 +00:00
Mike Jolley fec36ff4b2 Test runner 2018-03-14 14:29:03 +00:00
Mike Jolley f166e25b19 basic integration with https://core.trac.wordpress.org/ticket/43438 2018-03-14 14:11:42 +00:00
Mike Jolley 06418f67e5
Merge pull request #19225 from roylindauer/17355-SplitAndFilter
Split layered nav transient per issue #17355
2018-03-14 12:50:54 +00:00
Mike Jolley a60e51afe1 Merge branch 'master' into update/setup-wizard-activate-step-when-jetpack-connected 2018-03-14 12:49:44 +00:00
Mike Jolley f771e323d9 Set opt-in/out based on geolocation data and DNT headers 2018-03-14 12:32:40 +00:00
Roy Lindauer 33cfed8e47 ensure that cache is deleted 2018-03-13 15:37:09 -07:00
Roy Lindauer b151480e6b fix indentation issues 2018-03-13 15:34:47 -07:00
Mike Jolley e03bc3d447
Merge pull request #19381 from woocommerce/fix/phpcs-violations-includes
Fix PHPCS violations in a few includes/ files
2018-03-13 19:36:53 +00:00
Mike Jolley d052b2ee46 cache per parent to avoid large caches 2018-03-13 19:00:08 +00:00
Claudio Sanches 6fdc1a547d Download new GeoLite2 and deprecated legacy GeoLite 2018-03-13 15:57:32 -03:00
Mike Jolley cb3c4849b4 Merge branch 'master' into fix/19175 2018-03-13 18:14:36 +00:00
Claudio Sanches 39c702403a Updated system status message about MaxMind GeoIP database 2018-03-13 14:54:56 -03:00
Claudio Sanches f24fe25c7d Included new GeoLite2 DB reader library 2018-03-13 14:50:01 -03:00
Claudiu Lodromanean 05b4bf7a55
Merge pull request #19382 from woocommerce/fix/19370
Variations errors
2018-03-13 10:42:49 -07:00
Claudiu Lodromanean c38e0e69e9
Merge pull request #19376 from woocommerce/fix/19362
Correctly handle default ordering on the search page
2018-03-13 10:39:59 -07:00
Claudio Sanches c2966805c8
Merge pull request #19386 from woocommerce/fix/insert-term-fatal-error
Check if wp_insert_term() returned a term before using it
2018-03-13 14:33:17 -03:00
Claudio Sanches 941d2a7bfe
Merge pull request #19384 from woocommerce/fix/default-product-category-check
Fix default product category check
2018-03-13 14:31:16 -03:00
Claudiu Lodromanean 3a5644ddce
Merge pull request #19338 from woocommerce/fix/19222
Fix JS state/country inputs
2018-03-13 10:10:24 -07:00
Mike Jolley 1dbf1bc1d8 add general woocommerce_form_field filter 2018-03-13 14:30:19 +00:00
Mike Jolley 5d6b43dbc8 Update nonce handling 2018-03-13 14:16:56 +00:00
Rodrigo Primo d603ba0b68 Check if wp_insert_term() returned a term before using it
This commit adds a check to make sure wp_insert_term() returned a term and not an instance of WP_Error before trying to access it. Without this change, the old code could produce the following fatal error:

Uncaught Error: Cannot use object of type WP_Error as array in includes/class-wc-install.php:478

Fixes #19377
2018-03-13 11:02:55 -03:00
Rodrigo Primo 40c56d8ee3 Fix default product category check
This commit casts the 'default_product_cat' option to integer before passing it to `term_exists()`. If we don't do this, `get_option( 'default_product_cat' )` return a string that is passed to `term_exists( $woocommerce_default_category, 'product_cat' )`. `term_exists()` assumes that strings are term names or slugs and search only for this fields to check if the given term exist. So it will return false (unless the term name equals to the term ID which is unlikely) even though the term exists. To make it search for terms IDs to check if the given term exists, it is necessary to pass an integer.
2018-03-13 10:19:35 -03:00
Mike Jolley a5a6d02f86 Fix null check introduced by phpcs changes 2018-03-13 11:57:51 +00:00
Rodrigo Primo 4229b3c5b2 Rename WC_Validation::is_GB_postcode() to WC_Validation::is_gb_postcode()
To follow WP coding standards
2018-03-13 08:49:40 -03:00
Rodrigo Primo 850bbc1c40 PHPCS fixes in includes/class-wc-validation.php 2018-03-13 08:49:34 -03:00
Rodrigo Primo c2c1501acc PHPCS fixes in includes/class-wc-webhook.php 2018-03-13 08:35:25 -03:00
Mike Jolley 291de9c1fb Override supports for PayPal to see if credentials exist 2018-03-13 11:35:20 +00:00
Rodrigo Primo 52e067eeef PHPCS fixes in includes/wc-conditional-functions.php 2018-03-13 08:33:48 -03:00
Mike Jolley d910f11b49 Delete orphans after import 2018-03-13 11:14:24 +00:00
Mike Jolley 387ea23d39 phpcs 2018-03-13 11:11:11 +00:00
Mike Jolley e4e581c2ef Correctly handle default ordering on the search page
Fixes woocommerce_catalog_ordering function and closes #19362.
2018-03-13 10:43:58 +00:00
Torre Lasley 64f85346c0 Add filter to allow plugins to override the default coupon apply order. (#19339)
* Fix for Issue #10523 - Variations ID lookup by SKU

I copied the code from the bulk() function to look up the Variation ID by the Variation SKU if the Variation ID is missing.

* Added new filter woocommerce_coupon_sort to allow plugins to override the default coupon apply order.
2018-03-13 10:26:22 +00:00
Mike Jolley 200f2371fd
Merge pull request #19342 from woocommerce/update/walkers-phpcs
Fixed walkers PHPCS violations
2018-03-13 10:17:27 +00:00
Mike Jolley 1b905b2975
Merge pull request #19331 from woocommerce/add/coupon-wildcard-email
Add wildcard email support for coupons.
2018-03-13 10:05:06 +00:00
Mike Jolley b875299b65
Merge pull request #19372 from woocommerce/fix/broke-shipping-zones
Fixed missing shipping zones on settings
2018-03-13 10:02:30 +00:00
Mike Jolley 923bb58f9d
Merge pull request #19369 from woocommerce/fix/19247
Properly check for old and new slug while updating attributes
2018-03-13 10:01:43 +00:00
Mike Jolley 48303278f6
Merge pull request #19373 from nishitlangaliya/issue-19323
missing single quote added
2018-03-13 09:59:55 +00:00
Mike Jolley 272c43f0d8 Just ENT_QUOTES is enough in https://github.com/woocommerce/woocommerce/pull/19349 2018-03-13 09:58:38 +00:00
Anders Skouboe 363fb54a2d Decode single quotes in short description editor 2018-03-13 09:58:38 +00:00
nishitlangaliya 4b4fd3931e missing single quote added 2018-03-13 11:15:43 +05:30
Gerhard Potgieter 01775a4443 Missing space 2018-03-13 07:34:47 +02:00
Claudio Sanches 988e5e576e Fixed spacing 2018-03-12 17:40:13 -03:00
Claudio Sanches 03c98e7ae7 Fixed missing shipping zones on settings
Fixed empty wp_localize_script() when WC_Shipping_Zone->get_shipping_methods() loads as admin data instead of json.
2018-03-12 17:37:45 -03:00
Mike Jolley a6b6685353
Merge pull request #19335 from woocommerce/fix/19244
Use gallery thumbnail size for variation image switcher.
2018-03-12 20:09:03 +00:00
Mike Jolley e936cbdf9c todo note for #19293 2018-03-12 19:53:14 +00:00
Mike Jolley 895df71b9e
Merge pull request #19310 from woocommerce/fix/19294
Only add schema for ratings when enabled.
2018-03-12 19:37:24 +00:00
Mike Jolley 906aa97aea Merge branch 'master' into update/19061 2018-03-12 19:28:53 +00:00
Claudio Sanches 54a0e01b8a
Merge branch 'master' into patch-2 2018-03-12 16:28:00 -03:00
Mike Jolley f0aa07fbf7 Case insensitive or handling 2018-03-12 19:18:13 +00:00
Mike Jolley b0a4502e0f Unslash quotes 2018-03-12 19:11:48 +00:00
Claudio Sanches 6130a222cc Properly check for old and new slug while updating attributes
Closes #19247
2018-03-12 15:52:26 -03:00
Roy Lindauer 7016762dd5 Merge branch '17355-SplitAndFilter' of github.com:roylindauer/woocommerce into 17355-SplitAndFilter 2018-03-12 10:58:31 -07:00
Claudiu Lodromanean 0cc1b78341
Merge pull request #19296 from woocommerce/fix/hash-function
Hash may not exist
2018-03-12 10:58:31 -07:00
Roy Lindauer 6fba320040 Delete tax specific transients 2018-03-12 10:57:14 -07:00
Claudiu Lodromanean 4fbd01f003
Merge pull request #19288 from woocommerce/fix/19210
Introduce woocommerce_product_loop helper for loops
2018-03-12 10:50:25 -07:00
Mike Jolley 2b7be75b44
Merge pull request #19366 from woocommerce/fix/19347
Check if product has weight before calculate weigth total in cart
2018-03-12 16:55:22 +00:00
Claudio Sanches 768a21e788 Check if product has weight before calculate weigth total in cart
Closes #19347
2018-03-12 12:54:00 -03:00
Claudiu Lodromanean 1b3e0b39b1
Merge pull request #19363 from nishitlangaliya/issue-19323
Add Filter to woocommerce_output_product_categories
2018-03-12 08:50:22 -07:00
Claudio Sanches 82fec65fa0 Merge branch 'master' into update/walkers-phpcs 2018-03-12 12:31:57 -03:00
nishitlangaliya 8fa7a7695a Add Filter to woocommerce_output_product_categories 2018-03-12 16:09:00 +05:30
Boro Sitnikovski d01ab9b24f Remove unnecessary string 2018-03-12 09:07:51 +01:00
Mike Jolley 8b06e0e432
Merge pull request #19341 from woocommerce/fix/phpcs-includes-gateways
PHPCS fixes for includes/gateways directory
2018-03-10 20:17:24 +00:00
Mike Jolley d724f50b1c
Merge pull request #19343 from woocommerce/fix/php-includes-admin-importers
PHPCS fixes for includes/admin/importers directory
2018-03-10 11:57:46 +00:00
Claudio Sanches 18a44172a2 Fixed class-wc-widget-top-rated-products.php PHPCS violations 2018-03-09 17:50:02 -03:00