Commit Graph

8395 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Jeff Stieler d1eaf3851a Remove now defunct WP API vendor file. 2016-07-19 10:41:22 -07:00
Jeff Stieler 18c8d12eaa Move legacy setting API registration hooks into main WC_API class. 2016-07-19 10:41:22 -07:00
Jeff Stieler d8fec21147 Remove now defunct WC_REST_Settings_API_Controller class. 2016-07-19 10:41:22 -07:00
Jeff Stieler 9cfe89bbb6 Remove WC_REST_Settings_Options_Controller dependency on WC_REST_Settings_API_Controller. 2016-07-19 10:41:22 -07:00
Jeff Stieler b31818e695 Remove WC_REST_Settings_Controller dependency on WC_REST_Settings_API_Controller. 2016-07-19 10:41:22 -07:00
Jeff Stieler 6f36179fe6 Rename WC_Rest_Settings_Groups_Controller to WC_Rest_Settings_Controller. 2016-07-19 10:41:22 -07:00
Jeff Stieler f56a79c74b Rename WC_Rest_Settings_Controller to WC_Rest_Settings_Options_Controller. 2016-07-19 10:41:22 -07:00
Jeff Stieler 8b0416c4b2 When saving settings, only allow values found in “options” for “select” type fields. 2016-07-19 10:41:22 -07:00
Jeff Stieler 1fc539992c Break “legacy” setting to “new” conversion into it’s own method. 2016-07-19 10:41:22 -07:00
Jeff Stieler 1cde743121 Reuse WC Admin Setting’s save_fields() instead of duplicating code for sanitizing saved values. 2016-07-19 10:41:22 -07:00