Chris Marslender
af7ac97622
Allow filtering the final args for an order API request, and filter to on-hold and processing statuses
2017-11-06 09:48:50 -07:00
Chris Marslender
54c7165e16
Only add the network order widget/register the route when multisite is active
2017-11-06 09:30:44 -07:00
Chris Marslender
59152d40be
Merge branch 'master' into feature/network-order-widget
2017-11-06 09:27:23 -07:00
Claudio Sanches
6e9ad75be5
Category image is a single object
2017-10-25 20:41:31 -02:00
Claudio Sanches
4b90c12db1
Fixed coding standards.
...
Still missing fix the file name, but I'll leave it for 3.3
2017-10-25 20:40:44 -02:00
Claudio Sanches
e7508c2c54
[REST API] Fixed date_on_sale_to_gmt description on products endpoint
2017-10-25 14:06:50 -02:00
Claudio Sanches
c17fbf53b4
Fixed coding standards
2017-10-25 14:06:13 -02:00
Chris Marslender
05f486ee59
very basic implementation of REST API Based network order fetching for dashboard widget
2017-10-24 19:51:55 -07:00
Gerhard Potgieter
054c4a1100
Merge pull request #17203 from hisman/fix/17043
...
Show theme overrides that are done through the wc_get_template filter in WooCommerce > Status
2017-10-24 06:02:48 -07:00
Farhad Sakhaei
5062831b50
spelling
...
spelling
2017-10-23 13:44:44 +03:30
Claudio Sanches
c739c80817
[REST API] Fixed variations 'visible' description in schema
...
Fixes #17249
2017-10-17 14:22:56 -02:00
Claudio Sanches
4bec8f9df5
Fixed coding standards
2017-10-17 14:22:30 -02:00
Hisman
78c15569a7
Show theme overrides that are done through the wc_get_template filter in WooCommerce > Status
...
Fixes #17043
Call the wc_get_template filter on each template and show the file if it exists.
2017-10-14 00:07:38 +07:00
Mike Jolley
840da4f0c8
Use edit context when updating prices in the API
...
Fixes #17125
2017-10-13 16:37:38 +01:00
victorfreitas
e40ae14d2e
Improving the code comment
2017-10-03 12:28:05 -03:00
victorfreitas
c72c2f06b8
Save postmeta attachment image reference on import of products via API rest.
2017-10-03 10:17:09 -03:00
Claudio Sanches
ab1b100a36
[REST API] Return empty result when there is no on_sale products
...
This forces return an empty array as result when using `on_sale=true`.
By default `WP_Query` will return all results when `post__in` is equal
to `array()`, so changing to `array( 0 )` will force the expected
behavior.
Closes #16933
2017-09-26 14:02:33 -03:00
claudiulodro
2e4b514a7f
Modify product API returned data by context
2017-09-22 10:52:30 -07:00
claudiulodro
133b664cc3
Only set prices if set in request
2017-09-17 11:44:00 -07:00
Mike Jolley
b0cb64b93d
API - use current scheme
...
This caused issues for me locally forcing http to test requests. Ok to
change @claudiosanches ?
2017-09-07 15:32:29 +01:00
Mike Jolley
5c5a8f4e8e
Helper functions
2017-09-05 11:54:04 +01:00
claudiulodro
8c523ee0b9
Remove featured image on empty image array
2017-09-01 11:14:48 -07:00
Mike Jolley
91f1f63100
Code standards
2017-09-01 11:02:11 +01:00
james
1820c6a99d
Fix Issue #16663 . Moved meta creation to `prepare_object_for_database`.
2017-08-31 18:17:14 +01:00
james
ce39e3aaa8
Fix Issue #16663 .
2017-08-31 14:01:24 +01:00
Josh Smith
868a0e0e84
Merge remote-tracking branch 'upstream/master'
2017-08-23 02:33:01 +00:00
Claudio Sanches
02a7f4d5ab
Merge pull request #16561 from woocommerce/fix/16557
...
API v1 should create v1 webhooks
2017-08-22 15:19:16 -03:00
Mike Jolley
0bad6b3e52
add_db_table_prefix method for 5.2 support
2017-08-22 13:51:50 +01:00
Mike Jolley
2a5a47016f
API v1 should create v1 webhooks
...
Fixes #16557
2017-08-22 10:40:35 +01:00
Josh Smith
413444c616
Merge remote-tracking branch 'upstream/master'
2017-08-20 04:09:17 +00:00
Mike Jolley
36f5827bc0
Merge pull request #16351 from pmgarman/feature-system-status-site-size-data
...
Add “site size” areas to system status report
2017-08-18 17:49:12 +01:00
Patrick Garman
f19a63e1d7
Merge the DB and DB Table Size tables
2017-08-15 19:52:14 -05:00
Mike Jolley
3852ce59c8
Tool to purge webhooks
2017-08-15 12:15:17 +01:00
Mike Jolley
a44a57b5d9
Improve tools page styling
2017-08-15 12:05:34 +01:00
Josh Smith
6dadaa0f7f
Merge remote-tracking branch 'upstream/master'
2017-08-11 16:29:16 +00:00
Claudio Sanches
3f12fd1b01
Fixed missing hooks in legacy REST API
2017-08-10 18:57:31 -03:00
Claudio Sanches
40cb0e2e95
Trigger only customer.created webhook
2017-08-10 18:57:13 -03:00
Josh Smith
d8b6b2042a
Merge remote-tracking branch 'upstream/master'
2017-08-08 21:20:35 +00:00
Claudio Sanches
1a9b499be8
Apply attribute helper functions to importers and REST API
2017-08-07 22:34:25 -03:00
Patrick Garman
1314158a14
Add “site size” areas to system status report
...
The size of the site very much impacts the status of the site. This type of information would be extremely helpful when supporting a site.
1) post counts - can reveal high volumes of specific kinds of post types both within WC (orders, products, etc) or outside (revisions, attachments, third party ones, etc)
2) table sizes - a site with a 5MB postmeta table is very different than a site with a 5GB postmeta table, which is different than a site with a 50GB postmeta table, and require different kinds of support and focus.
2017-08-06 01:15:10 -04:00
Josh Smith
644ac674d7
[ #12517 ] Replace download_id on customer download and product download with static UUID instead of filename based hash, to preserve download links, logs, and permissions across filename changes
2017-08-05 04:42:31 +00:00
Jaydeep Rami
46d3638089
Fix missing return statement ( #16148 )
...
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
2017-07-20 18:01:14 +01:00
Jaydeep Rami
3522857d23
Fix typo in WooCommerce plugin ( #16135 )
...
* Fixed typo
* Fixed more typo
* Fixed more typo
* Fix tyop
* Fix more typo
* Fix more typo
* Fix typo
* Fix typo
* Fix typo
* Fix typo datatime object
* Fix short name of compat
* Fix typo: update short name
* Fix typo "deactive" to "deactivate" and short BW - Compat
* Fix typo "Backwards compat"
* Fix typo 'parameters'
* Fix more typo 'pararmeters'
* Fix typo 'compund'
* FIx typo order
* Fix typo
* Fix typo 'incorrecly'
* Fix typo 'genarate'
* Fix typo 'reletive'
* Fix typo 'Handly'
* Fix typo 'rotatated'
* Fix typo
* Fix typo 'additonal'
* Fix typos
2017-07-17 11:10:52 +01:00
Mike Jolley
62a3554c22
Merge pull request #16114 from woocommerce/fix/rest-api-options
...
[REST API] Allow OPTIONS requests again
2017-07-17 11:08:48 +01:00
Claudio Sanches
eb4caec13e
Applies wc_delete_order_note() and properly delete notes by AJAX
2017-07-13 19:38:37 -03:00
Claudio Sanches
f37e066d97
[REST API] Allow OPTIONS requests again
2017-07-13 15:19:17 -03:00
Jason Conroy
0d91f008ac
Add terms and conditions to page to api pages property
2017-07-13 16:26:20 +10:00
Claudio Sanches
4262e83187
[REST API] Check if is a valid instance of WC_Product before load data
...
Closes #16072
2017-07-11 12:27:56 -03:00
Daniel Rey Lopez
04a83b0faa
Change the "Rest of the World" zone name to "Locations not covered by your other zones" everywhere
2017-07-11 08:19:42 +01:00
Akeda Bagus
53807185a8
Fixed typos.
...
These typos are catched by `misspell` program.
```
find . -type f | grep -v assets | grep -v dummy-data | grep -v i18n | grep -v node_modules | grep -v .git | grep -v apigen | xargs misspell -w
```
Some results were excluded because of 3rd party ownership and non-english
sentences.
2017-07-10 12:56:28 +07:00
Claudio Sanches
78a6585f19
[REST API] Allow unset product shipping_class
...
Closes #15960
2017-07-04 14:01:17 -03:00
claudiulodro
587dc56d9a
Formatting
2017-06-29 11:16:26 -07:00
claudiulodro
2948e46cb4
Add tool for adding address indexes.
2017-06-29 11:14:09 -07:00
Mike Jolley
afcfb4eb35
Only set default if no value is set in API settings
2017-06-27 15:29:31 +01:00
Job
8b48accc01
Upsell/up-sell
...
We had a few different usages of up-sells and upsells in the copy -
“Upsells” were used more and also seems to be more correct English so
I’ve updated the “up-sells”
2017-06-15 15:56:01 +02:00
Claudio Sanches
4dcb61e098
Fixed a typo
2017-06-12 13:59:47 -03:00
Claudio Sanches
43d28372b9
[REST API] Allow set grouped_products
...
Fixes #15559
2017-06-12 13:34:39 -03:00
claudiulodro
4515e5fca9
Fix undefined/incorrectly used variables
2017-06-09 14:10:55 -07:00
Claudio Sanches
2523490f9f
[REST API] Fixed oAuth1.0a to allow multi-dimensional arrays
...
Fixes #15395
Closes #15396
2017-06-06 17:05:03 -03:00
Claudio Sanches
6c29d32396
Merge pull request #15446 from woocommerce/fix/15437-15443
...
Notice fixes in API and meta handling class
2017-06-05 15:00:48 -03:00
Mike Jolley
1e8e40565d
Avoid deprecated ID in API. Fixes #15437
2017-06-05 10:45:10 +01:00
Jonathan Belcher
66736e69f7
Fix incorrect documentation
2017-06-02 12:58:16 -04:00
Mike Jolley
4b74f304b0
Gallery should be updated even if empty.
...
Fixes #15240
2017-05-24 17:23:28 +01:00
Mike Jolley
35536b8ace
Merge pull request #14576 from Chouby/tools_message
...
Add custom message for custom system status tools
2017-05-23 19:22:47 +01:00
Mike Jolley
c16acc6b51
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
2017-05-23 19:00:24 +01:00
Mike Jolley
d3666738d8
Merge branch 'pr/15069'
2017-05-23 18:56:58 +01:00
Mike Jolley
00e5189a05
Merge pull request #15070 from rasmusbe/phpdoc-missing-return-throws
...
Phpdoc: Add missing return and throws
2017-05-23 18:50:58 +01:00
Claudiu Lodromanean
58189cb4b5
Merge pull request #15208 from woocommerce/fix/15203
...
Missing variable in legacy API
2017-05-22 13:10:28 -07:00
Mike Jolley
8cba7db7cd
Prevent zone 0 name being changed
2017-05-22 15:19:04 +01:00
Mike Jolley
a826b363d8
Prevent zone 0 locations being changed
2017-05-22 15:18:55 +01:00
Mike Jolley
d1b49888f2
Missing variable in legacy API
...
Fixes #15203
2017-05-22 13:25:33 +01:00
Justin Shreve
0c5588aac7
Makes sure that the 'base location' setting is returned to the /settings/general endpoint correctly. It uses a special setting type that the API didn't handle properly.
2017-05-15 10:21:06 -07:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Mike Jolley
31651e41cb
Merge pull request #15063 from rasmusbe/unused-vars
...
Remove unused local variables
2017-05-15 12:45:54 +01:00
Rasmus Bengtsson
4a3902cd48
PHPDoc: Add missing throws statement
2017-05-15 13:39:03 +02:00
Rasmus Bengtsson
4f00d7e5e3
PHPDoc: Add missing return statement
2017-05-15 13:37:59 +02:00
Rasmus Bengtsson
6a7fc8650f
Remove unused local variables
2017-05-15 12:06:52 +02:00
Rasmus Bengtsson
51fd482206
Remove duplicate entries from defined arrays
2017-05-15 10:48:02 +02:00
Mike Jolley
6797b2229d
Ensure get_plugin_updates exists
...
Fixes #14978
2017-05-12 10:56:43 +01:00
Claudio Sanches
7ba011a3b8
Properly save order items in legacy REST API
...
Closes #14917
2017-05-08 12:37:33 -03:00
Claudio Sanches
abfedafd46
Merge pull request #14842 from woocommerce/fix/14799
...
Get outdated plugins using get_plugin_updates()
2017-05-03 18:42:17 -03:00
Claudio Sanches
7b5d56c643
[REST API] Adds missing "id" in shipping zone methods endpoint
...
This missing "id" will break CLI.
Added as duplicated with `instance_id` to keep backwards compatibility.
Fixes #14831
2017-05-02 20:37:03 -03:00
Claudio Sanches
9ae846ccad
Get outdated plugins using get_plugin_updates()
...
plugins_api() does a query for each plugin in api.wordpress.org that can takes 15 seconds, what is bad when have a lot of installed plugins and causing "gateway timeout" issues in System Status page.
get_plugin_updates() have already all available updates saved in cache.
Fixes #14799
2017-05-02 19:04:26 -03:00
Mike Jolley
4b0fff3437
Fix zone routes in CLI
...
Fixes #14750
2017-04-28 15:49:51 +01:00
Claudio Sanches
c58a6f42e3
Merge pull request #14604 from cristiangrama/fix-filter-guest-orders
...
Fetch only guest orders: Allow passing a `customer=0` filter on the order request
2017-04-27 14:04:19 -03:00
Mike Jolley
aacb01d1e7
Merge branch 'pr/13503'
...
# Conflicts:
# assets/css/twenty-seventeen.css
# assets/css/woocommerce-layout.css
# assets/css/woocommerce-layout.scss
# assets/css/woocommerce.css
2017-04-27 12:46:05 +01:00
Claudio Sanches
2d9e876e6d
Removed deprecated WC_Order_Item_Meta from REST API v1
2017-04-24 20:55:09 -03:00
cristiangrama
216375f6ea
Allow passing a `customer=0` for fetching all guest orders
2017-04-21 10:43:09 -05:00
Frédéric Demarle
928d157ba7
Add custom message for custom system status tools
2017-04-20 18:25:19 +02:00
Mike Jolley
f8781b9552
Decrease paypal request timeout so failed requests to not take too long
...
Closes #14546
2017-04-20 15:45:52 +01:00
Claudio Sanches
60b3e3c123
[REST API] Fixed v1 order shipping taxes
...
Fixes #14518
2017-04-20 00:37:27 -03:00
Mike Jolley
be96e8c8a1
Merge pull request #14506 from woocommerce/fix/14496
...
Prevent nonce check outside admin when calculating for reports
2017-04-19 15:05:31 +01:00
Claudio Sanches
f318ce935c
[REST API] Fixed ignored parameters when changing status
...
Prevent override saved data when updating order status.
Fixes #14359
2017-04-18 21:15:24 -03:00
Claudio Sanches
2da71bd7fb
Prevent nonce check outside admin when calculating for reports
...
Fix all REST API reports endpoints.
Fixes #14496
2017-04-18 20:33:25 -03:00
Claudio Sanches
81dcd6e79e
Fixed docblocks in REST API v1 for #14416
2017-04-18 13:40:10 -03:00
Tim Elsass
02de1cc60b
Fixing grammar error in msg fixes #14319
2017-04-12 17:03:39 -04:00
Mike Jolley
d81493cc52
Merge pull request #14229 from woocommerce/fix/14184
...
[REST API] Fixed line_items meta type to array on legacy REST API
2017-04-11 10:32:17 +01:00
Claudio Sanches
4a5a93f629
Merge pull request #14107 from woocommerce/fix/rest-api-legacy-v3-variations
...
[REST API] Fixed missing $variations variable in legacy v3
2017-04-10 20:19:43 -03:00
Claudio Sanches
5c92f9141b
[REST API] Fixed line_items meta type to array on legacy REST API
...
Closes #14184
2017-04-10 19:57:35 -03:00
Mike Jolley
7d5efe4b78
Add product visibility terms to system status report to help debug
...
Closes #14147
2017-04-10 15:51:14 +01:00
Mike Jolley
84c96046f0
Check objects are not false/null
2017-04-07 16:01:51 +01:00
Claudio Sanches
8de0bb0a46
[REST API] Fixed missing $variations variable in legacy v3
2017-04-07 10:31:28 -03:00
Claudio Sanches
fc9ba64e50
Properly format variation description in REST API v2
2017-04-06 13:02:51 -03:00
Claudio Sanches
f3156fb5f4
Merge pull request #13981 from woocommerce/fix/13936
...
[REST API] Fixed attributes while trying to save variations
2017-04-06 11:38:23 -03:00
Mike Jolley
eea6867ac9
Allow variation image to be unset
...
@claudiosanches is this correct way?
Fixes #14008
2017-04-06 10:41:09 +01:00
Claudio Sanches
4bb2c070ae
Merge pull request #13900 from woocommerce/fix/rest-api-remove-extra-taxes-params
...
[REST API] Removed extra taxes params.
2017-04-05 21:18:09 -03:00
Claudio Sanches
87199d0627
[REST API] Fixed attributes while trying to save variations
...
Closes #13936
2017-04-05 17:03:05 -03:00
Claudio Sanches
67274e8c2c
Make sure that ID exists
2017-04-05 14:23:50 -03:00
Mike Jolley
811d59feec
Fallback to home URL if no shop page is set for system status security check.
...
Fixes #13921
2017-04-05 10:03:41 +01:00
Claudio Sanches
c88941a424
Removed extra taxes params.
...
Search, include and exclude are not handled by the REST API.
2017-04-04 14:54:01 -03:00
Mike Jolley
31cd2dcb90
Merge pull request #13853 from woocommerce/crud-security-hardening
...
CRUD security/hardening
2017-04-03 11:09:38 +01:00
Mike Jolley
da86e02331
Merge pull request #13872 from woocommerce/fix/missing-rest-api-v2-webhooks-settings
...
Include missing REST API v2 from webhooks options.
2017-04-03 09:51:31 +01:00
Claudio Sanches
984edf07d2
Missing period
2017-04-02 03:27:58 -03:00
Claudio Sanches
5b51b915f6
Fixed a typo
2017-04-02 03:24:52 -03:00
Claudio Sanches
4922e17876
Include missing REST API v2 from webhooks options.
2017-04-02 03:07:09 -03:00
Mike Jolley
14802a0307
Remove double unserialization
2017-03-31 12:10:20 +01:00
Claudio Sanches
be8036869e
[REST API] Ignore 0 category while querying products
2017-03-30 13:43:59 -03:00
Claudio Sanches
afccb22f58
[REST API] Fixed all products v1 query parameters
2017-03-28 14:44:11 -03:00
Claudio Sanches
54c353d67f
[REST API] Fixed taxonomies query arguments.
...
Fixed the follow error:
PHP Warning: explode() expects parameter 2 to be string, array given in
includes/api/v1/class-wc-rest-products-controller.php on line 156
Error caused since terms are sanitized by wp_parse_id_list() that
already creates an array.
Closes #13790
2017-03-28 14:34:41 -03:00
Mike Jolley
ca8fafdd36
Hide enabled/description
2017-03-24 13:27:47 +00:00
Mike Jolley
53a7d54253
Update settings once
2017-03-24 13:22:09 +00:00
Mike Jolley
8b4ce8460a
Merge pull request #13757 from woocommerce/fix/rest-api/shipping-zones-methods-schema
...
[REST API] Properly handle required items of shipping zone methods
2017-03-24 10:39:23 +00:00
Mike Jolley
9af295d618
Merge pull request #13753 from woocommerce/fix/rest-api-shipping-zones-schema
...
[REST API] Fixed shipping zones schema
2017-03-24 10:38:51 +00:00
Mike Jolley
a9f3f9b82c
Merge pull request #13758 from woocommerce/fix/rest-api-system-status-schema
...
[REST API] System status schema fixes
2017-03-24 10:34:11 +00:00
Mike Jolley
af8e892f97
Merge pull request #13759 from woocommerce/fix/rest-api-settings-links
...
[REST API] Fixed links of settings endpoint
2017-03-24 10:33:16 +00:00
Mike Jolley
803786ceeb
Merge pull request #13755 from woocommerce/fix/shipping-zone-locations-schema
...
[REST API] Fixed shipping zone locations schema
2017-03-24 10:27:52 +00:00
Mike Jolley
285a49b7e0
Merge pull request #13747 from woocommerce/fix/rest-api-settings-schema
...
[REST API] Fixed settings schema.
2017-03-24 10:26:59 +00:00
Claudio Sanches
7381b008e0
[REST API] Fixed links for settings endpoint
...
Do not allow embed and updated the key to reflect the items from the endpoint response
2017-03-24 01:56:50 -03:00
Claudio Sanches
00b9f636a8
Fixed description of items in system status schema
2017-03-24 00:48:41 -03:00
Claudio Sanches
bfbd45cf85
[REST API] System status schema items are all view context only
2017-03-24 00:43:46 -03:00
Claudio Sanches
5cc246b5cb
[REST API] All items from system status endpoint should be readonly
2017-03-24 00:41:39 -03:00
Claudio Sanches
3ca1d946d9
[REST API] Properly handle required items of shipping zone methods
2017-03-23 22:19:16 -03:00
Claudio Sanches
7a671ab8a5
[REST API] Fixed shipping zone locations schema
...
This also fix improper sanitization and validation of the items.
2017-03-23 21:44:46 -03:00
Claudio Sanches
8f3f313eff
Fixed coding standards
2017-03-23 20:56:02 -03:00
Claudio Sanches
85494e5d86
[REST API] Fixed shipping zones schema
...
"name" is only required while creating a new zone.
"order" do request to define "required" and is already sanitized by
"integer" type.
2017-03-23 20:51:21 -03:00
Claudio Sanches
b1023c23c6
Fixed setting options endpoint tests
2017-03-23 20:45:22 -03:00
Claudio Sanches
c24882f5d2
Apply change on rest_base to WC_REST_Setting_Options_Controller methods
2017-03-23 20:05:19 -03:00
Claudio Sanches
fb80482d73
Fixed rest_base
2017-03-23 19:56:56 -03:00
Claudio Sanches
0a7076744e
[REST API] Fixed settings/options rest_base
2017-03-23 19:52:35 -03:00
Claudio Sanches
39e1fd9fc3
Merge pull request #13745 from woocommerce/fix/rest-api-name-convention
...
[REST API] Fixed file name convention
2017-03-23 19:50:51 -03:00
Claudio Sanches
94cb95c000
Merge pull request #13746 from woocommerce/fix/rest-api-shipping-methods-schema
...
[REST API] All items in shipping_methods endpoint are readonly
2017-03-23 19:50:39 -03:00
Claudio Sanches
e33235ebf3
[REST API] Fixed settings schema.
...
Included context and readonly for all items.
And removed sanitize_callback used only in write context
2017-03-23 18:15:30 -03:00
Claudio Sanches
f65cbdbfa4
[REST API] All items in shipping_methods endpoint are readonly
2017-03-23 17:59:50 -03:00
Claudio Sanches
44319e20f7
[REST API] Fixed file name convention
2017-03-23 17:48:37 -03:00
Claudio Sanches
b8faa2197c
[REST API] Fixed default_attributes in legacy REST API
2017-03-23 17:23:12 -03:00
Claudio Sanches
8371882002
[REST API] Fixed a minor bug that prevents saving default_attributes
2017-03-23 17:19:07 -03:00
Mike Jolley
8a9e55ed33
Merge pull request #13730 from woocommerce/rest-api-fix-variations-image-object
...
[REST API] Handle variation image as object and not array
2017-03-23 11:05:17 +00:00
Mike Jolley
b334af4544
Merge pull request #13732 from woocommerce/rest-api-fix-context
...
[REST API] Fixed context from items in schema
2017-03-23 11:04:50 +00:00
Claudio Sanches
6bc29aa77f
[REST API] Removed deprecated download_type from products v2
2017-03-23 02:32:47 -03:00
Claudio Sanches
1072bea460
[REST API] Fixed variations context for products v2
2017-03-23 02:29:06 -03:00