Mike Jolley
7405053a6a
Add exceptions
2016-08-26 12:33:33 +01:00
Mike Jolley
48243109c0
This is ran on set
2016-08-26 12:23:53 +01:00
Mike Jolley
c6d0d059fd
Remove typecasts on get
2016-08-26 12:22:05 +01:00
Mike Jolley
4cf54e445b
Merge pull request #11777 from leewillis77/feature/wc_attribute_label_optimisation
...
Use wc_get_attribute_taxonomies() in wc_attribute_label()
2016-08-26 11:27:06 +01:00
Mike Jolley
6b6c856cc7
Filter the template path
...
Closes #11774
2016-08-26 11:03:08 +01:00
Mike Jolley
f5cc89eec2
Merge pull request #11762 from woothemes/WC_Data_Exception
...
WC Data Exceptions
2016-08-26 10:57:41 +01:00
Mike Jolley
bd2e8ce0cc
Remove returns
2016-08-26 10:54:18 +01:00
Mike Jolley
9bd57414c5
Remove set and get prop - no longer need the extra overhead since functions won't return wp_error now.
2016-08-26 10:48:17 +01:00
Justin Shreve
147c18c197
Add the ability to update/create/delete shipping method instances
2016-08-25 20:34:26 -07:00
Justin Shreve
3ceb189118
Add GET /shipping_methods and GET /shipping_methods/METHOD_ID
...
Also adds tests.
2016-08-25 11:48:17 -07:00
Lee Willis
9a1aa1fd93
Use get_the_terms instead of wp_get_post_terms to take advantage of caching
2016-08-25 18:26:37 +01:00
Mike Jolley
461ec4da16
Return false instead of throwing exception
2016-08-25 17:48:36 +01:00
Mike Jolley
627b08ba37
Test coverage
2016-08-25 17:42:47 +01:00
Lee Willis
e3d5419b97
Use wc_get_attribute_taxonomies() in wc_attribute_label()
...
Currently wc_attribute_label() runs a SQL query every time it is called,
with no caching. Swap to using wc_get_attribute_taxonomies() which gives
us transient caching of the underlying data.
2016-08-25 17:34:18 +01:00
Mike Jolley
658970cbc8
No string required here
2016-08-25 17:12:32 +01:00
Mike Jolley
885231baba
yoda
2016-08-25 17:10:59 +01:00
Mike Jolley
4ea396aab1
When deleting a tax rate class, remove its rates
...
Closes #11759
2016-08-25 15:58:30 +01:00
Mike Jolley
1e037684eb
[2.6] Rest of the world ID 0 zone handling
...
Fixes #11688 Using NULL rather than 0 as default so rest of the world
can be treated different to a new zone. Prevents dupes.
2016-08-25 15:41:47 +01:00
Mike Jolley
1f1868195b
Write context error
2016-08-25 14:32:28 +01:00
Mike Jolley
b4e05154d7
Error handling for adding items
2016-08-25 14:22:27 +01:00
Mike Jolley
7f87800d8d
Fix save order item function
2016-08-25 13:50:37 +01:00
Mike Jolley
3637814b92
Revert use of default_data for default args and just set that in constructor
2016-08-25 13:31:03 +01:00
Mike Jolley
25883f8687
Set_props helper to load data from DB and handle errors
2016-08-25 13:05:27 +01:00
Mike Jolley
077f57f139
Merge branch 'master' into WC_Data_Exception
2016-08-25 11:03:14 +01:00
Mike Jolley
d936dfa87e
[2.6] Allow has_shipping_method to deal with instance ids
...
Fixes #11772
2016-08-25 10:58:11 +01:00
Mike Jolley
3c13ce6fcd
[2.6] Handle object when generate_cart_id is used.
...
Closes #11767
2016-08-25 10:58:11 +01:00
Mike Jolley
2d30e8469f
Merge pull request #11768 from WPprodigy/recently-viewed-widget-sorting
...
Sort “Recently Viewed” products by the view order
2016-08-25 10:48:07 +01:00
Mike Jolley
aa0078de8f
Merge pull request #11769 from WPprodigy/nav-menus-metabox
...
Nav menus metabox
2016-08-25 10:47:40 +01:00
Mike Jolley
543fc31d81
Fix filter and unit test
...
#11771
2016-08-25 10:45:50 +01:00
Mike Jolley
95db2f26cd
Set meta to 'null' to delete it during save.
...
Fixes #11771
2016-08-25 10:32:42 +01:00
Caleb Burks
a3524c95f3
Filter instead of action
2016-08-24 18:26:14 -05:00
Caleb Burks
dc876749cc
Rename taxonomies at Appearance > Menus > Pages
2016-08-24 18:22:47 -05:00
Caleb Burks
306e1dfa39
Sort “Recently Viewed” products by the view order
...
orderby ‘post__in’, and reverse the array so the most recently viewed product shows up on top.
2016-08-24 17:46:23 -05:00
Claudio Sanches
d4d1a95f21
Merge pull request #11765 from woothemes/system-status-tools-options
...
Remove checkbox options in system status tools
2016-08-24 14:19:19 -03:00
Claudio Sanches
16e386c873
Merge pull request #11757 from woothemes/get-coupon-code-by-id
...
Get coupon code by
2016-08-24 14:18:23 -03:00
Mike Jolley
0667c1cde1
Remove option based tools
2016-08-24 17:35:13 +01:00
Mike Jolley
84487d0f4b
Shipping debug mode moved to shipping settings
2016-08-24 16:55:34 +01:00
Mike Jolley
2dc3e5252f
Made WC_TEMPLATE_DEBUG_MODE a constant only
2016-08-24 16:46:07 +01:00
Mike Jolley
26c4b3ce13
Delete if qty = 0
2016-08-24 16:09:39 +01:00
Mike Jolley
a8dc46cfdf
Default line item data
2016-08-24 16:06:35 +01:00
Mike Jolley
938361535f
Exception handling
2016-08-24 16:02:19 +01:00
Mike Jolley
cde78abed3
Working on catching errors
2016-08-24 15:26:35 +01:00
Mike Jolley
d9798f7226
Set reading to prevent exceptions during DB load
2016-08-24 14:37:19 +01:00
Mike Jolley
7e30e8dda3
Set defaults and handle order reads without exceptions
2016-08-24 12:34:19 +01:00
Mike Jolley
53f01b52a8
Bring back WC_Data_Exception
2016-08-24 10:46:29 +01:00
Mike Jolley
c839944d46
Revert "Remove exception class"
...
This reverts commit 7c271e5dc5
.
2016-08-24 10:20:58 +01:00
Claudio Sanches
c8726cc42b
Fixed method return value in write context
...
cc @justinshreve
2016-08-24 01:50:12 -03:00
Claudio Sanches
3633960165
Removed dead global variables
2016-08-23 20:02:38 -03:00
Claudio Sanches
00b2e43250
DRY
2016-08-23 20:00:30 -03:00
Claudio Sanches
4513e33031
Introduces the wc_get_coupon_code_by_id() function
2016-08-23 19:52:14 -03:00
Claudio Sanches
5e069a4f4e
Merge pull request #11756 from woothemes/update/coupon-api-crud
...
Update Coupon API to use CRUD
2016-08-23 19:51:27 -03:00
Justin Shreve
77088a4a22
Coupon ID will also be an integer, so we can switch the prepare statement to expect that
2016-08-23 13:55:21 -07:00
Mike Jolley
b727acd96e
Implement get and set prop methods
2016-08-23 18:48:48 +01:00
Mike Jolley
e08e5a816d
2d array handling
2016-08-23 15:49:34 +01:00
Mike Jolley
2636d04ba6
Setters
2016-08-23 15:25:50 +01:00
Mike Jolley
b1bd1c2227
Fee
2016-08-23 15:02:57 +01:00
Mike Jolley
3e3e35d50d
Add set prop/get prop helper, error handler, and validation to item product class
2016-08-23 14:58:44 +01:00
opportus
9001f094ff
improved structured data - branch update
2016-08-23 15:49:20 +02:00
opportus
713adf2439
improved structured data - disable variable offers for looped products
2016-08-23 15:44:46 +02:00
Mike Jolley
7c271e5dc5
Remove exception class
2016-08-23 13:43:35 +01:00
Mike Jolley
74c96e305b
Error method
2016-08-23 13:43:26 +01:00
Mike Jolley
aa5fee3372
Merge pull request #11752 from corsonr/issue_11751
...
Fix issue 11751
2016-08-23 10:35:21 +01:00
corsonr
f430c23cdc
fix issue 11751
2016-08-23 11:16:38 +02:00
Multidots
41d079f086
Fixes add reply-to to admin emails ref #11630
2016-08-23 13:09:27 +05:30
Multidots
c7fc7cce07
Merge branch 'master' of https://github.com/nishitlangaliya/woocommerce
2016-08-23 12:41:22 +05:30
Claudio Sanches
2407a880f7
Updated the default colors for emails to match the Woo Style Guide
...
Closes #11748
cc @jameskoster
2016-08-22 20:59:56 -03:00
Justin Shreve
a243829db6
Convert Coupon Controller to use CRUD operations
2016-08-22 15:06:21 -07:00
Justin Shreve
7da590e422
Coupon Tests:
...
* Move tests for legacy endpoints to a legacy test folder.
* Create a test class to test the WC-API coupons endpoint.
2016-08-22 13:50:32 -07:00
Claudio Sanches
eb55096a32
Allow oAuth1.0a authentication using headers
2016-08-22 17:39:41 -03:00
Claudio Sanches
7a0c5bc19b
REST API expect meta data ID as an integer value
...
cc @mikejolley
2016-08-22 16:59:03 -03:00
Claudio Sanches
38e1be71eb
ID first for all elements in the REST API
...
cc @mikejolley
2016-08-22 16:58:34 -03:00
Claudio Sanches
0da91bb7d7
Merge pull request #11746 from woothemes/crud-meta-id
...
Swaps meta_id for id across crud and api
2016-08-22 16:43:57 -03:00
Mike Jolley
f34f1aa635
Simplify prepare_line_items logic
2016-08-22 19:58:30 +01:00
Mike Jolley
39f4a1cdca
Swaps meta_id for id across crud and api
2016-08-22 19:37:34 +01:00
Mike Jolley
169780d31b
woocommerce-message--success
...
Followed
https://github.com/woothemes/woocommerce/wiki/CSS-SASS-coding-guidelines
-and-naming-conventions
Closes #11722
2016-08-22 18:41:38 +01:00
Mike Jolley
2cea613566
Fix shipping meta save
...
#11601
2016-08-22 18:07:52 +01:00
Mike Jolley
a8e47992a6
Put back add_product for convenience. Fix unit tests.
2016-08-22 18:00:52 +01:00
Mike Jolley
3d696266d2
Set_address
2016-08-22 17:03:59 +01:00
Mike Jolley
7cf75f5085
Remove use of deprecated functions
2016-08-22 16:57:54 +01:00
Mike Jolley
95b11606fc
get_product_from_item -> get_product
2016-08-22 16:51:24 +01:00
Mike Jolley
c88984eb0e
Replace add methods
2016-08-22 16:48:19 +01:00
Mike Jolley
e079895c08
Set rate in one go for tax rate items
2016-08-22 14:52:03 +01:00
Mike Jolley
fc2e039882
Deprecate add_product etc
...
#11601
2016-08-22 14:51:53 +01:00
Mike Jolley
09e43cf797
read only refunded by
2016-08-22 13:15:15 +01:00
Mike Jolley
fdd7e797ba
API get refunds
2016-08-22 13:15:15 +01:00
Mike Jolley
9e45927803
Create refund with crud
2016-08-22 13:15:15 +01:00
Mike Jolley
7eb9720fde
Merge pull request #11737 from thii/add/paypal-here-txn-type
...
Add PayPal Here as a valid transaction type
2016-08-22 09:50:29 +01:00
Mike Jolley
698c84827d
Merge pull request #11717 from woothemes/improve-configure-terms
...
Change "Configure terms" into a link
2016-08-22 09:49:27 +01:00
Mike Jolley
9558c9e99a
Merge pull request #11730 from woothemes/improve-log-viewer
...
Removed internal scroll from log viewer
2016-08-22 09:48:55 +01:00
nishit.langaliya
94ed2fd96d
Fixes: Add reply-to to admin emails ref #11630
2016-08-22 11:42:21 +05:30
Claudio Sanches
8fe4c14e78
[REST API] Fixed customer last order data
2016-08-20 14:29:48 -03:00
Claudio Sanches
a6ffd4cafd
Update customer fields
2016-08-20 14:29:27 -03:00
Claudio Sanches
f7bf0b1184
Improve save customer meta fields and removed extra escape function #11733
2016-08-20 13:02:04 -03:00
Claudio Sanches
4c8a60fa06
Allow checkboxes in customer profiles, closes #11733
2016-08-20 12:57:35 -03:00
Thi
43cd8c9578
Add PayPal Here as a valid transaction type
2016-08-20 18:19:49 +09:00
Claudio Sanches
80ee7016f8
Fixed conflicts
2016-08-19 20:31:59 -03:00
Claudio Sanches
b3c0bee7fc
Sort by top rated widget with meta
...
ref #11711
cc @mikejolley
2016-08-19 19:57:42 -03:00
Claudio Sanches
d3e732322e
Fixed indentation for #11583
2016-08-19 19:37:03 -03:00
Claudio Sanches
e02d75bd9c
Merge pull request #11583 from opportus/seo-tweaks
...
Seo Tweaks
2016-08-19 19:34:29 -03:00
Claudio Sanches
47177667aa
Removed internal scroll from log viewer, closes #11729
2016-08-19 18:48:49 -03:00
Mike Jolley
3f4ffe8a49
More crud updates
2016-08-19 17:05:47 +01:00
Mike Jolley
190cd0bf86
Remove direct access of item props in admin
2016-08-19 15:08:00 +01:00
Mike Jolley
21ad196297
Use CRUD in wc_save_order_items
2016-08-19 13:43:33 +01:00
Claudio Sanches
d60d3d5b1e
Merge branch 'order-crud-api'
2016-08-19 02:07:10 -03:00
opportus
afa67364cd
improved structured data - some code optimization - revision1
2016-08-18 20:57:11 +02:00
opportus
363ec85c91
improved structured data - some code optimization
2016-08-18 20:37:34 +02:00
Claudio Sanches
acd8a70a30
[2.6] [REST API] Allow save refund reason, closes #11718
2016-08-18 15:20:52 -03:00
Mike Jolley
03110e755f
Unit tests
2016-08-18 17:24:44 +01:00
Claudio Sanches
9da3f79f41
Introduces the woocommerce_webhook_order_payload_filters filter
2016-08-18 13:22:13 -03:00
Mike Jolley
f1e517130a
Feedback from @claudiosmweb
2016-08-18 13:30:10 +01:00
Mike Jolley
fb585e9633
Add transient caching to product_loop
...
Closes #11708
2016-08-18 13:19:57 +01:00
opportus
7c9374f7f9
improved structured data - makes generators usable outside of template loop
2016-08-18 13:24:17 +02:00
Mike Jolley
5a740b7837
Merge pull request #11710 from woothemes/rest-api-load-priority
...
REST API hook load priority
2016-08-18 11:39:14 +01:00
Mike Jolley
747c48c13b
Sort by rating with meta
...
Closes #11711
2016-08-18 11:33:19 +01:00
Mike Jolley
eab72bd48e
Sync rating after clear_transients so meta exists
...
#11711
2016-08-18 11:10:16 +01:00
opportus
92513c6ad1
seo tweaks - branch update
2016-08-18 10:39:55 +02:00
Claudio Sanches
838f3737ea
[2.6] Fixed downloadable variable product URL, closes #11699
2016-08-18 00:53:27 -03:00
Claudio Sanches
74484c7009
[2.6] [REST API] Fixed undefined order ID, closes #11707
2016-08-18 00:41:46 -03:00
Claudio Sanches
2799bbdb27
Changed "Configure terms" into a link
2016-08-18 00:02:18 -03:00
opportus
f5187d650a
improved structured data - PHP<=5.4 compatibility fix plus few little tweaks
2016-08-18 02:31:13 +02:00
opportus
2189cc17e2
improved structured data - `get_structured_data()` method refactor for
...
PHP<=5.4 compatibility and code optimization reasons
2016-08-18 01:02:43 +02:00
opportus
8bd46f81fb
improved structured data - branch update
2016-08-17 22:12:45 +02:00
opportus
88929a9d35
improved structured data - add `methhod_exists()` statement into
...
`generate_output_structured_data()` method
2016-08-17 21:14:59 +02:00
Mike Jolley
7852eecb06
Fix get param usage
2016-08-17 17:25:29 +01:00
Mike Jolley
594bceedf2
Comment out exception code - see #11715
2016-08-17 17:07:30 +01:00
Mike Jolley
709dec9ef1
Create and update handling
2016-08-17 16:53:01 +01:00
Mike Jolley
3755049d86
Fix item data
2016-08-17 11:45:07 +01:00
Mike Jolley
0b9a5998cc
Exception class
2016-08-17 11:44:56 +01:00
Mike Jolley
b4599d9254
Schema update
2016-08-17 11:44:39 +01:00
Claudio Sanches
b1ac42220a
Merge pull request #11690 from sumnermic/patch-1
...
Add anchor attribute target "_blank"
2016-08-16 18:40:12 -03:00
Claudio Sanches
525b11a2a2
Defined a priority for the REST API init method
2016-08-16 17:44:32 -03:00
Claudio Sanches
49b7dd6dfa
Removed custom hooks introduced in #11668
2016-08-16 17:43:09 -03:00
Claudio Sanches
3cf8058f9b
DRY #11614
2016-08-16 16:55:26 -03:00
JLuis Freitas
5a0f0cf5b4
add PT (Portugal) address format
...
add $postcode_before_city format to portuguese addresses
2016-08-16 17:10:09 +01:00
Mike Jolley
92ebb933b4
Finish order get
2016-08-16 15:18:16 +01:00
Mike Jolley
3e88ec1f20
Product formatting
2016-08-16 14:49:30 +01:00
Mike Jolley
b64c55de49
Format item meta
2016-08-16 13:55:10 +01:00
Mike Jolley
99be0167b4
Order type doesn't appear to be used anywhere, and I'd expect other plugins extending orders to have their own classes anyway making this a bit pointless.
...
@thenbrent
2016-08-16 13:02:22 +01:00
Mike Jolley
b70a979fce
Get product item data
2016-08-16 13:01:38 +01:00
Mike Jolley
1baef12395
qty -> quantity
2016-08-16 12:36:38 +01:00
Mike Jolley
71ce5f77d0
Replace order_item_id with just id
2016-08-16 12:27:00 +01:00
Mike Jolley
0621db57d3
Merge branch 'master' into order-crud-api
2016-08-16 12:20:34 +01:00
Mike Jolley
e99798f16e
Date modified is read only and set by WP after update
2016-08-16 11:57:25 +01:00
opportus
c04cfa9d15
seo tweaks - adds to loop product and loop category headings a specific css class
2016-08-16 12:34:38 +02:00
opportus
26367d1108
seo tweaks - branch update
2016-08-16 12:19:29 +02:00
Multidots
dd445d8f09
Fixes:'File' link on My Accounts->Downloads incorrect for variations
2016-08-16 15:47:35 +05:30
Mike Jolley
bc75c60227
Merge branch 'master' into order-crud-api
2016-08-16 11:09:14 +01:00
Mike Jolley
46b6ca0f3b
Only read users from current site
2016-08-16 11:08:54 +01:00
Mike Jolley
de7e522835
Remove customer order queries for performance reasons and offer get_last_order() method instead.
...
Same for order counts - these don’t need to be populated after read,
only when needed. cc @justinshreve
2016-08-16 10:04:52 +01:00
opportus
6f3974d0e2
improved structured data - fixes fatal error with grouped products, thanks @leewillis77
2016-08-15 22:05:06 +02:00
Mike Jolley
c6f6713e47
Write context in coupon api
...
@justinshreve
2016-08-15 19:28:07 +01:00
Mike Jolley
589ce2f544
Write context
2016-08-15 18:26:00 +01:00
Mike Jolley
5afac69f10
Fix write context errors
2016-08-15 17:50:02 +01:00
Mike Jolley
c7ae2c31ea
leave wp meta alone and handle serialisation
2016-08-15 17:37:18 +01:00
Mike Jolley
3f08d116d8
Start using crud for order requests
2016-08-15 17:27:33 +01:00
Mike Jolley
9138d8a9e1
order api notices
2016-08-15 16:56:55 +01:00
Mike Jolley
83dca89d0c
Correct customer escaping and tests
2016-08-15 16:53:48 +01:00
Mike Jolley
14b40ea340
Handle first and last name fields
...
@justinshreve
2016-08-15 14:13:20 +01:00
Mike Jolley
e1318d9175
Stop WP core meta data being removed for customers
...
@justinshreve
2016-08-15 13:17:43 +01:00
opportus
17cc4bbd63
improved structured data - branch update
2016-08-15 14:16:14 +02:00
opportus
6c1990c3cf
improved structured data - some final little tweaks
2016-08-15 14:10:14 +02:00
Multidots
63c3a979f4
Fixes Add reply-to to admin emails
2016-08-15 16:31:12 +05:30
Mike Jolley
23e13fbfa6
created_via
2016-08-15 11:29:29 +01:00
Mike Jolley
0113dbd7c5
Use wc_do_deprecated_action
2016-08-15 11:08:36 +01:00
Mike Jolley
46793622df
wc_do_deprecated_action helper
2016-08-15 11:02:49 +01:00
Mike Jolley
6090e3cd00
set_backorder_meta helper
2016-08-15 11:02:38 +01:00
Mike Jolley
0dd41179aa
Prefix item ids and revert some changes to add_products method for ease of use.
2016-08-15 11:02:25 +01:00
opportus
5535da6a5b
improved structured data - added generate_output_structured_data() method
...
| modified some methods names | few other tweaks
2016-08-15 00:39:01 +02:00
opportus
017929dfdd
improved structured data - class refactor - revision7
2016-08-12 23:53:37 +02:00
opportus
f89408884b
improved structured data - class refactor - revision6
2016-08-12 22:58:23 +02:00
opportus
7290e93a33
improved structured data - removed SoftwareApplication and MusicAlbum
...
which were inappropriately replacing the Product type
2016-08-12 18:13:11 +02:00
Mike Jolley
7796fe9cf1
Clean item/group cache when remove_order_items is used.
2016-08-12 16:48:48 +01:00
Mike Jolley
eec9ce5b41
Revert addition of _delete_extra_meta_data
...
This essentially removes the ability to delete meta which is not great.
@justinshreve you added this in
https://github.com/woothemes/woocommerce/commit/e3b1f6dbc9558bae606fa76e
6941175582a301b7 - can you tell me what problems it was causing you so
we can add a different fix if needed?
2016-08-12 16:41:06 +01:00
Mike Jolley
eb45acf0d5
[2.6] Use method title in admin shipping dropdown
...
fixes #11678
2016-08-12 14:23:59 +01:00
opportus
ec3cce27ad
improved structured data - class refactor - fixed bugs
2016-08-12 15:19:26 +02:00
sumnermic
e336886afa
Add anchor attribute target "_blank"
...
Add anchor attribute target "_blank" to Regenerate Thumbnails link. It's pretty annoying for it to not open in a new window/tab.
2016-08-12 13:58:54 +01:00
Mike Jolley
f3651a9881
Fix user agent calls
2016-08-12 12:53:09 +01:00
Mike Jolley
f7958f2b20
[2.6] Drafts don't have post_date_gmt
...
Fixes #11686
@claudiosmweb @justinshreve
2016-08-12 12:53:09 +01:00
Mike Jolley
cfc31dd311
wc_prevent_adjacent_posts_rel_link_wp_head
...
Closes #11683
2016-08-12 11:03:28 +01:00
Mike Jolley
97618fa2af
Made stock notes consistent
...
Fixes #11673
2016-08-12 10:47:01 +01:00
Mike Jolley
bb50ca8a6c
Merge remote-tracking branch 'origin/master'
2016-08-12 10:39:47 +01:00
Mike Jolley
584b1ce4cb
Merge branch 'pr/11674'
2016-08-12 10:39:45 +01:00
Mike Jolley
3b0af0c54b
Merge pull request #11670 from woothemes/fix-reports-custom-daterange
...
Reports: Clean up custom date range UI
2016-08-12 10:36:48 +01:00
opportus
8ea2842a39
improved structured data - class refactor - revision5
2016-08-12 11:01:02 +02:00
opportus
637e64a6b5
improved structured data - class refactor - revision4
2016-08-12 02:55:52 +02:00
opportus
1e52d903f0
improved structured data - class refactor - revision3
2016-08-12 01:29:35 +02:00
kellychoffman
f41321fb27
input length: increased to 11
2016-08-11 15:59:25 -06:00
Justin Shreve
a610c6a804
Update the Customers API to use the WC_Customer CRUD Class
...
Also:
* Introduces Tests for the Customer REST API
* Fixes a few API and test issues from recent CRUD changes
* Adds some missing billing_ and shipping_ meta data functions to Customer CRUD
2016-08-11 10:30:44 -07:00
corsonr
51060807c4
remove un-necessary slashes
2016-08-11 16:07:40 +02:00
opportus
42637e85c7
improved structured data - class refactor - revision2 + coding standards tweaks
2016-08-11 14:58:05 +02:00
opportus
8176bc5282
improved structured data - class refactor - revision1
2016-08-11 12:04:12 +02:00
opportus
39dce5a450
improved structured data - tabulation fix
2016-08-11 11:17:14 +02:00
rspublishing
f3956131bf
Copy update in setup wizard
2016-08-11 08:40:12 +02:00
Gabor Javorszky
ddd34a4460
Fix add to cart variation AJAX mode when cart fragments are dequeued
...
No issue.
* high traffic site, so wc-cart-fragments are dequeued (#7777 )
* variable product with a lot of variations, so stock lookup happens through ajax
* previously the add-to-cart-variation.js used the wc_cart_fragments_params for the ajax URL, which in this case wasn't available, the result was a hung page
* decoupled from cart fragments: added the wc_ajax_url to the params that wc_add_to_cart_variation_params gets, so no more hung pages.
2016-08-11 01:17:43 +01:00
opportus
93088f45ac
improved structured data - merge conflict fix
2016-08-11 00:49:20 +02:00
opportus
b61aae01bf
improved structured data - email order structured data integration +
...
WC_Structured_Data refactor + coding standards tweaks
2016-08-11 00:23:26 +02:00
Claudio Sanches
43c654a04b
[2.6] [REST API] Fixed wrong get order notes error message, closes #11672
2016-08-10 17:55:41 -03:00
kellychoffman
9a7b391b74
custom date: add en dash, larger inputs, no hidden text
2016-08-10 10:35:42 -06:00
Justin Shreve
dd0ddac577
Merge pull request #11668 from woothemes/add/wc-api-loading-hooks
...
Add a new hook and filter for loading new REST API files.
2016-08-10 06:30:26 -07:00
Justin Shreve
1c333b4a18
Merge pull request #11667 from woothemes/issues/11664/fix-func_get_args-warning
...
Fix func_get_args warning thrown by php7cc.
2016-08-10 06:27:06 -07:00
Justin Shreve
7def54c528
Add a new hook and filter for loading new REST API files.
2016-08-10 06:19:06 -07:00
Akeda Bagus
2fb71e6ec6
Fix func_get_args warning thrown by php7cc.
...
Although unlikely to happens, this is an attempt to prevent any modification
before func_get_args().
See https://github.com/php/php-src/blob/PHP-7.0/UPGRADING#L190-L213
Fixes #11664 .
2016-08-10 19:00:20 +07:00
Mike Jolley
efd390e951
Merge pull request #11645 from woothemes/orders-crud-function-update
...
Orders crud functions
2016-08-10 12:19:38 +01:00
Mike Jolley
d4cc1f80d4
[2.6] Fix ship to specific counties option
...
Fixes #11642
2016-08-10 12:04:52 +01:00
Mike Jolley
dff1fc84de
Merge pull request #11651 from rodrigoprimo/comment-type-index
...
Add an index to the field comment_type
2016-08-10 11:02:10 +01:00
Mike Jolley
1a4576b95c
Merge branch 'pr/11661'
2016-08-10 10:36:58 +01:00
Mike Jolley
51f3efd5c4
Don't need both cases
2016-08-10 10:36:51 +01:00
Justin Shreve
486f7cc738
Correct the avatar_url Customer API response to use the correct email field.
2016-08-09 14:02:58 -07:00
Gregory Karpinsky
b08d0bc1d2
woocommerce_taxonomy_archive_description
...
Check for `is_product_taxonomy()` to show the description on the product attribute archives.
2016-08-09 16:22:50 -04:00
Justin Shreve
35cae38aa2
Fix issues from PR review: sanitize/escape fixes in wp-admin, remove modes.
2016-08-09 10:14:47 -07:00
Justin Shreve
72d665d464
Remove @todo
2016-08-09 09:51:30 -07:00
Justin Shreve
b198e6d65b
Add the ability to see and update system status modes (shipping debug, template debug, uninstall...)
2016-08-09 09:51:30 -07:00
Justin Shreve
9609998505
Add tools controller
2016-08-09 09:51:30 -07:00
Justin Shreve
9dbd365be8
First pass at system status tools. Fully functioning endpoints for listing tools, listing data about a specific tool, and executing a tool.
2016-08-09 09:51:30 -07:00
Mike Jolley
30b0045d8a
Fix more notices
2016-08-09 14:30:10 +01:00
Mike Jolley
71afe5fdf7
Fix get_items
2016-08-09 14:21:54 +01:00
Mike Jolley
f4a4f6c361
Reduce stock and other notices
2016-08-09 14:15:04 +01:00
Mike Jolley
8d58febaf8
Merge branch 'master' into orders-crud-function-update
...
# Conflicts:
# includes/class-wc-checkout.php
2016-08-09 14:03:06 +01:00
Mike Jolley
7861b76e9b
Checkout handling
...
Also introduces add_item so you can add items to an order before the
order exists. Save at once is more efficient.
2016-08-09 14:02:40 +01:00
Rodrigo Primo
7acf712e45
Check if there is a comment_type index before adding one
...
Adding this check to avoid a MySQL error when running the query if the index already exists.
2016-08-09 14:28:41 +02:00
Mike Jolley
f4b45001ec
Merge conditonal
2016-08-09 11:17:47 +01:00
Mike Jolley
b7dcd97572
Sanitize on set only
2016-08-09 11:16:54 +01:00
Mike Jolley
01a4c81094
Spacing
2016-08-09 11:16:13 +01:00
Mike Jolley
4ac4bcaa08
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# tests/unit-tests/cart/cart.php
2016-08-09 11:08:21 +01:00
Rodrigo Primo
2e8f02f6a4
Add an index to the field comment_type
...
This index improves the response time of the query used by WC_Comments::wp_count_comments() to get the number of comments by type.
2016-08-09 10:00:51 +02:00
Justin Shreve
2d0aeec5c5
Fix customer batch error
2016-08-08 14:54:12 -07:00
Justin Shreve
fe7e26d68d
Error fixes:
...
* Typos
* Consistent edit error handles
* Consistent error messages
2016-08-08 14:52:46 -07:00
Mike Jolley
971cff77b8
Fixed unit tests
2016-08-08 17:47:50 +01:00
Mike Jolley
39eb584321
Merge branch 'master' into orders-crud-function-update
2016-08-08 17:24:40 +01:00
Mike Jolley
e8d85005d7
Handle default status
2016-08-08 17:24:39 +01:00
Mike Jolley
6a493f7350
order total
2016-08-08 17:06:12 +01:00
Mike Jolley
9d66367699
Status change fixes
2016-08-08 17:03:43 +01:00
Mike Jolley
31803f4e51
Billing/shipping
2016-08-08 16:46:58 +01:00
Mike Jolley
7bdda1f707
more dates
2016-08-08 16:34:01 +01:00
Mike Jolley
a6bb78b34a
date created
2016-08-08 16:32:03 +01:00
Mike Jolley
30742798ed
Order table
2016-08-08 16:31:06 +01:00
Mike Jolley
7b0d9a3e61
IP and notes
2016-08-08 16:24:16 +01:00
Mike Jolley
a8759fc0aa
Meta/product handling
2016-08-08 16:20:15 +01:00
Mike Jolley
c3aa933ad2
coupon
2016-08-08 15:25:22 +01:00
Mike Jolley
75975de58a
Item meta
2016-08-08 15:22:00 +01:00
Mike Jolley
9bbf5df1fd
Billing/shipping details
2016-08-08 14:49:53 +01:00
Job
f5e45d254e
update woothemes > woocommerce
...
changes in the help tab
WooThemes Helpdesk > WooCommerce Helpdesk
2016-08-08 15:37:30 +02:00
Mike Jolley
cfe28c9b25
Made WC_Logger pluggable via wc_get_logger function.
...
Closes #11474
2016-08-08 13:59:23 +01:00
Mike Jolley
87443763d8
Hook in the no products found template
...
Closes #11257
cc @jameskoster
2016-08-08 13:43:42 +01:00
Mike Jolley
40d395c16c
Merge pull request #11629 from woothemes/price-inc-tax-hell-11626
...
Prices including taxes and what gets stored/presented.
2016-08-08 12:17:36 +01:00
Mike Jolley
48f52af35d
Merge pull request #11632 from nathanielks/patch-1
...
Update class-wc-form-handler.php
2016-08-08 12:16:19 +01:00
Mike Jolley
5eaee825f1
Ensure page_object is valid
...
Closes #11641
2016-08-08 12:14:41 +01:00
Mike Jolley
4a8db96c91
[2.6][api] ID needs to be capitalized
...
Sorting won’t work with lowercase id
Fixes #11635
@claudiosmweb
2016-08-08 12:10:29 +01:00
Mike Jolley
61e2969b83
[2.6][API] Fix coupon description field
...
fixes #11633
2016-08-08 11:27:07 +01:00
Paul Kilmurray
4484877481
initialize $tax_rates variable
...
There are situations where the $tax_rates may not be initialized in the conditional, which in turn throws an error later in the function.
2016-08-08 10:36:04 +07:00
Nathaniel
92b28baeb4
Update class-wc-form-handler.php
...
As a user, I would expect to be returned to the Edit Address page as opposed to the My Account page.
2016-08-06 11:54:44 -07:00
opportus
a918db0983
improved structured data - @leewillis77 feature - revision1
2016-08-06 19:20:51 +02:00
opportus
79ef06b6ad
improved structured data - added div into short description template
2016-08-06 00:49:31 +02:00
opportus
4d5e641f11
improved structured data - @leewillis77 feature
2016-08-06 00:32:32 +02:00
Mike Jolley
6bf05396c2
date_paid
2016-08-05 16:14:30 +01:00
Mike Jolley
f4727c0cae
billing_email
2016-08-05 16:11:23 +01:00
Mike Jolley
b8bf05df11
get_user_agent
2016-08-05 16:10:45 +01:00
Mike Jolley
0a0330bac0
customer_user
2016-08-05 16:09:40 +01:00
Mike Jolley
007a767657
billing_phone
2016-08-05 16:09:04 +01:00
Mike Jolley
7685587b22
payment_method
2016-08-05 16:04:41 +01:00
Mike Jolley
693e5ece36
billing_company
2016-08-05 16:03:09 +01:00
Mike Jolley
8d3b4bc5a4
payment_method_title
2016-08-05 15:59:55 +01:00
Mike Jolley
4d87665d95
get_customer_note
2016-08-05 15:59:32 +01:00
Mike Jolley
1c18c2f44a
billing_first_name
2016-08-05 15:58:44 +01:00
Mike Jolley
84c52370fa
more getters
2016-08-05 15:57:40 +01:00
Mike Jolley
39b4831e95
get_id
2016-08-05 15:56:23 +01:00
Mike Jolley
9181c107a8
get_currency
2016-08-05 15:49:17 +01:00
Mike Jolley
1c592b3872
Merge pull request #11208 from woothemes/orders-crud-classes
...
Orders crud classes
2016-08-05 15:44:15 +01:00
Mike Jolley
0b04ee195c
Over sanitization
2016-08-05 15:43:12 +01:00
Mike Jolley
c346a1b711
Merge pull request #11540 from woothemes/tax-rate-auto-ordering
...
Automatic Tax Rate Sorting
2016-08-05 15:06:03 +01:00
Mike Jolley
54256c4123
Round prices being saved to DB
2016-08-05 14:06:51 +01:00
Mike Jolley
ccad4d2df3
Merge pull request #11561 from woothemes/add/product-reviews-create-and-update
...
Add tests, create, update, delete, and batch to the Product Reviews API
2016-08-05 11:16:42 +01:00
Justin Shreve
e3b1f6dbc9
A few fixes to customer CRUD:
...
* Implement some missing legacy functions
* Stop calling legacy functions from some pages
* Prevent extra meta from being deleted, unless requested by the CRUD (was causing problems with user/customer)
* Prevent save when loading from session AND logged out
2016-08-04 13:13:07 -07:00
Justin Shreve
f4353f6aa9
Don't save to the database if we are working with sessions, save to the session when save() is called instead.
2016-08-04 11:39:34 -07:00
Justin Shreve
47c299583d
Merge pull request #11618 from woothemes/update/wp-admin-system-status
...
Update wp-admin's system status page to share backend code with the API
2016-08-04 10:55:19 -07:00
Mike Jolley
a3ae757106
Make set/get_order_id methods private
2016-08-04 17:05:05 +01:00
Mike Jolley
b0963ddb0d
Merge pull request #11176 from woothemes/add/10954-shipping-zones-api
...
Add Shipping Zones API Endpoints.
2016-08-04 15:45:23 +01:00
Mike Jolley
387cd745c2
Add missing textdomains
2016-08-04 14:43:34 +01:00
Mike Jolley
c61c08f405
Merge branch 'master' into tax-rate-auto-ordering
...
# Conflicts:
# assets/css/admin.css
2016-08-04 14:06:52 +01:00
Mike Jolley
644cf79866
Move all query string vars to form in price widget using wc_query_string_form_fields
...
Closes #11593
@claudiosmweb @justinshreve look fine to you?
2016-08-04 13:37:39 +01:00
Mike Jolley
75895f71f9
made comparison strict
...
#11326
2016-08-04 13:09:21 +01:00
Mike Jolley
1bc9da3e91
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-coupon.php
2016-08-04 12:10:04 +01:00
Mike Jolley
1b71c1b0e7
Merge pull request #11619 from woothemes/fix/product-bulk-edit-webhook
...
Make sure product update webhook fires on bulk and quick edit.
2016-08-04 11:31:12 +01:00
Mike Jolley
475d8fc5ed
[2.6] More password check to else block
...
Closes #11623
2016-08-04 11:27:41 +01:00
Mike Jolley
c416a6d2d1
Merge pull request #11622 from WPprodigy/fix-responsive-category-images
...
Add responsive image markup for category thumbnails
2016-08-04 11:19:40 +01:00
Mike Jolley
fea9a3bce8
Merge pull request #11615 from woothemes/variable-weight-display-10621
...
Show variable weights/dimensions even when parent values are not set.
2016-08-04 11:12:30 +01:00
Mike Jolley
b0064bddf6
Remove boolval
2016-08-04 11:12:14 +01:00
Caleb Burks
a32f65df60
Formatting fix
2016-08-04 03:28:03 -04:00
Caleb Burks
abc954dc83
Add responsive image markup to category thumbnails
2016-08-04 03:16:58 -04:00
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
opportus
bbfce08bb5
improved structured data - patch10
2016-07-30 13:59:38 +02:00
Claudio Sanches
35c499aa81
Fixed product archive on front #11500
2016-07-29 18:46:39 -03:00
opportus
b899a8991d
seo tweaks
2016-07-29 20:42:33 +02: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
opportus
0c5b11802b
improved structured data - patch9 - merge conflict fix
2016-07-27 13:28:20 +02: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
Justin Shreve
55b37b3338
Rename helper class from 'legacy' to be more descriptive of whats happening. Registering wp-admin settings to the REST API.
2016-07-26 11:27:48 -07:00
Justin Shreve
838c27438e
Merge branch 'settings-api' of https://github.com/woothemes/woocommerce into settings-api
2016-07-26 11:11:09 -07:00
Justin Shreve
02915e6056
Rename helper class from 'legacy' to be more descriptive of whats happening. Registering wp-admin settings to the REST API.
2016-07-26 11:08:29 -07:00
Justin Shreve
226fdb870b
Misc cleanup of descriptions and some error strings.
2016-07-26 10:24:15 -07:00
Jeff Stieler
1a95055303
Call register_legacy_settings() directly instead of adding another hook.
2016-07-26 10:24:15 -07:00
Jeff Stieler
5c1b3a8d62
Remove now defunct WP API vendor file.
2016-07-26 10:24:15 -07:00
Jeff Stieler
383b5b2944
Move legacy setting API registration hooks into main WC_API class.
2016-07-26 10:24:15 -07:00
Jeff Stieler
d77373227a
Remove now defunct WC_REST_Settings_API_Controller class.
2016-07-26 10:24:15 -07:00
Jeff Stieler
af1e3d0417
Remove WC_REST_Settings_Options_Controller dependency on WC_REST_Settings_API_Controller.
2016-07-26 10:24:15 -07:00
Jeff Stieler
8ff799562b
Remove WC_REST_Settings_Controller dependency on WC_REST_Settings_API_Controller.
2016-07-26 10:24:15 -07:00
Jeff Stieler
2fcb15d9cf
Rename WC_Rest_Settings_Groups_Controller to WC_Rest_Settings_Controller.
2016-07-26 10:24:15 -07:00
Jeff Stieler
f168f356bc
Rename WC_Rest_Settings_Controller to WC_Rest_Settings_Options_Controller.
2016-07-26 10:24:15 -07:00
Jeff Stieler
e14d77a987
When saving settings, only allow values found in “options” for “select” type fields.
2016-07-26 10:24:15 -07:00
Jeff Stieler
b4eaa12f7a
Break “legacy” setting to “new” conversion into it’s own method.
2016-07-26 10:24:15 -07:00
Jeff Stieler
cca2a0ff5e
Reuse WC Admin Setting’s save_fields() instead of duplicating code for sanitizing saved values.
2016-07-26 10:24:15 -07:00
Jeff Stieler
f3e21123d1
Use WC Admin Settings’s get_option() in REST Settings controller instead of duplicating code.
2016-07-26 10:24:15 -07:00
Jeff Stieler
3de28d2356
Take in options data to be saved as an optional argument, defaulting to $_POST.
...
This allows for reuse of the options field saving mechanism.
2016-07-26 10:24:15 -07:00
Jeff Stieler
4f98586979
Add _links to returned settings groups.
2016-07-26 10:24:15 -07:00
Jeff Stieler
bbc5aec1d1
Don’t register legacy settings without IDs.
2016-07-26 10:24:15 -07:00
Jeff Stieler
9d9d318727
Handle select options in setting sanitization function.
2016-07-26 10:24:15 -07:00
Jeff Stieler
24014a5d04
Move bulk settings updating to the Settings controller, following existing batch endpoint patterns.
2016-07-26 10:24:15 -07:00
Jeff Stieler
7c119ac268
Add _links to /settings/<group> and /settings/<group>/<setting> responses.
2016-07-26 10:24:15 -07:00
Jeff Stieler
b2c628f0d8
Move settings group endpoint to Settings controller and only return settings-schema’d items.
2016-07-26 10:24:15 -07:00
Jeff Stieler
519be1c519
Add Settings controller getter method for all group settings.
2016-07-26 10:24:15 -07:00
Jeff Stieler
b69c9814af
Match parent signature of prepare_item_for_response(), add getter method for settings.
2016-07-26 10:24:15 -07:00
Claudio Sanches
7b78a6d9a7
Small tweaks to make it follow the REST API standards
2016-07-26 10:24:15 -07:00
Justin Shreve
56b769614d
edit_item should be update_item
2016-07-26 10:24:15 -07:00
Justin Shreve
3c35721bea
Rename update_ functions to edit_item, and get_groups/get_settings to get_item and get_items per feedback. Also move the namespace into each class.
2016-07-26 10:24:15 -07:00
Justin Shreve
fa27f277a1
Split settings and groups controllers into two separate files.
2016-07-26 10:24:15 -07:00
Justin Shreve
97e7c293d5
Rename classic settings file to legacy settings
2016-07-26 10:24:15 -07:00
Justin Shreve
3f90fecd6e
Rename classic -> legacy
2016-07-26 10:24:15 -07:00
Justin Shreve
bf1ffbeff8
Fix how classic groups/settings are registered so that they are always avaiable when calling filters.
2016-07-26 10:24:15 -07:00
Justin Shreve
3de423b5c2
Wrap up settings api
2016-07-26 10:24:15 -07:00
Justin Shreve
5de870bb08
Wrap up settings endpoints for updating, finish tests.
2016-07-26 10:24:15 -07:00
Justin Shreve
46028e0151
Refactor down to two concepts - settings groups and settings. Fix up tests, and start working on returning actual settings and their values.
2016-07-26 10:24:15 -07:00
Justin Shreve
8fee6bd3b9
Add a test for settings groups, make sure any bad keys/values are filtered out, update docs.
2016-07-26 10:24:15 -07:00
Justin Shreve
b8a45f031c
Add group info to the single locations endpoint & update our docs
2016-07-26 10:24:15 -07:00
Justin Shreve
12aa11d5be
Misc cleanup.
2016-07-26 10:24:15 -07:00
Justin Shreve
19d3bc4737
Add a permissions check to the locations endpoints and fill out the tests for them.
2016-07-26 10:24:15 -07:00
Justin Shreve
21b66f94ff
More setting location tests.
2016-07-26 10:24:15 -07:00
Justin Shreve
5ee4b5d4dd
Add the ability to get data on a single location.
2016-07-26 10:24:15 -07:00
Justin Shreve
11a3c89a2f
Make /settings/locations work properly. Add skeleton for tests and add register_routes test.
2016-07-26 10:24:15 -07:00
Justin Shreve
a9bb988873
Initial /settings API controller and /settings/locations route. Loads the WP-API and registers our namespace temporarily until WP-API is loaded by WC core.
2016-07-26 10:24:15 -07:00
Mike Jolley
374b1ff877
missing _media
2016-07-26 17:03:16 +01:00
Mike Jolley
f84d2e5954
5.2 changes
2016-07-26 16:50:23 +01:00
Mike Jolley
05539282fb
5.2 compat
2016-07-26 16:34:17 +01:00
Mike Jolley
b56abded63
Another emogrifier.php array
2016-07-26 15:52:14 +01:00
Enrico Deleo
8d3280f7b9
merging from official repo
2016-07-26 16:35:19 +02:00
Mike Jolley
4775cec578
Merge pull request #11534 from woothemes/localization-tweaks
...
Localization tweaks
2016-07-26 15:29:02 +01:00
Mike Jolley
15394af0af
[2.6] Merge pull request #11532 from woothemes/SiR-DanieL-patch-1
...
Typo
2016-07-26 15:27:34 +01:00
Enrico Deleo
b09b12f3af
converting shortsyntax array to legacy array() for PHP < 5.4
2016-07-26 16:27:21 +02:00
Mike Jolley
b5fa1e5756
More arrays
2016-07-26 15:19:11 +01:00
Nicola Mustone
0aed3bd8b8
missing )
2016-07-26 16:13:09 +02:00
Nicola Mustone
5613985882
Capitalise all the things
2016-07-26 15:47:04 +02:00
Nicola Mustone
e799b1e234
reduce number of strings
2016-07-26 15:46:50 +02:00
Enrico Deleo
2dede356d3
remove a line item if quantity is zero
2016-07-26 15:15:09 +02:00
Nicola Mustone
5fb8a05a19
typo 2
2016-07-26 14:50:31 +02:00
Nicola Mustone
624f3c2eb1
typo
2016-07-26 14:49:11 +02:00
Mike Jolley
6c956879d9
more emogrifier tweaks
2016-07-26 13:41:26 +01:00
Mike Jolley
3f2ee5a396
Rewrite rule improvements
...
Closes #11500
Extra rules are needed to support subpages, but the previous method was
very greedy and affected other URIs.
To improve this, loop over shop subpages and add rules specific to
those to avoid 404s.
Also flushes permalinks when a subpage of shop is saved so these rules
are correctly generated.
2016-07-26 13:39:31 +01:00
Mike Jolley
0e1a2d9d04
Removed verbose page rule handling in pre_get_posts
...
#11500
2016-07-26 13:37:51 +01:00
Mike Jolley
161d31558b
Shorthand arrays does not work with php 5.3
2016-07-26 11:51:01 +01:00
Mike Jolley
bdcf3e2a04
[2.6] Merge pull request #11506 from woothemes/fix/mysql-status-report
...
Fix "MySQL Version" on the system status page
2016-07-26 11:21:10 +01:00
Mike Jolley
3d3b24e39c
[2.6] Check taxonomy is set
...
Closes #11526
2016-07-26 11:19:01 +01:00
Justin Shreve
de603974d4
Only hide MySQL (when is_mysql is set) if MariaDB is found in the version string.
2016-07-25 10:43:27 -07:00
Justin Shreve
9b2ae1827d
Remove unneccessary ver variable. We already display using wpdb's db_version
2016-07-25 10:29:27 -07:00
Justin Shreve
dbba5c7bbc
Remove "MySQL" string check on version, which was preventing the MySQL version from displaying on the system status report. Version #s don't seem to include "MySQL" in them anymore so the check would prevent the block from being shown.
2016-07-25 10:29:27 -07:00
Mike Jolley
abe9ada5cd
Updated Emogrifier
...
@claudiosmweb
2016-07-25 14:51:13 +01:00
Mike Jolley
579175257f
Add transient version to price hash
...
Closes #11520 @claudiosmweb
2016-07-25 13:33:35 +01:00
Mike Jolley
3d8258baea
[2.6] [CLI] Explode tags and cat IDS to allow multiple comma values
...
Closes #11516
2016-07-25 13:20:47 +01:00
Mike Jolley
9b60e0543f
Allow meta_key/value in rest api filter
...
@claudiosmweb Closes #11518
2016-07-25 13:12:39 +01:00
Mike Jolley
fabf35872f
Merge pull request #11523 from webmandesign/patch-1
...
Don't display the archive description on search results page
2016-07-25 12:58:20 +01:00
Mike Jolley
da0c0b4ade
[2.6] h2 in profile screen
...
Closes #11515
2016-07-25 12:54:00 +01:00
Mike Jolley
c3b34ff29e
[2.6] Response body should be string in webhook class
...
Fixes #11514
2016-07-25 12:52:20 +01:00
opportus
7f12356d6b
improved structured data - patch9
2016-07-25 00:38:59 +02:00
opportus
11ff1d535a
improved structured data - patch8
2016-07-24 23:46:30 +02:00
Oliver Juhas
aa00f5a2e5
Don't display the archive description on search results page
...
There is really no need to display the product archive description (the Shop page content) on product search results page.
2016-07-24 19:04:25 +02:00
opportus
2a5439bb7c
improved structured data - patch7
2016-07-24 18:53:20 +02:00
opportus
5fa01c749b
improved structured data - patch6
2016-07-24 09:31:12 +02:00
opportus
913ddd6afc
improved structured data - patch5
2016-07-23 19:30:34 +02:00
opportus
73be376235
improved structured data - patch4
2016-07-23 04:56:01 +02:00
Krzysztof Grabania
0276a3574b
Removed unnecesary foreach loop
2016-07-22 14:55:51 +02:00
Mike Jolley
c8efb71dc5
Merge branch 'pr/11487'
2016-07-22 12:59:58 +01:00
Mike Jolley
d2754a0081
Simpler logic
2016-07-22 12:59:51 +01:00
Mike Jolley
66c8d6cdcf
Merge pull request #11496 from franticpsyx/order_item_class_args
...
[2.6] Add $order arg to order_item_class filters
2016-07-22 13:58:58 +02:00
Mike Jolley
00d5eedda2
Merge pull request #11483 from jobthomas/hotfix-geolite-notice
...
Hotfix geolite notice
2016-07-22 13:57:13 +02:00
Mike Jolley
c9eef82550
Merge branch 'pr/11497'
...
# Conflicts:
# includes/wc-core-functions.php
2016-07-22 12:55:34 +01:00
Mike Jolley
203349cbb0
[2.6] Merge pull request #11512 from jobthomas/copy-product-display
...
Copy product display
2016-07-22 13:30:11 +02:00
James Koster
02e08e071e
Use number inputs for hour/minute fields on edit order screen. closes #11494
2016-07-22 12:19:18 +01:00
Job
49d3200c52
Adding order of dimensions
...
Based on customer input, I added what dimension comes first in the
product display sizes to the tip.
2016-07-22 12:51:05 +02:00
Mike Jolley
4f5896d908
[2.6] Only allow image MIME type upload via APIs
2016-07-21 16:20:13 +01:00
Mike Jolley
fb18af837c
Docblock
...
72a5f9a9d1
2016-07-21 15:30:07 +01:00
Mike Jolley
72a5f9a9d1
Maintain method_order sorting for zones in list
...
Closes #11486
2016-07-21 14:30:05 +01:00
Mike Jolley
08941d41b2
Check is_singular when looking for shortcode content
...
Closes #11489
2016-07-21 13:17:35 +01:00
Manos Psychogyiopoulos
17c6108832
ensure WC_ROUNDING_PRECISION is defined and use it as a low precision boundary in wc_get_rounding_precision()
2016-07-21 12:14:12 +03:00
Manos Psychogyiopoulos
0173447cf9
add $order arg to woocommerce_admin_order_item_class and woocommerce_admin_html_order_item_class filters
2016-07-21 11:50:45 +03:00
Claudio Sanches
56f4efc8e3
Merge pull request #11469 from corsonr/status_report_db_prefix
...
Add database prefix to status report
2016-07-20 17:09:50 -03:00
terence1990
ca44110f3d
Fix: ship_to_different_address
2016-07-20 14:26:14 +01:00
Mike Jolley
bc80b75540
Merge pull request #11324 from woothemes/out-of-stock-threshold-11322
...
Out of stock threshold 11322
2016-07-20 14:44:41 +02:00
corsonr
b825b0b943
removed un-necessary esc_html
2016-07-20 14:43:41 +02:00
Mike Jolley
d17b4de6d5
woocommerce_admin_order_item_bulk_actions
...
Closes #11099
2016-07-20 13:37:17 +01:00
Job
614cd520ba
Updated error message
...
To not cause extra problems for the maxmind team, added better
explanation on which file to download.
2016-07-20 11:51:32 +02:00
Mike Jolley
fce7771d82
Fix - Shipping method title display in COD settings.
2016-07-20 10:49:27 +01:00
opportus
e177c61dfb
improved structured data - patch3
2016-07-20 04:33:07 +02:00
opportus
b59d512774
improved structured data - patch2 - merge conflict fix
2016-07-19 22:42:24 +02:00
opportus
d89cbbec23
improved structured data - patch2
2016-07-19 21:36:52 +02:00
Justin Shreve
57fd38c1a8
Misc cleanup of descriptions and some error strings.
2016-07-19 11:24:05 -07:00
Jeff Stieler
35f0d77e7d
Call register_legacy_settings() directly instead of adding another hook.
2016-07-19 10:41:22 -07:00