Commit Graph

8104 Commits

Author SHA1 Message Date
Justin Shreve cad08747b9 Add bulk edit and quick edit to the list of hooks for the product.updated webhook. 2016-08-03 13:32:02 -07:00
Justin Shreve 8df6ff3c7b Convert wp-admin's system status page to use the same backend code as the API. 2016-08-03 10:50:47 -07:00
Mike Jolley 5a9dacd595 Show variable weights/dimensions even when parent values are not set. 2016-08-03 16:07:34 +01:00
Maciej Swoboda 24235564d5 ZIP Code formatting for Poland
In Poland we use ZIP code formatting: XX-XXX. So the "-" sign should
not be removed.
2016-08-03 16:06:30 +02:00
Mike Jolley f694f297e8 Use get_id() 2016-08-03 12:57:32 +01:00
Mike Jolley b8db53c2c1 made set_type private 2016-08-03 12:54:16 +01:00
Mike Jolley a053d234c9 get_order() method 2016-08-03 12:52:51 +01:00
Mike Jolley 1310ff09b5 Deprecated function replacements 2016-08-03 12:52:45 +01:00
Mike Jolley 837e08143b Merge branch 'master' into orders-crud-classes
# Conflicts:
#	includes/abstracts/abstract-wc-order.php
2016-08-03 12:32:27 +01:00
Claudio Sanches 4271617c79 Merge pull request #11594 from woothemes/multisite-login-11409
Add user to site on login
2016-08-02 16:00:33 -03:00
Justin Shreve 5d521b0da5 Fix product review endpoint based on PR feedback: Code cleanup, prepare_item_for_database like WP-API's comments does, better error handling on create, required arg simplification, trash support for reviews. 2016-08-02 11:03:44 -07:00
Justin Shreve 7529b0b3e9 Code cleanup 2016-08-02 10:30:43 -07:00
Justin Shreve a305da25ef Add batch support to the product reviews endpoint. 2016-08-02 10:30:43 -07:00
Justin Shreve b8ec255ea8 First pass at a product reviews REST API that supports creating/updating/deleting product reviews. 2016-08-02 10:30:43 -07:00
Mike Jolley ffb74a7b09 Add user to site on login
Closes #11409
2016-08-02 18:28:31 +01:00
Justin Shreve 9396c5436b Make sure that the create shipping zone uses the correct permissions function. Also makes sure creating the shipping zone returns 201, with the location of the new entity, like other endpoints. 2016-08-02 10:26:26 -07:00
Justin Shreve e761edd8d9 Make sure to load abstract-wc-rest-shipping-zones-controller.php 2016-08-02 10:10:47 -07:00
Justin Shreve 069ee3b9ac Add an error check when creating a new shipping zone via the API, incase create() fails. 2016-08-02 10:10:47 -07:00
Justin Shreve 33e0b367ac Add new line at end of files. 2016-08-02 10:10:47 -07:00
Jeff Stieler ea4285b1ec Ensure “rest of the world” zone retrieval doesn’t fail by using the core method instead of the REST controller wrapper. 2016-08-02 10:10:47 -07:00
Jeff Stieler bb23d2eaae Ensure _links are added to the single shipping zone method endpoint. 2016-08-02 10:10:47 -07:00
Jeff Stieler 5e7c495e10 Add “rest of the world” zone to API response. 2016-08-02 10:10:47 -07:00
Jeff Stieler 61a5bf8a68 Add single shipping zone method instance endpoint. 2016-08-02 10:10:47 -07:00
Jeff Stieler 288496b22b Separate shipping zone endpoint permissions check between read and write operations. 2016-08-02 10:10:47 -07:00
Jeff Stieler 7ebb466287 REST API item schemas should be singular objects.
Use single object schemas for Shipping Zone Locations and Methods.
2016-08-02 10:10:47 -07:00
Jeff Stieler f2bb438e98 Add _links to each shipping zone method. 2016-08-02 10:10:47 -07:00
Jeff Stieler 92f0c2bd2c Add endpoint to retrieve all shipping zone methods. 2016-08-02 10:10:47 -07:00
Jeff Stieler 510229e13d Add initial controller for Shipping Zone Methods endpoint, with schema definition. 2016-08-02 10:10:47 -07:00
Jeff Stieler 5400f94f86 Shipping zone location “type” field sanitization callback should be for text values. 2016-08-02 10:10:47 -07:00
Jeff Stieler 5d147ae287 Fix @extends annotation in shipping zone controller classes. 2016-08-02 10:10:47 -07:00
Jeff Stieler 6d891e1247 Handle case where no locations are sent in update request. 2016-08-02 10:10:47 -07:00
Jeff Stieler 626819f9b8 Add shipping zone locations update endpoint and handler. 2016-08-02 10:10:47 -07:00
Jeff Stieler c041e69e86 Correct locations schema, should be an array of location objects. 2016-08-02 10:10:47 -07:00
Jeff Stieler 9946d028f2 Add “described by” link to shipping zones endpoint response. 2016-08-02 10:10:47 -07:00
Jeff Stieler 96c18abb8d Add shipping zone locations retrieval endpoint. 2016-08-02 10:10:47 -07:00
Jeff Stieler 56ef442624 Move common methods to an abstract base shipping zones controller class. 2016-08-02 10:10:47 -07:00
Jeff Stieler 7a142af215 Initial Shipping Zone Locations endpoint controller, with schema. 2016-08-02 10:10:47 -07:00
Jeff Stieler 5718e66b2c Add create shipping zone endpoint and handler. 2016-08-02 10:10:47 -07:00
Jeff Stieler 29e150612f Add update shipping zone endpoint and handler. 2016-08-02 10:10:47 -07:00
Jeff Stieler 1480741998 Cast returned zone ID and order as integers. 2016-08-02 10:10:47 -07:00
Jeff Stieler 69a40b0648 Refactor Shipping Zone retrieval into a reusable method. 2016-08-02 10:10:47 -07:00
Jeff Stieler 039f5d2300 Add route and handler for retrieving single Shipping Zones. 2016-08-02 10:10:47 -07:00
Jeff Stieler fd042b88cf Implement get_items() for Shipping Zones endpoint. 2016-08-02 10:10:47 -07:00
Jeff Stieler 0de6f42b51 Create GET route for shipping zones, handling case where shipping calculations are disabled. 2016-08-02 10:10:47 -07:00
Jeff Stieler 267e5cba9a Add initial Shipping Zones REST API controller, with zone schema definition method. 2016-08-02 10:10:47 -07:00
Justin Shreve 72f01d9c0a Merge pull request #11548 from woothemes/system-status-api
Add system status info REST API endpoint
2016-08-02 10:08:45 -07:00
Mike Jolley b61d9cd5f1 Add index to search form IDs
Fixes #11557
2016-08-02 17:43:23 +01:00
Mike Jolley 6e1a640b1c Prevent dirty sessions by removing data objects from the package hash
Closes #11269
2016-08-02 17:10:26 +01:00
Mike Jolley d756b9c7ba Merge branch 'pr/11337'
# Conflicts:
#	assets/css/admin.css
2016-08-02 14:44:00 +01:00
Mike Jolley 922ba0337f Fix removal and tweak buttons 2016-08-02 14:42:27 +01:00
Mike Jolley 4de8af8a83 Merge pull request #11367 from andyexeter/master
Add NOT IN operator to WC_Admin_Report::get_order_report_data()
2016-08-02 14:22:50 +01:00
Mike Jolley e271825ffb Merge branch 'master' into tax-rate-auto-ordering
# Conflicts:
#	assets/css/admin.css
2016-08-02 14:17:23 +01:00
Mike Jolley 3c1f5e5e46 Tweak geoip instruction
Closes #11587
2016-08-02 14:06:48 +01:00
Mike Jolley 21fb2d5eb7 Merge pull request #11584 from saucal/fix-emails-not-encoded
Fixed emails not properly encoded in download URLs
2016-08-02 14:01:47 +01:00
opportus 43af0aae86 fixes #11588 - revision1 2016-08-02 05:27:30 +02:00
opportus 1caa1e09f4 fixes #11588 2016-08-02 02:20:50 +02:00
Matias Saggiorato e97acc82b5 Fixed emails not properly encoded in download URLs 2016-08-01 15:22:39 -03:00
Mike Jolley 2ef55327b8 Don't allow variations to exist with invalid parents
Closes #11567
2016-08-01 16:24:31 +01:00
Mike Jolley 22133a92db Avoid redirect if cart/checkout are the same 2016-08-01 16:19:41 +01:00
Mike Jolley 3f8af04a4e This should be disallowed
Closes #11570
2016-08-01 15:50:04 +01:00
Mike Jolley 569f2f55c4 Revert "Rewrite rule workarounds"
This reverts commit 49e3275ad3.
2016-08-01 15:48:24 +01:00
Mike Jolley 49e3275ad3 Rewrite rule workarounds 2016-08-01 14:42:14 +01:00
Mike Jolley 806f70416d Don't run IPN code if processing or completed.
Closes #11566
2016-08-01 12:02:49 +01:00
Mike Jolley ecf9f500d8 Merge pull request #11541 from woothemes/form-fields-11326
Query string -> form field helper function
2016-08-01 11:55:58 +01:00
Mike Jolley a2c7f2bf83 feedback 2016-08-01 11:55:45 +01:00
Mike Jolley 163da08a47 Merge branch 'master' into paypal-auto-capture-10563 2016-08-01 11:52:05 +01:00
Mike Jolley a5ed0e43fd Adjustments from feedback 2016-08-01 11:51:27 +01:00
Mike Jolley 1f664e7c5e Check for class not version 2016-08-01 11:42:03 +01:00
Mike Jolley bc65d87fce [2.6] Fixes add to cart message for IDs and allows the message to be returned
Fixes #11563
2016-08-01 11:41:52 +01:00
Mike Jolley 423a18f5c1 [2.6] When checking needs_shipping, ignore anything after : in the method ID
Fixes #11552
2016-08-01 10:31:05 +01:00
Mike Jolley 45d6b88ac6 woocommerce_after_/before prefixes 2016-08-01 10:27:15 +01:00
Moritz Meißelbach 97b0161c4c Add hooks to edit form 2016-08-01 09:13:21 +02:00
Moritz Meißelbach 68abee516e Rename hooks as suggested 2016-08-01 09:04:11 +02:00
Moritz Meißelbach a98377a15c Merge remote-tracking branch 'upstream/master' 2016-08-01 09:02:31 +02:00
Claudio Sanches 35c499aa81 Fixed product archive on front #11500 2016-07-29 18:46:39 -03:00
Moritz Meißelbach 6591ff1866 Provide 2 hooks for adding fields to the attribute creation form 2016-07-29 16:31:16 +02:00
Nicola Mustone 9759d38265 coding standards and escaping 2016-07-29 11:51:58 +02:00
Mike Jolley 4a23c41ab2 Hook in woocommerce_widget_shopping_cart_buttons for greater flexibility 2016-07-28 15:06:55 +01:00
Justin Shreve 5d95b76e1a Rename the endpoint from system-status to system_status (matches the rest of WC endpoints). 2016-07-27 14:06:14 -07:00
Justin Shreve e436e96654 Add missing textdomains, remove wc_ prefix from a few fields, spacing/coding standard fixes. 2016-07-27 13:59:16 -07:00
Claudio Sanches a5ba8a05ed Fixed checkboxes in the admin settings
This allow set yes/no or null/1 for checkboxes

cc @mikejolley @jeffstieler
2016-07-27 17:52:11 -03:00
Justin Shreve 041b5745b4 Finish system status tests 2016-07-27 12:19:14 -07:00
Claudio Sanches 63a570f161 [2.6] Display proper screen render text for custom range reports, closes #11543 2016-07-27 16:16:54 -03:00
Claudio Sanches 8c5678f967 [2.6] Fixed shipping classes URLs, closes #11542
cc @mikejolley
2016-07-27 15:52:02 -03:00
Justin Shreve e255602d91 System status controller 2016-07-27 10:29:10 -07:00
Lee Willis 15c6389326 Delete method options when deleting method 2016-07-27 18:14:50 +01:00
Mike Jolley d45be39758 Capture and refund support 2016-07-27 16:55:42 +01:00
Claudio Sanches 4d80528559 Merge pull request #11533 from enricodeleo/master
Remove items from a pending order via rest api
2016-07-27 12:42:12 -03:00
Claudio Sanches e0bfe9f9fa Merge pull request #11168 from zakalwe2016/master
Add Filters For Product Lists in Widgets
2016-07-27 12:15:20 -03:00
Mike Jolley a5d036d91c New function to generate query strings 2016-07-27 14:10:31 +01:00
Mike Jolley a816e8a92d APIClass and hook basics 2016-07-27 13:48:10 +01:00
Mike Jolley d2adabaf89 Redirect to login after password reset.
Closes #11376
2016-07-27 12:47:41 +01:00
Mike Jolley 66c61eebc8 Define full path for includes
Closes #11087
2016-07-27 11:58:43 +01:00
Mike Jolley 31fdfcdec4 Remove prefix from tags and cats
Closes #11297
2016-07-27 11:47:30 +01:00
Mike Jolley a259256550 Ordering in place 2016-07-27 11:30:12 +01:00
Mike Jolley 7328bd4a18 sort_rates placeholder function 2016-07-27 10:37:55 +01:00
Mike Jolley 0d6a3af108 Remove sorting function 2016-07-27 10:22:02 +01:00
Mike Jolley 052f4d9cc3 Update education text
Closes #11519
2016-07-27 10:13:06 +01:00
Enrico Deleo 6ef223057a Merge branch 'master' of github.com:woothemes/woocommerce 2016-07-27 11:07:17 +02:00
Justin Shreve 1d4615aee3 Fix setting class case. REST should be uppercase. 2016-07-26 14:33:55 -07:00