Claudio Sanches
349fc2f665
[API] post__in filter for v2
2015-06-23 11:51:40 -03:00
Claudio Sanches
e003b7803f
Merge pull request #8440 from kilbot/patch-4
...
Add post__not_in filter for REST API requests
2015-06-23 11:50:36 -03:00
Claudio Sanches
9dc28be577
Support HTTP_X_HTTP_METHOD_OVERRIDE in API old versions
2015-06-23 11:49:19 -03:00
Claudio Sanches
6d3979f5d7
Merge pull request #8439 from kilbot/patch-3
...
Allow HTTP method to be overwritten by HTTP_X_HTTP_METHOD_OVERRIDE
2015-06-23 11:47:12 -03:00
Paul Kilmurray
9b848fb1bd
Add post__not_in filter for REST API requests
...
To match the `post__in` filter above
2015-06-23 20:48:19 +08:00
Paul Kilmurray
a030ab52cb
Allow HTTP method to be overwritten by HTTP_X_HTTP_METHOD_OVERRIDE
...
For the same reasons [outlined here](https://github.com/WP-API/WP-API/issues/964 ), ie: Backbone uses X-HTTP-Method-Override.
2015-06-23 20:42:39 +08:00
Mike Jolley
71f2c25da4
Calc totals should not calc tax if disabled
2015-06-23 13:29:38 +01:00
Mike Jolley
84bc6e1b1a
Merge branch 'geolocate-cache'
...
Conflicts:
includes/class-wc-customer.php
Closes #7939
2015-06-23 12:26:03 +01:00
Mike Jolley
e8877bed7c
readme
2015-06-23 12:24:39 +01:00
Mike Jolley
14c88b49bc
Tweak option labelling
2015-06-23 12:20:13 +01:00
Mike Jolley
00d574a929
get_taxable_address() should get postcode and city too.
...
@SiR-DanieL Can you check this?
2015-06-23 11:50:15 +01:00
Mike Jolley
1801f57a39
Fix for permalink structures containing index.php
2015-06-23 11:45:04 +01:00
Mike Jolley
817e5355fd
Pass $item object, not item meta array
...
Closes #8419
2015-06-23 10:24:13 +01:00
Claudio Sanches
b43abff674
Merge pull request #8415 from justinshreve/oauth-7928
...
Fix issues with our OAuth implementation, including nonconformance to spec. Closes #7928
2015-06-22 15:00:51 -03:00
Justin Shreve
819a4fae0d
wp_endswith doesn't actually exist (its a wpcom/jetpackism) - update with a simple substr check
2015-06-22 17:58:50 +00:00
Claudio Sanches
c92bc6d865
Merge pull request #8406 from justinshreve/api-basic-auth-8256
...
Implement full basic authentication & query string auth without mixing the two, closes #8256
2015-06-22 14:06:07 -03:00
Claudio Sanches
b3111a6631
Merge pull request #8433 from adnanoner/master
...
add $args to woocommerce_refund_created action hook
2015-06-22 13:09:35 -03:00
adnanoner
d07e567050
add $args to woocommerce_refund_created action hook
...
#8432
2015-06-22 17:54:45 +02:00
Mike Jolley
1489fafd06
Need to re-geolocate on page load to refresh cached pages being viewed with wrong hash
2015-06-22 15:35:46 +01:00
Mike Jolley
9adbdd4a2c
Tweak URL generation before redirect
2015-06-22 15:30:42 +01:00
Mike Jolley
eb4cbaf69f
get_taxable_address does not need to handle geolocation_ajax any more
2015-06-22 15:30:34 +01:00
Mike Jolley
8dbd30e76b
Merge branch 'add-email-notification-for-partial-refunds-issue-8278'
2015-06-22 15:01:17 +01:00
Mike Jolley
07cc12049d
Merge remote-tracking branch 'origin/add-email-notification-for-partial-refunds-issue-8278' into add-email-notification-for-partial-refunds-issue-8278
2015-06-22 14:59:51 +01:00
Mike Jolley
f988aae387
Use hashes and server side redirection
2015-06-22 14:55:15 +01:00
davidlenehan
d7538559a8
Pulling customs refund email fields from wp_options
...
Pulling customs refund email fields from wp_options correctly now and
overriding the basic lookup for subject and heading.
2015-06-22 14:18:44 +01:00
davidlenehan
a171407bcb
Adding form fields for partial refund emails
...
This is not a working solution yet, looking for feedback on ho west to
implement this
2015-06-22 13:36:47 +01:00
davidlenehan
47c18b1947
Fixing issue where email settings were blank
...
Fixing issue where email strings were blank for refunded orders in
wp-admin > WooCommerce > Settings > emails
2015-06-22 11:14:19 +01:00
Mike Jolley
839a09b7cf
Minify
2015-06-22 11:09:29 +01:00
Mike Jolley
d5660e8cfc
Don't disable buttons
...
Closes #8424
2015-06-22 11:09:23 +01:00
Mike Jolley
5937a08696
Fix cat dropdown URL
...
Because a filter is not a fix :)
Closes #8412
2015-06-22 10:22:15 +01:00
Mike Jolley
0d6ec24a83
Merge branch 'pr/8413'
2015-06-22 10:14:31 +01:00
Mike Jolley
e967c1e01c
Tweak filters - move to format_string
2015-06-22 10:14:21 +01:00
Mike Jolley
36549725fb
Merge pull request #8427 from fhugas/patch-1
...
Removed redundant strtolower()
2015-06-22 10:03:50 +01:00
fhugas
e0c81c5fb8
Removed redundant strtolower()
...
Removed the redundant strtolower on line 43 in the private function get_file_name_from_class() which is only called from line 66 using a $class variable that is just strtolower()ed on line 65
2015-06-21 23:44:47 +02:00
Justin Shreve
fcab013d53
$enc_type for http_build_query() is only available in PHP 5.4+
...
go back to a normalization approach
2015-06-19 23:03:45 +00:00
Claudio Sanches
80e8bd94ad
Escape return to shop url
2015-06-19 17:29:37 -03:00
Justin Shreve
482303c0f9
Don't convert nested parameters to strings.
...
Switch to the native http_build_query instead of our own normalize function.
2015-06-19 16:11:17 +00:00
Justin Shreve
59bc17e0cb
Check before building the current URL to see if a trailing slash should be appended or not, that way if a request includes one, the signature still matches.
2015-06-19 16:05:23 +00:00
Justin Shreve
c43f9157c3
When generating the signature to compare, append a trailing &.
...
The OAuth spec (http://tools.ietf.org/html/rfc5849#section-3.4.2 ) states that a & character must be present, even if a token secret is not a part of the request.
2015-06-19 15:05:51 +00:00
Nicola Mustone
c7e1540dea
added filters for emails placeholders
2015-06-19 17:01:37 +02:00
Justin Shreve
0a9d00bab6
Update the version number check for test_get_woocommerce_api_url
2015-06-19 13:42:10 +00:00
Justin Shreve
9e2f0f55d8
Remove reauth endpoint. It's not going to work the way we want it to. If clients need to log out (like a browser), they can clear the sessions per browser. Also returns JSON error when auth is not returned correctly.
2015-06-19 13:42:10 +00:00
Justin Shreve
8da19e4dae
Provide some directions in the Basic auth input box so the user knows where to provide the API key and secret.
2015-06-19 13:42:10 +00:00
Justin Shreve
d63f7d014f
Implement basic auth improvements and query string fall back.
...
If the key and secret query strings are provided, do auth based on those. If not, and the Basic auth headers are set, do full basic auth (including sending the correct headers).
Also implements a /reauth endpoint for basic auth.
2015-06-19 13:42:10 +00:00
Justin Shreve
ade8db4f21
Load v2 files when v2 of the API is requested. Add rewrite support for v3 and load the 'default' API files for those requests.
2015-06-19 13:42:10 +00:00
Justin Shreve
c9a2611d33
Version off the current api files into a v2 folder.
2015-06-19 13:42:10 +00:00
Mike Jolley
1e5d508675
woocommerce_removed_coupon
...
since the other action is ‘woocommerce_applied_coupon’ Closes #8404
2015-06-19 13:50:59 +01:00
Mike Jolley
a8f88ec8d7
Merge pull request #8409 from justinshreve/prevent-duplicate-location-code-notice
...
Prevent duplicate key name 'location_type_code' MySQL error
2015-06-19 13:45:35 +01:00
Mike Jolley
5381dddff9
Merge remote-tracking branch 'origin/master'
2015-06-19 13:43:34 +01:00
Mike Jolley
f5693309e2
Merge branch 'pr/8408'
2015-06-19 13:43:27 +01:00