Commit Graph

32520 Commits

Author SHA1 Message Date
vedanshujain 6ab03e6acd Return early if post status is `auto-draft` to prevent fatal.
While creating an order, if we remove an item after adding, `pre_post_update` hook gets called. Since the order is not created yet, `$order->get_date_created()` will be null, and this will cause a fatal in the event tracker which checks for and tracks edit in order created date.

We now return early when order status is `auto-draft` to prevent these kind of errors.
2019-07-17 00:21:18 +05:30
David Stone 50d9c73809 Add more specific reason for why products cannot be purchased so plugin can custimize these messages 2019-07-16 12:49:50 -06:00
Gerhard Potgieter d034131781
Merge pull request #24171 from woocommerce/fix/checktextdomain-packages
Exclude package vendor folders from checktextdomain call
2019-07-16 18:59:43 +02:00
Gerhard 982da28730 Exclude package vendor folders from checktextdomain call 2019-07-16 18:55:29 +02:00
Claudio Sanches 4b5a7ed414
Merge pull request #24170 from woocommerce/release/3.7-beta.1
Update 3.7.0 Beta 1
2019-07-16 13:24:09 -03:00
Gerhard 651aa3dd48 3.7.0 Beta 1 2019-07-16 18:06:08 +02:00
Rodrigo Primo 7ff4eea38d
Merge pull request #24168 from woocommerce/fix/npm-audit-fix
NPM audit fix
2019-07-16 12:31:55 -03:00
Rodrigo Primo abf4d88aa4
Merge pull request #23264 from woocommerce/readme/3.7
[README] Rolling readme for 3.7
2019-07-16 12:27:36 -03:00
Rodrigo Primo bb0e323119 Merge branch 'master' into readme/3.7 2019-07-16 12:26:33 -03:00
Claudio Sanches fc2cf35ae9 NPM audit fix 2019-07-16 12:24:40 -03:00
Gerhard 40cf36fb29 Add missing changelog entry 2019-07-16 16:56:11 +02:00
Claudio Sanches 015a2d825c
Merge pull request #24165 from woocommerce/update/rest-api
REST API package version 1.0.3
2019-07-16 11:55:28 -03:00
Claudio Sanches 65a32cfc2f REST API package version 1.0.3 2019-07-16 11:36:10 -03:00
Rodrigo Primo 3da82b94c6
Merge pull request #24161 from woocommerce/update/template-versions-3.7
Bump template versions for 3.7
2019-07-16 09:35:12 -03:00
Gerhard 6ba23a01f8 Bump template versions for 3.7 2019-07-16 10:36:45 +02:00
Gerhard Potgieter fb0eb7e092
Merge pull request #24157 from woocommerce/fix/shorter-wccom-url-params
shorten in-app-purchase url param keys
2019-07-16 08:49:15 +02:00
Gerhard 3b53036a62 Clean up readme for 3.7 2019-07-16 08:45:04 +02:00
haszari 8c5eb16c78 shorten in-app-purchase url param keys 2019-07-16 08:30:19 +12:00
Claudio Sanches 1e992cfad7
Merge pull request #24156 from woocommerce/update/min-wp-version
Bump WP minimum version.
2019-07-15 15:16:02 -03:00
Gerhard 9a72ba5cab Bump WP minimum version. 2019-07-15 19:39:12 +02:00
Gerhard Potgieter 3958e347cd
Merge pull request #24123 from woocommerce/add/wccom-site-rest-api
Add WCCOM Site REST API
2019-07-15 19:34:14 +02:00
Gerhard 93bd887a28 Changelog 2019-07-15 19:32:49 +02:00
Claudio Sanches 1f77efae4b Don't use WP_REST_Server::get_raw_data() inside REST API endpoints 2019-07-15 13:30:17 -03:00
Claudio Sanches eac2d39edf Better naming for REST API endpoints 2019-07-15 13:19:03 -03:00
Claudio Sanches 3fd0eb7391 Merge branch 'add/wccom-site-rest-api' of github.com:woocommerce/woocommerce into add/wccom-site-rest-api 2019-07-15 13:13:53 -03:00
Claudio Sanches 396bbe4cf5 Fixed doc blocks and coding standards 2019-07-15 13:13:16 -03:00
Akeda Bagus 3f9bbf5a3b
Replace __DIR__ with WC_ABSPATH. 2019-07-15 23:07:34 +07:00
Claudio Sanches d339a29468 Fixed standards 2019-07-15 12:58:41 -03:00
Claudio Sanches 73f27d030b Use trailingslashit 2019-07-15 12:57:16 -03:00
Akeda Bagus c8812a205b
Add helper method get_authorization_header.
This to support scenario in which HTTP_AUTHORIZATION being stripped
and use getallheaders as a fallback. This helper method is copied from
class-wc-rest-authentication.php.
2019-07-15 22:47:07 +07:00
Akeda Bagus 47db7588d7
Use hash_equals when checking access_token. 2019-07-15 22:03:31 +07:00
Akeda Bagus 0ffd4db630
Move authentication to WCCOM Site API to wccom-site main class. 2019-07-15 21:59:48 +07:00
Gerhard 60b1746d93 Readme 2019-07-15 16:57:32 +02:00
Akeda Bagus 20325f2db6
Remove duplicate state download_link in favor of download_url. 2019-07-15 21:41:53 +07:00
Akeda Bagus 0891e0c85f
Remove extra docblock line. 2019-07-15 18:45:50 +07:00
Akeda Bagus 45bf842ea3
Add @ since tag. 2019-07-15 18:44:51 +07:00
Akeda Bagus 284239ee44
Replace SERVER['REQUEST_URI'] in favor of add_query_arg. 2019-07-15 18:28:33 +07:00
Gerhard Potgieter 620bde01e4
Merge pull request #24151 from woocommerce/fix/jshint-error-fix
Fixed jshint problems
2019-07-15 13:12:17 +02:00
Peter Fabian 2f19640ce1 Fixed jshint problems. 2019-07-15 12:59:06 +02:00
Peter Fabian 1e43a2f9e3
Merge pull request #24145 from woocommerce/add/new-cart-hooks
New hooks for cart and minicart templates
2019-07-15 12:22:31 +02:00
Peter Fabian f230452caf
Merge pull request #24146 from woocommerce/fix/get_formatted_shipping_address
WC_Order::get_formatted_shipping_address refactor
2019-07-15 11:53:59 +02:00
Peter Fabian cb9d94ed9b
Merge pull request #24147 from woocommerce/revert-23705-fix/23696
Revert "Prevent negative prices on products"
2019-07-15 11:28:25 +02:00
Akeda Bagus f51265e58d
Add @since tag. 2019-07-15 15:42:36 +07:00
Akeda Bagus 59a5c6d754
Disable few phpcs rules instead of all. 2019-07-15 15:17:40 +07:00
Gerhard Potgieter 043fd478bc
Merge pull request #23687 from rekkitatu/master
Delete guest cart session if user logs in, solves #23686
2019-07-15 09:54:39 +02:00
Gerhard Potgieter 7c0d0251ee
Merge pull request #23883 from woocommerce/add/new-edit-order-tracks
Track more events on the edit order screen for future design validation.
2019-07-15 09:36:01 +02:00
Gerhard Potgieter aa706fd68f
Merge pull request #24075 from woocommerce/add/in-app-purchase-params
Add in-app-purchase params to extensions screen & suggestions
2019-07-15 09:18:51 +02:00
Gerhard Potgieter 238a5576d0
Merge pull request #24139 from woocommerce/fix/failing-e2e-timeouts
Be sure to run grunt in travis
2019-07-15 09:07:36 +02:00
Gerhard Potgieter 52f1eb4060
Revert "Prevent negative prices on products" 2019-07-15 08:50:11 +02:00
haszari dab7cb328a use add_query_arg to determine current page url 2019-07-15 18:07:57 +12:00