Commit Graph

15790 Commits

Author SHA1 Message Date
Mike Jolley 9c2edf4983 Moves around some includes so they are included before the autoloader needs to find them 2018-05-22 12:57:48 +01:00
Mike Jolley 52d5700681
Merge pull request #20126 from woocommerce/fix/20119
Remove legacy meta data from orders
2018-05-22 11:47:15 +01:00
Mike Jolley a3c18696e8 Fix terms display in preview 2018-05-22 11:19:39 +01:00
Mike Jolley be63fb152a Preview checkout without dummy product 2018-05-22 11:19:09 +01:00
Mike Jolley 7609ed82da Make wc_query_string_form_fields handle strings 2018-05-22 10:53:08 +01:00
Mike Jolley bd625a0537 Escape and decode amsersands correcrtly 2018-05-22 10:52:51 +01:00
Mike Jolley 0d799b2d06
Merge pull request #20130 from woocommerce/update/20105
Data erasers; target shop_order only and allow filtering
2018-05-21 17:37:32 +01:00
Mike Jolley 6bbd598713
Merge pull request #20137 from woocommerce/fix/20135
Recalc taxes if address changes in API
2018-05-21 17:37:15 +01:00
Mike Jolley 03dfd9b262 Remove . from strings 2018-05-21 17:02:33 +01:00
Mike Jolley faa09deff1 Recalc taxes if address changes in API 2018-05-18 21:47:04 +01:00
Mike Jolley 4fc19b6766 feedback 2018-05-18 21:28:51 +01:00
Marcin Bot 5130edf566 WC_Abstract_Privacy allow to specify filters' priority 2018-05-18 16:07:36 +01:00
Mike Jolley bf50e871f4 Update/add filter 2018-05-18 15:28:48 +01:00
Mike Jolley bbfd419c8b Array of arrays 2018-05-18 15:13:54 +01:00
Mike Jolley 00288c3b7f Change token export format 2018-05-18 15:10:43 +01:00
Gerhard Potgieter c61e0688c6
Merge pull request #20123 from woocommerce/fix/20110
Prevent autofocus on checkout
2018-05-18 14:32:30 +01:00
Gerhard Potgieter 7302d21a55
Merge pull request #20094 from woocommerce/fix/20051
When cleaning up CSV import, only remove product taxonomies
2018-05-18 14:30:45 +01:00
Gerhard Potgieter d3d36de567
Merge pull request #20091 from jconroy/status_table_row_fix
Fix incorrectly closed system status table row
2018-05-18 14:29:42 +01:00
Gerhard Potgieter 6000580ec9
Merge pull request #20086 from woocommerce/fix/20081
Fix rounding of line items for orders
2018-05-18 12:31:09 +01:00
Gerhard Potgieter 7c120bb62f
Merge pull request #20085 from woocommerce/fix/20057
Set date created if null during update
2018-05-18 12:30:26 +01:00
Mike Jolley c409a30765 erasers; target shoP_order only and allow filters 2018-05-18 12:29:56 +01:00
Gerhard Potgieter 5141e69339
Merge pull request #20084 from woocommerce/fix/20044
Fix tooltip styling when outside label
2018-05-18 12:29:40 +01:00
Gerhard Potgieter ff05df5dac
Merge pull request #20083 from woocommerce/fix/20058
When duplicating variation, set the date to null
2018-05-18 12:28:55 +01:00
Gerhard Potgieter ad24b9c9d9
Merge pull request #20041 from woocommerce/fix/20039
Wrap cell in ' rather than prepend
2018-05-18 12:27:26 +01:00
Gerhard Potgieter 7a501337b9
Merge pull request #20061 from saimonh3/fix/20060
fix(missing-country-code): add bahrain country code in the load_country_states method
2018-05-18 12:26:39 +01:00
Mike Jolley 7481c2c205 Remove legacy meta data from orders 2018-05-18 11:58:21 +01:00
Mike Jolley ddece6a53b Revert "Don't force default token gateway active by default"
This reverts commit 2ef13c3e72.
2018-05-18 11:32:49 +01:00
Mike Jolley 2ef13c3e72 Don't force default token gateway active by default 2018-05-18 11:30:56 +01:00
Mike Jolley 20c184274b Prevent autofocus on checkout 2018-05-18 10:39:51 +01:00
Mike Jolley c4e1f8cd76 When cleaning up CSV import, only remove product taxonomies 2018-05-16 08:57:37 +01:00
Khan M Rashedun-Naby 0c70ed69f3 Little clean up and fix 2018-05-16 09:08:49 +06:00
Khan M Rashedun-Naby 3f824ae000 wc_get_loop_class logic simplified 2018-05-16 08:47:35 +06:00
Jason Conroy e8e438704b Fix incorrectly closed table row
Introduced with 23b69eba53 (diff-1b33d607bfa554752b46fad3269637deR806)
2018-05-16 11:36:02 +10:00
Mike Jolley faa00b7488 Remove full stop after action name 2018-05-15 23:26:18 +01:00
Mike Jolley d25bd2dd33 Fix rounding of line items for orders 2018-05-15 23:18:39 +01:00
Mike Jolley 58e4802f47 Set date created if null during update 2018-05-15 19:15:42 +01:00
Mike Jolley d136926d0c Fix tooltip styling when outside label 2018-05-15 15:59:49 +01:00
Mike Jolley 7ee933dd18 When duplicating variation, set the date to null 2018-05-15 15:37:17 +01:00
Khan M Rashedun-Naby 5c0d7292f3 wc_get_object_terms refactored 2018-05-15 15:44:32 +06:00
Khan M Rashedun-Naby 1ed6d7ce65 Unnecessary Else Removed 2018-05-15 15:01:41 +06:00
Khan M Rashedun-Naby f7baef9938 wc_list_pages function refactored 2018-05-15 08:08:18 +06:00
Claudio Sanches 6c1234668a
Merge pull request #20066 from rnaby/140518-235030
Removed Else Condition Check
2018-05-15 01:20:30 +01:00
Khan M Rashedun-Naby 80a1a64285 Else Removed 2018-05-15 00:33:22 +06:00
Khan M Rashedun-Naby 651de82769 ElseIf and Else Statement Removed 2018-05-15 00:07:29 +06:00
Khan M Rashedun-Naby f09fd925e7 Removed Else Condition Check 2018-05-15 00:01:15 +06:00
Mohammed Saimon 0b4847d75d fix(missing-country-code): add bahrain country code in the load_country_states method 2018-05-14 13:26:25 +06:00
Khan M Rashedun-Naby 7d889b472a Approach Cleaned 2018-05-13 23:40:07 +06:00
Mike Jolley e6ddc65c2a Wrap cell in ' rather than prepend 2018-05-11 12:16:02 +01:00
claudiulodro 2ee7c62499 Add default empty step class to html-csv-import-steps.php 2018-05-10 11:59:17 -07:00
Claudiu Lodromanean 2dc1e042c9
Merge pull request #20024 from woocommerce/update/20022
Context for getting shipping methods for shipping zone.
2018-05-09 10:10:27 -07:00
Claudiu Lodromanean 7a6b0d8cf5
Merge pull request #19934 from woocommerce/fix/19819
Add protocol to URLs for thumbnails in cart.
2018-05-09 10:09:17 -07:00
Mike Jolley 1ff5520512 Pass through JSON context when getting zones for JSON responses and scripts 2018-05-09 17:41:33 +01:00
Claudiu Lodromanean 6f2c807f1c
Merge pull request #19984 from woocommerce/fix/19640
Basic range download handling for Force download.
2018-05-09 09:08:15 -07:00
Mike Jolley 14cbf7b0f0 Pass scheme without hyphen 2018-05-09 17:06:34 +01:00
Grzegorz Rola 5c9085de03 Context for getting shipping methods for shipping zone. 2018-05-09 16:35:49 +02:00
Peter Fabian e31420234a Skip download remainig check if doing ranged request.
This allows to finish listening/waching the file on iOS device if the remaining download count goes from 1 to 0.
2018-05-09 16:34:58 +02:00
Claudiu Lodromanean ec02a133a3
Merge pull request #20021 from woocommerce/fix/19967
Switch stock status when manage stock gets changed and qty is sufficient.
2018-05-09 07:21:59 -07:00
Peter Fabian e5dfa71e23 Moved check for download log to WC_Download_Handler. 2018-05-09 15:52:02 +02:00
Mike Jolley 2a90dcbc36 Prevent infinite loops when grouped products group each other 2018-05-09 14:05:05 +01:00
Peter Fabian b920fb5786 Fixed bugs introduced by refactoring. 2018-05-09 14:29:52 +02:00
Peter Fabian 10fdae02bb Updated documentation according to WP CS. 2018-05-09 11:40:02 +02:00
Peter Fabian 3faf49b4aa Sanitize HTTP_RANGE input. 2018-05-09 11:13:36 +02:00
Peter Fabian 424213bc17 Applied the filter inside the function.
Added optional scheme parameter and @since docstring according to the code review.
2018-05-09 09:42:28 +02:00
Claudiu Lodromanean abfba228b5
Merge pull request #20005 from woocommerce/fix/19997
Update quick edit logic to handle external products
2018-05-08 11:24:18 -07:00
Claudiu Lodromanean 7528762ee2
Merge pull request #20002 from woocommerce/fix/19959
Zoom improvements for mobile/touch
2018-05-08 11:16:44 -07:00
Mike Jolley 8531b2677e Update quick edit logic to handle external products 2018-05-08 16:58:51 +01:00
Claudiu Lodromanean 8a60d0aee9
Merge pull request #19998 from woocommerce/fix/19979
Settings API should force autoload on by default.
2018-05-08 08:57:02 -07:00
Mike Jolley ffbbf08b61 Zoom improvements for mobile 2018-05-08 14:48:25 +01:00
Mike Jolley 5de4f281fe Exclude frontend include from REST API calls 2018-05-08 12:09:04 +01:00
Mike Jolley 3b5dfcb80b Settings API should force autoload on by default. 2018-05-08 11:12:40 +01:00
Peter Fabian ba79747975 Backwards compat fixes for range download. 2018-05-08 11:47:05 +02:00
Ralf Wiechers 47fbf7eef9
Allow related products limit to be like other post_per_page values
Fix #19994
2018-05-08 11:39:54 +02:00
Peter Fabian 8a8f085dcf Added back extra parameter for backwards compatibility. 2018-05-08 10:16:53 +02:00
Peter Fabian cb7ebe9aae Split handle_range_request function, code cleanup. 2018-05-07 23:56:12 +02:00
Claudiu Lodromanean 9e1b8245be
Merge pull request #19987 from woocommerce/fix/plugin-install-get-proper-plugin-filename
Plugin installer: fix extracting filename from path
2018-05-07 14:37:40 -07:00
Rodrigo Primo 3644f8c220
Merge pull request #19992 from woocommerce/fix/phpcs-class-wc-report-customers
Fix PHPCS violations in includes/admin/reports/class-wc-report-customers.php
2018-05-07 17:57:57 -03:00
Rodrigo Primo c1dabf0196 Fix PHPCS violations in includes/admin/reports/class-wc-report-customers.php 2018-05-07 17:08:56 -03:00
Paul Dechov d7dc2d45a4 Use simpler function for retrieving last array item
Also avoids array dereferencing syntax incompatible with PHP <5.4.
2018-05-07 14:50:26 -04:00
Claudiu Lodromanean 9c8dbbedc2
Merge pull request #19988 from woocommerce/update/obw-recommended-stylized-checkboxes
OBW: stylized checkboxes in "Recommended" step
2018-05-07 11:45:08 -07:00
Claudiu Lodromanean ba81e9e6f2
Merge pull request #19986 from woocommerce/fix/19975-check-tandc-exist
Check Terms Conditions page exits
2018-05-07 11:29:59 -07:00
Claudiu Lodromanean bda8732c6f
Merge pull request #19974 from woocommerce/update/payment-method-columns
Updates table styling and columns
2018-05-07 11:23:49 -07:00
Claudiu Lodromanean ccededa35c
Merge pull request #19971 from woocommerce/fix/19964
Fix: WC API should not try to create a product image if an empty image is passed
2018-05-07 10:48:10 -07:00
Claudiu Lodromanean 2bc90d7315
Merge pull request #19966 from woocommerce/add/tracker-opt-out
Tracker opt-out api call to erase personal data
2018-05-07 10:37:31 -07:00
Peter Fabian c2493310d9 Switch stock status when manage stock gets changed.
As the stock quantity might be saved in the database from previous settings, stock_status needs to be in sync if qty is > 0.
2018-05-07 16:01:59 +02:00
Paul Dechov a611c1e329 Adjust recommended item to used stylized checkbox 2018-05-07 09:39:44 -04:00
Paul Dechov 660a7eea0e Fix plugin installer extracting filename from path 2018-05-07 08:27:22 -04:00
Gerhard Potgieter 6ab75247f7 Check that the terms condtions page actually exists and not just for an saved ID. 2018-05-07 11:05:38 +02:00
Peter Fabian ceb713adbc Basic range download handling for Force download. 2018-05-07 10:05:02 +02:00
Tim Jensen e2cc3673b2 Add coupon usage count hooks
These action hooks allow developers to extend functionality related to updating coupon usage counts.
2018-05-06 07:09:59 -04:00
urosmil 5ec04d9398
Add endpoints to account menu items filter
This change will add possibility for adding new custom links to woo account, not only changing labels of existing ones.
2018-05-06 09:56:28 +02:00
Mike Jolley 8d6bbabc58
Merge pull request #19929 from woocommerce/fix/19924-parent-id-0-categories
Parent:0 terms via API PUT/POST
2018-05-04 18:56:15 +01:00
Mike Jolley cf9fa5b3ff Updates table styling and columns 2018-05-04 18:48:41 +01:00
pierrebuet 3850f4f13a Diverse typos 2018-05-04 16:57:01 +02:00
Rodrigo Primo c7a9550691 Fix: WC API should not try to create a product image if empty image is passed
Currently if you try to create a product variation passing an empty array as the value of the image key using WC API:

Endpoint: `wp-json/wc/v2/products/PRODUCT_ID/variations`
Payload: `{ "attributes" : [ { "id" : 1, "name" : "color", "option" : "Green" } ], "dscription" : "Green Tea Variety", "image" : {} }`

WC will return the following error:

```
{ "code": "woocommerce_product_invalid_image_id", "data": { "status": 400 }, "message": "#0 is an invalid image ID." }
```

This is happening because the code that handles image creation
(4e42b2cd30/includes/api/class-wc-rest-product-variations-controller.php (L292)) is not checking if `$request['image']` is empty before adding a new `position` key to it. To fix this problem, this commit simply adds a check to see if `$request['image']` is empty before proceeding.

Fixes #19964
2018-05-04 10:47:39 -03:00
Gerhard Potgieter 96d84b2813 Revert "Update the actual message and not just the test :)"
This reverts commit 9607fbcdd8.
2018-05-04 11:57:26 +02:00
Gerhard Potgieter 9607fbcdd8 Update the actual message and not just the test :) 2018-05-04 09:24:05 +02:00
Gerhard Potgieter e6e03858a0 Add call to tracking API when opting out to comply with GDPR erasure. 2018-05-04 09:10:18 +02:00
Gerhard Potgieter c2dbc0c887 Keep taxonomy_hierarchical test in place 2018-05-04 08:50:14 +02:00
Claudiu Lodromanean eaa6915c6b
Merge pull request #19958 from woocommerce/fix/default-asterisk
Required fields should be marked with *
2018-05-03 09:28:26 -07:00
Claudiu Lodromanean 594641c32f
Merge pull request #19952 from woocommerce/add/obw-plugin-install-info-message
OBW: List all plugins to be installed upon continuing to next step
2018-05-03 09:23:45 -07:00
Mike Jolley 9e9949a742 This should be on by default 2018-05-03 16:50:26 +01:00
Claudiu Lodromanean 4357feef98
Merge pull request #19957 from woocommerce/fix/blank-state-cta
Fixes blank state call to action styling
2018-05-03 08:26:59 -07:00
Mike Jolley a3a2d234bb
Merge pull request #19946 from woocommerce/fix/19940
Actions should be filters
2018-05-03 16:11:47 +01:00
Mike Jolley 228b888ab6
Merge pull request #19947 from woocommerce/fix/19944
Page conditionals need to ensure the page exists/is set first
2018-05-03 16:11:23 +01:00
Mike Jolley 9069357a84 Fixes blank state call to action styling 2018-05-03 16:09:35 +01:00
Claudiu Lodromanean 305167efba
Merge pull request #19933 from franticpsyx/deprecate-woocommerce_ajax_added_order_items
[3.4] Deprecate woocommerce_ajax_added_order_items action
2018-05-03 08:03:55 -07:00
Claudiu Lodromanean 9dfd62dd67
Merge pull request #19938 from woocommerce/fix/update-obw-payfast-repo-slug
Updating repo slug for PayFast in the onboarding wizard
2018-05-03 08:01:17 -07:00
Claudiu Lodromanean fdb8cdb482
Merge pull request #19945 from woocommerce/update/gdpr-messages
Updates to GDPR wording
2018-05-03 08:00:05 -07:00
Mike Jolley d4e8ae093d
Merge pull request #19942 from woocommerce/tweak/gdpr-customer-tokens
Introduce GDPR export/erase for customer tokens
2018-05-03 15:36:56 +01:00
Mike Jolley 2f8f30cd29 Make some strings easier to translate for translators 2018-05-03 14:50:39 +01:00
Paul Dechov 44cf10e8cc Fix phpcs issues 2018-05-03 09:35:09 -04:00
Mike Jolley 3a67c497d0 Update policy text 2018-05-03 13:19:50 +01:00
Peter Fabian 92180d2b42 Add scheme to widget id when caching objects.
This should prevent cache from serving mixed content when widget cache is preloaded with http version, then accessed via https.
2018-05-03 14:10:04 +02:00
Boro Sitnikovski d3f3073f13 Merge branch 'master' into tweak/gdpr-customer-tokens 2018-05-03 12:02:12 +02:00
Boro Sitnikovski 868034886a Use display name for tokens 2018-05-03 12:00:07 +02:00
Mike Jolley f05f439c58 Page conditionals need to ensure the page exists/is set first 2018-05-03 10:23:36 +01:00
Mike Jolley 3c905387dc Actions should be filters 2018-05-03 10:06:47 +01:00
Boro Sitnikovski 8782be0b02 Use payment tokens instead of tokens 2018-05-03 11:06:11 +02:00
Mike Jolley fde3eddccd Just updates wording 2018-05-03 10:05:13 +01:00
Boro Sitnikovski 194dba40e2 Make sure devs pass their own unique ID and use localisation for constructor 2018-05-03 10:47:30 +02:00
Paul Dechov 099e4b9703 Refactor: move code around for more logical grouping 2018-05-03 04:45:01 -04:00
Boro Sitnikovski 1cfa6c6e4e Per discussion with Mike, use id when adding exporters/erasers 2018-05-03 10:36:11 +02:00
Boro Sitnikovski 0d981a000a Update abstract class to use associative arrays 2018-05-03 10:08:29 +02:00
Boro Sitnikovski d8d2f03a50 Introduce GDPR export/erase for customer tokens 2018-05-03 09:46:07 +02:00
Gerhard Potgieter a43ac9acae No need to do checks of parent, WordPress does all the checks when running wp_insert_term and wp_update_term 2018-05-03 08:19:16 +02:00
Paul Dechov 64a47cd7cd Show WCS and Jetpack only if they are not aleady active 2018-05-02 23:49:58 -04:00
Paul Dechov 9cd72562a8 Update plugin list on shipping zone toggle 2018-05-02 23:35:42 -04:00
Paul Dechov 2cfbe0a1f0 Remove 'will be installed and activated' messaging in other places 2018-05-02 22:36:47 -04:00
Paul Dechov bdf6188ed6 Change payment gateway names to plugin name 2018-05-02 17:28:09 -04:00
Paul Dechov fb0943bb89 Show plugins to install in 'Recommended' step 2018-05-02 17:24:11 -04:00
Paul Dechov 801667324a Show plugins to install in shipping step 2018-05-02 17:23:36 -04:00
Paul Dechov 57ad34451b Add payment step service settings plugins to list 2018-05-02 17:00:29 -04:00
Paul Dechov 9b524d7d77 List payment step service plugins to install 2018-05-02 16:58:56 -04:00
Lauren Smith 80835e3aca Updating repo slug for PayFast in the onboarding wizard 2018-05-02 15:38:16 -05:00
Peter Fabian 45cd62e3b9 Removed superfluous newline. 2018-05-02 22:15:25 +02:00
Peter Fabian 04dd99613e Putting public functions back.
In case some plugins are using them.
2018-05-02 22:07:49 +02:00
Mike Jolley d584ed72b9
Merge pull request #19930 from woocommerce/update/19925-api-order-refund-schema
Update refunds items schema to match actual response keys.
2018-05-02 18:06:30 +01:00
Claudio Sanches a55ae32530
Merge pull request #19935 from woocommerce/update/19815
Hook doc update
2018-05-02 13:29:23 -03:00
Peter Fabian 084e4885da Removed unused function wc_is_external_resource. 2018-05-02 17:07:19 +02:00
Eitan Shaked 032ed8a3d4 Add new class to order note 2018-05-02 17:14:24 +03:00
Mike Jolley 06ef8c8589 Hook doc update 2018-05-02 14:28:53 +01:00
Mike Jolley e807c6151f Merge branch 'master' into update/erasure-requests 2018-05-02 14:06:47 +01:00
Peter Fabian 8789642fb9 Add protocol to URLs for thumbnails in cart.
Removed wc_get_relative_url(), as it's not used anymore.
2018-05-02 14:34:50 +02:00
Manos Psychogyiopoulos 1895bbe3f3 Deprecate woocommerce_ajax_added_order_items action 2018-05-02 14:49:24 +03:00
Mike Jolley 2e78259452 Compatibility with 4.9 branch 2018-05-02 11:45:02 +01:00
Gerhard Potgieter 992a46c513 Do not unset parent_id when 0 but actuall handle 0 as it can be passed to wp_insert_term. 2018-05-02 12:19:56 +02:00
Gerhard Potgieter 5a2da43733 After talking with @mikejolley we decided it would be better to stick to the original schema, reason makes more sense. 2018-05-02 12:12:06 +02:00
Mike Jolley 6ccf5b14fa
Merge pull request #19922 from woocommerce/fix/downloadcleanup
Tool for cleaning up permissions table
2018-05-02 10:41:39 +01:00
Gerhard Potgieter 4a39d8b8cc Update refunds items schema to match actual response keys. 2018-05-02 10:13:51 +02:00
Gerhard Potgieter 61e624b937 Allow parent:0 param passing when updating a term via the API 2018-05-02 08:44:06 +02:00