Commit Graph

16532 Commits

Author SHA1 Message Date
Claudio Sanches 9b7fbff544
Merge pull request #20686 from woocommerce/fix/20673
Replaced query attribute placeholder with actual value for header link.
2018-07-10 15:22:30 -03:00
Claudio Sanches 4fd6dbd880
Merge pull request #20740 from woocommerce/fix/20224-b
Escape sku input properly for quick edit
2018-07-10 15:22:09 -03:00
Claudio Sanches 3ed4dea4bb
Merge pull request #20723 from woocommerce/fix/20707
Only wordwrap plain emails
2018-07-10 15:21:57 -03:00
Claudio Sanches 1c7b2f3100
Merge pull request #20670 from woocommerce/pr/20669
Deleting a product via API should handle children products regardless of type.
2018-07-10 15:16:13 -03:00
Gerhard Potgieter ac09473853 Escape sku input properly for quickedit 2018-07-10 10:56:49 +02:00
Gerhard Potgieter 36b6bd79c0 Add update routines to recreate user roles 2018-07-10 10:30:11 +02:00
Claudiu Lodromanean af98ef66e7
Merge pull request #20730 from woocommerce/fix/20716
Fix log file deletion
2018-07-09 11:35:45 -07:00
Claudiu Lodromanean 24a1ccf5fc
Merge pull request #20732 from woocommerce/update/20709
Outdated templates notice improvements
2018-07-09 11:27:46 -07:00
Claudiu Lodromanean 4d0890bf3b
Merge pull request #20714 from yratof/yratof-patch-item-name
Added filter on item name in quotes
2018-07-09 11:06:45 -07:00
Claudiu Lodromanean e8a2e19b27
Merge pull request #20648 from woocommerce/update/crud-get-image
Custom tables: Get image from ID, not post thumbnail
2018-07-09 11:04:52 -07:00
Peter Fabian 3af9c1e95b Merge branch 'master' into fix/20349
# Conflicts:
#	tests/framework/helpers/class-wc-helper-product.php
#	tests/unit-tests/api/products.php
2018-07-09 18:18:06 +02:00
Peter Fabian 2839dba7d2 Switched implementation of variation query parameters in the API from SQL query adjustment to one extra parent query. 2018-07-09 17:14:12 +02:00
Gerhard Potgieter 56a9799e6d
Merge pull request #20654 from woocommerce/update/get-terms
Custom tables - remove get terms
2018-07-09 15:27:26 +02:00
Gerhard Potgieter a4e3283b20 Update outdated templates notice 2018-07-09 15:10:49 +02:00
Gerhard Potgieter beaa610cc0 Only load tables for system that is part of current multisite, this avoids displaying all tables in a MS speeding up page load, and also prevent divulding tables on other sites in the MS environment. 2018-07-09 13:48:05 +02:00
Gerhard Potgieter 1fdcf2a238 Fix log file deletion functionality. 2018-07-09 13:01:23 +02:00
Gerhard Potgieter ef2f868b89 Add edit_theme_options capability to shop manager to allow access to customizer for changing WooCommerce settings. 2018-07-09 10:45:48 +02:00
Towhidul Islam 7a957cc130 Convert hardcoded db prefix to dynamic db prefix. Fixes #20718 2018-07-08 10:35:32 +06:00
claudiulodro 38324edc71 Only wordwrap plain emails 2018-07-06 13:29:01 -07:00
Andrew Lazarus d49f02a4e6
Updated prefix in filter 2018-07-06 19:04:08 +02:00
Claudiu Lodromanean 404fbca655
Merge pull request #20722 from woocommerce/tweak/image-size-filters
Add image size filters to wc_get_product_attachment_props()
2018-07-06 09:38:39 -07:00
Claudiu Lodromanean 9792f3399e
Merge pull request #20706 from woocommerce/fix/20705
Fixed Webhooks and REST API Keys list table and settings
2018-07-06 09:26:44 -07:00
Tiago Noronha fda124147b phpcs 2018-07-06 16:36:19 +01:00
Tiago Noronha 9970f1799a Add image size filters to wc_get_product_attachment_props() 2018-07-06 16:35:43 +01:00
Brent Shepherd 3993126f78 Set array keys on scheduled webhook action
To make it clearer in the database what the args refer to, e.g.
instead of storing the scheduled action's args as:

[1,123]

This patch changes it so that the args are stored as:

["webhook_id":1,"arg":123]

This has no impact on callbacks on the hooks, they are still passed
the args as normal.
2018-07-06 15:41:22 +10:00
Brent Shepherd 9aee2fa97b Add webhook group for scheduled aysnc deliveries
This will make it possible in future to run queues specifically for
delivering webhooks, instead of deliering webhooks in the same queue
as other actions, like scheduled payments, emails or other actions
scheduled by other plugins. This can be used to provide better
control over webhook delivery, which allows for sending webhooks more
quickly than if they are only included in batches of other actions.
2018-07-06 15:41:22 +10:00
Brent Shepherd f28f809edb Use Action Scheduler for async webhook delivery 2018-07-06 15:41:22 +10:00
Brent Shepherd b4c7e590b1 Load Action Scheduler lib 2018-07-06 15:41:22 +10:00
Brent Shepherd cfb1239c3b Merge commit '10c4a515e40b9d3f5903b15e97376bb153e38c61' as 'includes/libraries/action-scheduler' 2018-07-06 15:40:54 +10:00
Andrew Lazarus 97269fc5d9
Added filter on item name in quotes
Filter added to item in quotes. 

Initially was thinking that is it needed to translate the quotes only? I can't find any languages that do this specifically, but if it's a RTL language, perhaps you'd swap around the quote direction.

The function `wc_add_to_cart_message` gives you the filter `wc_add_to_cart_message` to play with, but is already set in stone as HTML, and if you truly want to change the HTML of this message, you would need to rewrite the function.

Simply adding `<strong>` to the product title is not possible without preg_replacing or hooking into gettext
2018-07-05 16:10:32 +02:00
Claudio Sanches b044e4c46d Fixed missing bulk action notices for REST API keys 2018-07-04 16:24:27 -03:00
Claudio Sanches 8f3af95004 Fixed revoke key bulk action 2018-07-04 16:09:04 -03:00
Claudio Sanches 44f081ac7e Prevents save notice in keys table list 2018-07-04 16:07:17 -03:00
Claudio Sanches 1cf0c78beb Prevents "Your settings have been saved." notices on the table list 2018-07-04 16:04:47 -03:00
Claudio Sanches 7e94f45f12 Custom search box 2018-07-04 15:43:31 -03:00
Claudio Sanches 3774a05077 Only use "post" in list table 2018-07-04 15:43:13 -03:00
Claudio Sanches 2a0a826be1 Fixed form parameters for webhooks and keys admin forms
Fixes #20705
2018-07-04 15:30:08 -03:00
Claudio Sanches 47cb949ea4 Reviews 2018-07-04 15:15:33 -03:00
Paul Dechov adceaffaa2 OBW: Change name of PayPal Express Checkout gateway to match rebranding 2018-07-04 10:46:19 -04:00
Claudiu Lodromanean 7b56840f36
Merge pull request #20695 from woocommerce/fix/20684
Check if $_POST['store_state'] is set before using it
2018-07-03 11:11:16 -07:00
Claudiu Lodromanean 78015f7265
Merge pull request #20690 from woocommerce/fix/20677
Add ajax-add-to-cart class to button only if product can be purchased.
2018-07-03 11:02:44 -07:00
Claudiu Lodromanean 8cf0d9c2e8
Merge pull request #20687 from LiamMcArthur/patch-1
Disable autocomplete from report date inputs #20683
2018-07-03 10:52:37 -07:00
Claudiu Lodromanean 06b749edeb
Merge pull request #20665 from woocommerce/fix/20656
Store name and other data to customer session during checkout
2018-07-03 10:30:31 -07:00
Claudiu Lodromanean 233b839908
Merge pull request #20678 from maciekpaprocki/patch-1
Wrong php doc for get_cart_contents()
2018-07-03 10:11:40 -07:00
Claudiu Lodromanean 98b3b6305d
Merge pull request #20661 from woocommerce/fix/16620
Use view context so true is not returned if parent is stock managed and not the variation
2018-07-03 10:08:47 -07:00
Joey Gilham 58cdd7dad2
Merge branch 'master' into master 2018-07-03 15:41:15 +01:00
Joey 4e0412e0d8 removed redundant trigger for low stock notifications 2018-07-03 14:48:53 +01:00
Joey 375ef48186 updated wc_get_low_stock_amount function 2018-07-03 14:42:58 +01:00
Rodrigo Primo 7cdcae5bff Check if $_POST['store_state'] is set before using it
Fixes #20684
2018-07-03 09:48:35 -03:00
Rodrigo Primo a106b324bf Ignore specific PHPCS rules instead of all rules 2018-07-03 09:42:59 -03:00
Peter Fabian 5459d1149d Add ajax-add-to-cart class to button only if product can be purchased. 2018-07-02 18:58:42 +02:00
Liam McArthur 0ddb61273c
Disable autocomplete from date inputs
Disabling autocomplete from these date inputs prevents browser autocomplete from overlaying datepicker.
2018-07-02 15:55:26 +01:00
Peter Fabian 70d876d122 Replaced query attribute placeholder with actual value for header link. 2018-07-02 16:02:54 +02:00
maciekpaprocki db403b2805
Wrong php doc for get_cart_contents() 2018-07-01 18:12:04 +01:00
Claudiu Lodromanean 5e1e8a36a5
Merge pull request #20650 from woocommerce/fix/20641
Hide preview button
2018-06-29 13:34:55 -07:00
Mike Jolley a480cff0d2 Logic is not grouped specific; only for product types with children 2018-06-29 15:24:17 +01:00
Eleanor Martin c94a5df7a4 Allowing API deletion of grouped products. #20666 2018-06-29 15:01:10 +01:00
Mike Jolley fe25006fa1 Store name and other data to customer session during checkout 2018-06-29 12:42:10 +01:00
Mike Jolley ddb779e917 Check type correctly 2018-06-29 11:22:03 +01:00
Mike Jolley b3b03755d7 update selector 2018-06-29 11:16:44 +01:00
Mike Jolley 4ac235a6e5 Use view context so true is not returned if parent is stock managed and not the variation. 2018-06-29 10:37:56 +01:00
Claudiu Lodromanean 920eb551a6
Merge pull request #20644 from woocommerce/update/dynamic-placeholders
Make placeholders resize based on aspect ratio settings
2018-06-28 12:01:28 -07:00
Mike Jolley 1852672761 Allow access to list table 2018-06-28 16:39:27 +01:00
Mike Jolley 46141595d4 Remove term usage 2018-06-28 16:39:07 +01:00
dezio1900 ac52ce4bad
Update wc-admin-functions.php 2018-06-28 16:31:03 +02:00
Mike Jolley 3174aff57f Hide preview button 2018-06-28 14:59:04 +01:00
Mike Jolley e5423bd9c5
Merge pull request #20630 from Chunkford/patch-1
Add filter to a coupon's user usage limit
2018-06-28 14:33:37 +01:00
Mike Jolley a6c5065718
Merge pull request #20633 from aelia-co/tweak-shipping_method_add_rate_filter
Added new filters when adding shipping rates
2018-06-28 14:29:28 +01:00
Mike Jolley 64b589f032 Get image from ID, not post thumbnail 2018-06-28 13:10:25 +01:00
Diego Zanella 9c9bdb0b2e Changed prefix for new filters to "woocommerce_shipping_method_" 2018-06-27 22:00:25 +01:00
Mike Jolley 9bead7a702
Merge pull request #20617 from woocommerce/add/20603
Convert product categories widget to use selectWoo.
2018-06-27 18:52:01 +01:00
Mike Jolley ff0e492a41 Setting 2018-06-27 18:38:36 +01:00
Mike Jolley 6b68c15309 Placeholder image styling 2018-06-27 18:13:39 +01:00
Mike Jolley 4fc64e85a6 Create placeholder image on install 2018-06-27 17:47:30 +01:00
Claudiu Lodromanean 2a3cedddcd
Merge pull request #20520 from woocommerce/feature/product-custom-tables-supporting-changes
Product custom tables supporting changes
2018-06-27 08:57:50 -07:00
Diego Zanella ab3b6b5433 Fixed call to filter woocommerce_shipping_add_rate_args 2018-06-27 16:09:22 +01:00
Mike Jolley bf9d0ff053
Merge pull request #20634 from woocommerce/enhance/20626
Make it easier to customize products list table filters
2018-06-27 15:20:12 +01:00
Mike Jolley b838f3be4a
Merge pull request #20637 from woocommerce/fix/20616
Better phone number cleaning for wc_format_phone_number
2018-06-27 15:04:05 +01:00
Mike Jolley 1186a62d04
Merge pull request #20639 from woocommerce/pr/20622
Update Pr/20622 - conditionally add optional text to address 2 field
2018-06-27 10:33:06 +01:00
Mike Jolley 0e589f641e Allow string reuse by moving brackets outside of string. 2018-06-27 10:31:41 +01:00
Gerhard Potgieter 2df62edec1 Improve the replacement for wc_format_phone_number a bit more, seems like we allow spaces and plus signs, remove non visible unicode with seperate preg_replace 2018-06-27 09:37:44 +02:00
Gerhard Potgieter 7a3caa0608 This changes wc_format_phone_number to discard all characters except numbers and the + sign, not sure if + sign must be stripped but in the current version it was not stripping the + sign 2018-06-27 09:05:32 +02:00
claudiulodro 9fa038e1ab phpcs 2018-06-26 13:36:13 -07:00
claudiulodro 59356aa644 Make it easier to customize product filters 2018-06-26 13:31:57 -07:00
Claudiu Lodromanean 3bff14974c
Merge pull request #20629 from vishalkakadiya/fix/remove-unwanted-condition
Remove unwanted(double) condition for address line 2
2018-06-26 12:20:18 -07:00
Diego Zanella 25817b9236 Added new filters when adding shipping rates
Ref. https://github.com/woocommerce/woocommerce/issues/20632
2018-06-26 20:15:54 +01:00
Claudiu Lodromanean 0cd54b67c7
Merge pull request #20606 from woocommerce/refactor/order-again
Refactor "order again"
2018-06-26 12:10:55 -07:00
Chunkford 0d9bf1e19c
Update class-wc-discounts.php 2018-06-26 17:22:09 +01:00
Chunkford 469c8f2d10
Add filter to a coupon's user usage limit
I need to be able to mark a coupon as unlimited use per user if a certain criteria is met
2018-06-26 16:32:08 +01:00
vishalkakadiya d765ca9ec4 ISSUE-20621 Move space outside of the localised string 2018-06-26 20:30:29 +05:30
vishalkakadiya 95d7dc0933 ISSUE-20621 Address feedbacks 2018-06-26 19:18:29 +05:30
vishalkakadiya 9dea1e98db Merge branch 'master' into fix/issue-20621 2018-06-26 18:44:09 +05:30
vishalkakadiya dd14157682 ISSUE-20621 Add (optional) text on condition bases 2018-06-26 18:43:53 +05:30
vishalkakadiya c6fa14fe53 Remove unwanted(double) condition for address line 2 2018-06-26 18:21:29 +05:30
Mike Jolley a4e0ba2958 feedback 2018-06-26 13:49:57 +01:00
Mike Jolley d394dec5f2
Merge pull request #20591 from yratof/tweak/issue-20590
Wrapped 'FREE' with a filter to allow different use cases
2018-06-26 13:43:44 +01:00
Mike Jolley ed1cb59840
Merge pull request #20608 from woocommerce/fix/20594
Check if array index exists before using it
2018-06-26 13:39:46 +01:00
Mike Jolley 35a50e5617
Merge pull request #20586 from woocommerce/feature/add-tax-calc-filter
Add filter for tax calculation in cart totals
2018-06-26 13:39:21 +01:00
Mike Jolley fb85c7d057
Merge pull request #20547 from woocommerce/update/emogrifier-2.0
Update Emogrifier to 2.0
2018-06-26 13:38:48 +01:00
Mike Jolley 91738bc5a8
Merge pull request #20011 from woocommerce/update/19961
On the fly image generation for frontend
2018-06-26 13:37:37 +01:00
Gerhard Potgieter 4c54dedd9d Rredirect to shop page when product categories dropdown filter is cleared. 2018-06-26 11:54:04 +02:00
vishalkakadiya f282b4f126 ISSUE-20621 Remove (optional) text from Address line 2 field's placeholder 2018-06-26 00:10:47 +05:30
Claudiu Lodromanean d0491072e8
Merge pull request #17895 from woocommerce/update/use-post-author-for-customer-id
Use post_author instead of the post meta '_customer_user'
2018-06-25 11:23:59 -07:00
Gerhard Potgieter 345416312a Move selectwoo support to widget class to avoid it running on admin pages. 2018-06-25 15:58:18 +02:00
Rodrigo Primo f175e62286
Merge pull request #20549 from woocommerce/update/improve-layered-nav-performance
Improve WC_Query::get_layered_nav_chosen_attributes() performance
2018-06-25 09:35:21 -03:00
Andrew Lazarus d9c031d8c6
Removed whitespace to pass travis check 2018-06-25 13:24:07 +02:00
Mike Jolley ff8781a406
Merge pull request #20615 from rnaby/250618-121609
Log Abstract Class Methods Refactoring
2018-06-25 12:09:05 +01:00
Mike Jolley 525ea24160
Merge pull request #20614 from rnaby/250618-120045
@throws PHPDoc Fix
2018-06-25 12:07:44 +01:00
Gerhard Potgieter 664abe2015 Convert product categories widget to use selectWoo. 2018-06-25 12:25:16 +02:00
Andrew Lazarus c9e0055bdd
Refactored get_cart_shipping_total()
Refactored to pass all routes through filter, renamed the filter to match the function.
2018-06-25 11:17:08 +02:00
Khan M Rashedun-Naby cb945a8816 Specified where the Exception is coming from 2018-06-25 15:04:49 +06:00
Khan M Rashedun-Naby 71a0fc7f89 Log Abstract Class Methods Refactoring 2018-06-25 12:40:55 +06:00
Khan M Rashedun-Naby 21c5dacdb1 @throws PHPDoc Fix 2018-06-25 12:05:42 +06:00
Peter Fabian ef3d32699c Fixed missing key errors. 2018-06-23 13:55:42 +02:00
Peter Fabian 60cd5caac2 Fixed terms fetching bug introduced in #20079. 2018-06-23 13:53:50 +02:00
GlennMartin1 fdbefd436a
fix typo
change: "Active" to "Activate"
2018-06-22 15:29:14 -04:00
Andrew Lazarus 7eac354d3b
Added $this to the FREE filter to allow interaction with cart object 2018-06-22 16:03:57 +02:00
Andrew Lazarus b29036c08d
Updated filter naming convention for Free! 2018-06-22 16:00:28 +02:00
Rodrigo Primo e6c1ab38a8 Fix PHPCS error 2018-06-22 10:31:42 -03:00
Rodrigo Primo b917522160 typo 2018-06-22 10:13:12 -03:00
Rodrigo Primo df3306084e Check if array index exists before using it
WC_Geolite_Integration::get_country_iso() sometimes returns null instead of an array, so this commit adds a check to account for that possibility before using the returned value. Doing this to prevent the following undefined index notice:

PHP Notice: Undefined index: country in wp-content/plugins/woocommerce/includes/class-wc-geolite-integration.php on line 60

Fixes #20594
2018-06-22 10:13:12 -03:00
Mike Jolley 759b99ad14 Order again and merge cart handling 2018-06-22 13:32:45 +01:00
Mike Jolley f9530c3ba2 Remove order again from URls 2018-06-22 13:32:21 +01:00
Mike Jolley 5ad0e12602 Store meta after login so we know when cart needs to merge 2018-06-22 12:39:21 +01:00
Mike Jolley f89724b718 Remove order again from form handler 2018-06-22 12:39:06 +01:00
Mike Jolley 211ef53a53 Pass link to template file. Use cart URL to avoid redirects. 2018-06-22 10:40:56 +01:00
Bharat Kambariya fdeadcdbea fix param doc for update_meta and add_meta fn. 2018-06-21 11:47:18 +05:30
Mike Jolley a17945d9a8
Merge pull request #20574 from woocommerce/fix/20551
Fix: set order status to refunded when a PayPal transaction is refunded
2018-06-20 14:56:25 +01:00
Andrew Lazarus 38b904a09a Wrapped 'FREE' with a filter to allow different use cases for no shipping rate returning 2018-06-20 15:12:27 +02:00
Claudiu Lodromanean 3504732d6b
Merge pull request #20572 from woocommerce/fix/20565
API: Return error code if parent is invalid when updating attributes.
2018-06-20 06:01:05 -07:00
Claudiu Lodromanean cff90bb3c0
Merge pull request #20579 from woocommerce/fix/20554
Fix: display products on sub-subcategories when sorting parent category by price
2018-06-20 06:00:03 -07:00
Boro Sitnikovski 15cbe7daee Pass current object as context 2018-06-20 14:16:14 +02:00
Boro Sitnikovski 1b90d8114c Add filter for tax calculation in cart totals 2018-06-20 10:51:05 +02:00
Rodrigo Primo c1960167f4 Fix: display products on sub-subcategories when sorting parent category by price
The algorithm to add a list of product categories to the query that order products of a given category by price was including only first level sub-categories since PR #20391. This was happening because `get_terms()` when called with the argument `parent` will only return direct children. To fix this and get all children for a given product category, it was necessary to replace `parent` with the argument `child_of`. See #20554 for a more detailed description of the issue that this commit fixes.
2018-06-19 15:47:43 -03:00
Rodrigo Primo 5f6b0df7b2 PHPCS fixes 2018-06-19 15:46:33 -03:00
Claudiu Lodromanean 4c998f06c4
Merge pull request #20550 from woocommerce/update/mailing-list-signup
Mailing list - update form action
2018-06-19 08:19:02 -07:00
Claudiu Lodromanean ec5fcc333e
Merge pull request #20573 from woocommerce/fix/20521
Update status based on stock, always
2018-06-19 07:41:55 -07:00
Mike Jolley 245e1768f9 Bump version so update routine gets triggered in master 2018-06-19 15:34:45 +01:00
Mike Jolley 49d0a09242
Merge pull request #20569 from davefx/patch-8
Cast multiselect and select keys as strings
2018-06-19 15:22:22 +01:00
Mike Jolley f6519e3361
Merge pull request #20524 from woocommerce/add/wootenbergjitm
Wootenberg JITM
2018-06-19 15:20:16 +01:00
Rodrigo Primo 5b5256370a Ignore a single PHPCS rule instead of ignoring all rules
Replace the usage of `// @codingStandardsIgnoreStart` and `// @codingStandardsIgnoreEnd` with `// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores` on WC_Gateway_Paypal_IPN_Handler::check_response(). Ignoring a single PHPCS rule is better than ignoring everything to protect the line against potential violations of the other rules.
2018-06-19 10:44:45 -03:00
Rodrigo Primo 9263a0b169 Fix: set order status to refunded when a PayPal transaction is refunded
Commit c7a3fd2 changed the logic to check if the refund is a full refund to use the strict equal operator (`===`) in the following line:

25be9fc13c/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php (L295)

This change broke the comparison as `$order->get_total()` will return the value respecting the number of decimals after the decimal point set in the option `woocommerce_price_num_decimals` and `wc_format_decimal()`, when called without a second parameter, will not format the received value to use the same number of decimals set in `woocommerce_price_num_decimals`. To fix this issue, this commit passes `wc_get_price_decimals()` as the second parameter to `wc_format_decimal()`. This way both values will always have the same number of decimals and the comparison should work when handling a full refund.

Fixes #20551
2018-06-19 10:42:27 -03:00
Mike Jolley 0cee6a69b0 Update status based on stock, always 2018-06-19 13:35:17 +01:00
Mike Jolley 66ae57699a Return error code if parent is invalid 2018-06-19 12:54:57 +01:00
Joey cd8416122f removed low stock options for variations, and addressed changes 2018-06-19 12:40:27 +01:00
David Marín f28b00d5df
Fixing bug: I was casting the wrong value 😖 2018-06-19 13:31:48 +02:00
Mike Jolley e0ccc64571
Merge pull request #20560 from shivapoudel/tweak/admin-bar-menu
Tweak - logged in user is also checked by is_admin_bar_showing
2018-06-19 10:58:42 +01:00
Gerhard Potgieter 90387e7d7e Revert "Deprecate manage_stock methods in favor of stock_status methods."
This reverts commit 2d9c058876.
2018-06-19 11:54:07 +02:00
Gerhard Potgieter 8602fd0276 Revert "Deprecate wc_get_product_variation_attributes in favour of WC_Product::get_attributes()"
This reverts commit fe7a6c25df.
2018-06-19 11:53:50 +02:00
Gerhard Potgieter 2d9c058876 Deprecate manage_stock methods in favor of stock_status methods.
Closes https://github.com/woocommerce/woocommerce-product-tables-feature-plugin/issues/100
2018-06-19 11:35:57 +02:00
Gerhard Potgieter fe7a6c25df Deprecate wc_get_product_variation_attributes in favour of WC_Product::get_attributes()
Closes https://github.com/woocommerce/woocommerce-product-tables-feature-plugin/issues/102
2018-06-19 11:22:24 +02:00
David Marín 6649569aa2
Update abstract-wc-settings-api.php 2018-06-19 07:12:39 +02:00
David Marín 597ba7df98
Cast multiselect keys as strings 2018-06-19 06:41:44 +02:00
Rodrigo Primo 5c5cddf26a Add @return for wc_update_350_order_customer_id() docblock 2018-06-18 15:17:39 -03:00
Rodrigo Primo 43d22a2349 Merge branch 'master' into update/use-post-author-for-customer-id 2018-06-18 15:17:19 -03:00
claudiulodro 1890ef788d Persist wootenberg notice dismissal 2018-06-18 10:54:01 -07:00
claudiulodro 7148f8da2d Install/activate the plugin from the notice 2018-06-18 10:42:52 -07:00
Gerhard Potgieter 36d1c318cb Download Log FK Contraint check (#20478)
This PR introduces a check on the permission_id FK to ensure that it is not added multiple times on upgrades. It also names the key specifically to ensure future changes to the key can be targeted properly and removes old keys that were added since 3.4.0.

* Add FK check before adding the FK. Also give the FK a name to avoid auto generated names and duplicate keys.

* Remove additional OR

* Remove additional OR

* Final FK check query

* Add foreign key cleanup routine to 3.4.3 db version

* Only check on named foreign key now that we have a cleanup routine in place, use specific phpcignore

* Rework formatting of SQL query

* Change way to fetch and add FK, can't use procedural SQL, needs to be done via statements.

* Add table name to lookup

* Only clean up FK on the wc_download_log table

* Remove erenouse bracket
2018-06-18 11:47:47 -03:00
Shiva Poudel dcc2e595f2 Tweak - logged in user is also checked by is_admin_bar_showing 2018-06-18 16:52:56 +05:45
Peter Fabian 1a3b5b165d Factor out parent table name to variable, allow big SELECT. 2018-06-18 10:15:36 +02:00
Dan Wyman f41b774dc2 Mailing list - update form action
Mailing list form now identifies itself to the mailing list server.
2018-06-15 14:27:43 -07:00
Rodrigo Primo b6e73f528b Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-06-15 14:56:31 -03:00
Rodrigo Primo 7a7130c9d0 Improve WC_Query::get_layered_nav_chosen_attributes() performance
This commits improves the performance of the method WC_Query::get_layered_nav_chosen_attributes() when a site has a significant number of product attributes. Instead of looping over all existent product attributes to find which have been passed in the request, the new code loops over all the request parameters and checks which are valid product attributes.

On a test site with 2000 product attributes, the old version of WC_Query::get_layered_nav_chosen_attributes() was responsible for 25% of the shop page generation time. With the new version, the amount that this method contributes to the page generation time is negligible.

Related #20262
2018-06-15 14:39:56 -03:00
Rodrigo Primo 35d5bf31dd phpcs fixes 2018-06-15 14:26:47 -03:00
Claudiu Lodromanean 25be9fc13c
Merge pull request #20546 from woocommerce/fix/20509
Normalize parent tax class
2018-06-15 09:23:27 -07:00
Claudiu Lodromanean ee47ceb361
Merge pull request #20537 from woocommerce/update/transactions-revert
Transactions, caching, and version transient cleanup issues
2018-06-15 09:11:23 -07:00
Claudiu Lodromanean c203ff16d9
Merge pull request #20482 from woocommerce/fix/20452
Avoid price setting when synced with children
2018-06-15 09:05:13 -07:00
Claudiu Lodromanean fc02687545
Merge pull request #20470 from woocommerce/update/20454
Support limiting search results
2018-06-15 09:03:07 -07:00
Claudiu Lodromanean 843f19738a
Merge pull request #20458 from woocommerce/update/13359
Improved Stock Reduction Events
2018-06-15 09:00:32 -07:00
Mike Jolley 7800ca284a Merge branch 'pr/20500'
Arguments passed to end function should be passed by reference.
2018-06-15 15:50:06 +01:00
Mike Jolley 880cebbe1b align 2018-06-15 15:49:51 +01:00
Mike Jolley a0eb6843c2 define limit query 2018-06-15 15:28:29 +01:00
Risto Niinemets 174fd95765 fix undefined index attribute in layered nav widget without attributes (#20544) 2018-06-15 15:20:21 +01:00
Mike Jolley 5e6405b650 Merge branch 'master' into update/13359 2018-06-15 15:12:12 +01:00
Mike Jolley 04e304921a Show stock based on querystring var 2018-06-15 15:11:07 +01:00
Mike Jolley f633d9a0eb Update remove item notice based on order status 2018-06-15 14:38:35 +01:00
Mike Jolley a1bd9ab2ae Input type number with correct width 2018-06-15 14:32:30 +01:00
Mike Jolley 17e97c2580 Clear version cache if time is unchanged 2018-06-15 13:56:23 +01:00
Mike Jolley 217e825e22 supports_emogrifier 2018-06-15 12:43:27 +01:00
Mike Jolley be9162e869 Remove namespace 2018-06-15 12:43:19 +01:00
Mike Jolley c3144012a5 Include as needed 2018-06-15 12:43:10 +01:00
Mike Jolley 0d79ced8e4 Update emogrifier 2018-06-15 12:25:07 +01:00
Mike Jolley a8e2eaee2a Normalize parent tax class 2018-06-15 11:35:22 +01:00
Claudiu Lodromanean 4c47574d7c
Merge pull request #20533 from woocommerce/fix/20505
Round items for order total
2018-06-14 09:11:57 -07:00
Mike Jolley 4b1e08b9b9
Merge pull request #20445 from roshansameer/webhook-bulk-delete-bottom
Fix - on webhook bulk action footer delete selection
2018-06-14 17:00:57 +01:00
Mike Jolley 9b0de1a221 Missing static keyword 2018-06-14 16:35:34 +01:00
Claudiu Lodromanean cdee048337
Merge pull request #20531 from woocommerce/fix/20519
Shipping tax may be a string, so cast it
2018-06-14 08:25:09 -07:00
Mike Jolley c5429244b2
Merge pull request #20504 from cmarangon/master
Conform returned error messages
2018-06-14 16:23:51 +01:00
Mike Jolley 6152aea961
Merge pull request #20506 from woocommerce/refactor/20420
Tokenization form refactor
2018-06-14 16:22:45 +01:00
Mike Jolley 2c8106075a Merge branch 'master' into fix/20218-clearer-friendly-names 2018-06-14 16:12:53 +01:00
Mike Jolley eef1eb44d8 WooCommerce prefix only 2018-06-14 15:47:15 +01:00
Mike Jolley ce1810cd1a
Merge pull request #20497 from woocommerce/fix/20485
API: Order images by position before saving
2018-06-14 15:24:49 +01:00
Mike Jolley 78636b1f12 Only cache if order ID is set. 2018-06-14 14:52:25 +01:00
Mike Jolley 2f8a3eae49 Defer all transient cleanup 2018-06-14 14:40:08 +01:00
Mike Jolley 9f86839cab Remove wc_transaction_query in favour of logging 2018-06-14 14:39:18 +01:00
Mike Jolley 893e6affb1 Revert this change - no issue, just keeping diff small 2018-06-14 12:56:21 +01:00
Mike Jolley 90c90591f3 Round items for order total 2018-06-14 12:52:13 +01:00
Roshan Sameer 384f54f951 Static call 2018-06-14 16:40:48 +05:45
Mike Jolley aa4a89f92d Shipping tax may be a string, so cast it
Fixes #20519
2018-06-14 11:49:45 +01:00
claudiulodro 79551e9843 Wootenberg JITM 2018-06-13 11:36:36 -07:00
Claudiu Lodromanean 73dbec001a
Merge pull request #20456 from JPry/custom_coupon_item_limit
Custom coupon item limit
2018-06-13 09:57:47 -07:00
Mike Jolley 812586742b Allow only valid default attributes 2018-06-13 14:33:13 +01:00
Mike Jolley 01a3e359c3 Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-06-13 10:18:38 +01:00
Claudio Sanches ed4c6898f7
Merge pull request #20472 from rnaby/090618-232243
Remove unused variable and unnecessary else if
2018-06-12 13:28:48 -03:00
Claudio Sanches 6b230706fb
Merge pull request #20502 from woocommerce/fix/20466
Initialize payment gateways before running bulk actions
2018-06-12 11:59:47 -03:00
Mike Jolley cfe1cb5c16 Handle login and change events 2018-06-12 15:32:01 +01:00
Claudio Sanches 5f37fe110a
Merge pull request #20499 from woocommerce/fix/20496
Remove API enabled check from auth endpoint
2018-06-12 11:22:54 -03:00
Mike Jolley 10a5779fd1 wp_localize_script 2018-06-12 14:57:44 +01:00
Claudio Marangon e3447635ae Conform returned error messages
The <strong>Error:</strong> should be removed because:

- the other errors in this function don't provide it either
- the process_registration() function in class-wc-form-handler.php also adds this string so it's added twice
2018-06-12 15:48:59 +02:00
Mike Jolley cca7972d8f Initialize payment gateways before running bulk actions 2018-06-12 13:14:09 +01:00
Jon Besga e75c3716d2
Update wc-rest-functions.php
Arguments passed to end function should be passed by reference.
2018-06-12 12:45:22 +01:00
Mike Jolley ddf9ab0605 Remove API enabled check from auth endpoint 2018-06-12 12:37:36 +01:00
Mike Jolley fcd23567f6 Clear transients tool; clear wc_layered_nav_counts 2018-06-12 12:31:15 +01:00
Mike Jolley cfda380d2f API: Order images by position before saving 2018-06-12 12:13:10 +01:00
therealgilles 3818598811 Rename woocommerce_checkout_skip_update_order_review_expired to woocommerce_checkout_update_order_review_expired and change filter polarity. 2018-06-11 20:29:16 +00:00
dezio1900 cb2980596c
Update wc-admin-functions.php 2018-06-11 20:56:40 +02:00
dezio1900 007fc6e0ca
Allow items to be changed in wc_save_order_items function
Allow other plugins to be able to change $item object, for example to adjust line subtotal/total before its saved. 

My need for this change is because I have custom booking product item, and attached custom inputs for the item ( checkin / checkout dates etc ). So whenever those inputs are changed in order edit page and ajax save is triggered, I need to auto adjust booking item's line subtotal/total ( because of booking dates changed ) before item is saved.
2018-06-11 20:27:32 +02:00
therealgilles 43db16a708 Merge branch 'master' of https://github.com/woocommerce/woocommerce 2018-06-11 18:14:30 +00:00
Claudiu Lodromanean 2c1c32bf91
Merge pull request #20487 from willgorham/remove-malta-checkout-state
Remove Malta checkout 'State' field
2018-06-11 10:34:52 -07:00
Claudiu Lodromanean c93a922876
Merge pull request #20486 from woocommerce/fix/20430
sanitize_special_column_name_regex trim
2018-06-11 10:28:41 -07:00
Claudiu Lodromanean b351bcac50
Merge pull request #20483 from woocommerce/fix/20431
Search for matching keys when updating meta data
2018-06-11 10:26:24 -07:00
Claudiu Lodromanean 4ba04cfc4e
Merge pull request #20481 from woocommerce/update/20444
Remove personal data confirmation notice
2018-06-11 09:56:26 -07:00
Will Gorham 1d4f76490e Remove malta state field 2018-06-11 11:23:27 -04:00
Rodrigo Primo 397e40f165 Fix indentation 2018-06-11 11:14:04 -03:00
Rodrigo Primo 77add46705 Pass user_id via $wpdb->prepare() 2018-06-11 11:04:19 -03:00
Mike Jolley 38be26e7a5 sanitize_special_column_name_regex trim 2018-06-11 14:55:36 +01:00
Rodrigo Primo f1f49bb27a Add WC 3.5.0 DB version update callback 2018-06-11 10:54:02 -03:00
Rodrigo Primo 7f70c6372c Fix some code untitentional code changes added during the last merge from master 2018-06-11 10:48:28 -03:00
Rodrigo Primo dd8bf8b522 Merge branch 'master' into update/use-post-author-for-customer-id 2018-06-11 10:44:14 -03:00
Mike Jolley 588be3a780 merge master 2018-06-11 13:46:04 +01:00
Mike Jolley 52a7fafd74 Search for matching keys when updating meta data 2018-06-11 12:50:49 +01:00
Mike Jolley 5e14953796 Avoid price setting when synced with children 2018-06-11 11:44:58 +01:00
Mike Jolley 35db31db32 Add notice text, fix typos 2018-06-11 10:35:34 +01:00
Roshan Sameer 32b734a1c1 Implementation of current action check in list table 2018-06-11 15:05:13 +05:45
Gerhard Potgieter 90a9fd49e6 X_FORWARDED_FOR standard states either just an IP or a comma seperated list of IP, Proxy, Proxy, ... 2018-06-11 10:49:03 +02:00
therealgilles 9adff87a1c Rename woocommerce_checkout_skip_cart_is_empty_check to woocommerce_checkout_redirect_empty_cart and invert filter polarity. 2018-06-10 18:58:47 +00:00
therealgilles 1d733236e0 Merge branch 'master' of https://github.com/woocommerce/woocommerce 2018-06-10 18:53:13 +00:00
Khan M Rashedun-Naby 8d7ae8b413 Remove unused variable and unnecesary else if 2018-06-09 23:24:08 +06:00
Mike Jolley 4bc7841325 search_products limit support 2018-06-09 17:23:07 +01:00
Mike Jolley 81149157a3 woocommerce_json_search_limit filter 2018-06-09 17:22:26 +01:00
Claudiu Lodromanean 3d4dfda568
Merge pull request #20435 from rnaby/070618-212333-wc-privacy-exporters-customer_data_exporter
Removed unnecessary parameter. Also removed from tests.
2018-06-08 11:34:42 -07:00
Jeremy Pry 01e1ef73e7 Handle item limit for custom coupon types
Fixes #20455
2018-06-08 14:18:16 -04:00
Claudiu Lodromanean 0c8b8e9dd7
Merge pull request #20429 from woocommerce/fix/add-nonce-to-update-url
Add nonces to WC update database and force update database URLs
2018-06-08 10:52:17 -07:00
Claudiu Lodromanean 327401e4ea
Merge pull request #20406 from unfulvio/20404-custom-webhook-topic-dropdown-bug
[#20404] Fix custom webhook topic selection in dropdown
2018-06-08 09:43:50 -07:00
Mike Jolley 6a59a1b498
Merge pull request #20438 from rnaby/070618-215706-wc-privacy-exporters-get_customer_personal_data
PHPDoc @throws Tag Added
2018-06-08 17:27:18 +01:00
Mike Jolley baa5abcffa
Merge pull request #20437 from rnaby/070618-214301-wc-privacy-exporters-download_data_exporter
PHPDoc Fixed | Used Unused Variable | Else Removed
2018-06-08 17:27:05 +01:00
Mike Jolley f70e8b4bd2
Merge pull request #20436 from rnaby/070618-214347-wc-privacy-exporters-order_data_exporter
Made use unused variable and removed else
2018-06-08 17:26:47 +01:00
Beka Rice 818c68fc83 Fix multisite dashboard widget to use proper order number 2018-06-08 11:59:27 -04:00
Mike Jolley e92463632b Held stock qty check for pay page 2018-06-08 16:58:33 +01:00
Mike Jolley d76474789d variable name 2018-06-08 16:30:58 +01:00
Mike Jolley 52854b7690 Add qty to order via modal, include stock qty in formatted name display for reference 2018-06-08 16:18:32 +01:00
Fulvio Notarstefano 468fb14c3c [#20404] Further indentation 2018-06-09 00:08:20 +09:00
Fulvio Notarstefano 38b1381fff [#20404] Code style standards 2018-06-09 00:07:20 +09:00
Mike Jolley ce8eabc4a5 Include qty and reduce stock field on add item modal 2018-06-08 12:19:14 +01:00
Mike Jolley 8084100cbb Tweak meta naming and order notes 2018-06-08 12:18:33 +01:00
Mike Jolley 6b8cd9661f exclude new meta data from admin screens 2018-06-08 12:18:15 +01:00
Roshan Sameer 72c8e3b9cc Fix - on webhook bulk action footer delete selection 2018-06-08 11:54:47 +05:45
Claudiu Lodromanean dc20237f40
Merge pull request #20426 from woocommerce/fix/20386
Made path /orders/refund_id return invalid order id msg instead of error.
2018-06-07 10:50:46 -07:00
Mike Jolley 2cad2414b3 Remove manual wc_reduce_stock_levels calls 2018-06-07 18:01:38 +01:00
Mike Jolley 8261cffaa7 Remove bulk actions 2018-06-07 18:01:21 +01:00
Mike Jolley 2657db4a97 Pending should restore stock too 2018-06-07 17:42:58 +01:00
Mike Jolley e38eccf828 Check pending orders even when hold stock is disabled 2018-06-07 17:42:23 +01:00
Mike Jolley 70c9cff608 Increase/decrease stock handling 2018-06-07 17:41:36 +01:00
Claudiu Lodromanean c8480b68f1
Merge pull request #20338 from Spreeuw/patch-5
apply bulk actions oldest to newest
2018-06-07 09:34:38 -07:00
Khan M Rashedun-Naby f617a84b1f PHPDoc @throws Tag Added 2018-06-07 22:02:11 +06:00
Khan M Rashedun-Naby ec76e60e33 PHPDoc Fixed | Used Unused Variable | Else Removed 2018-06-07 21:52:28 +06:00
Khan M Rashedun-Naby c773b9cb4c Made use unused variable and removed else 2018-06-07 21:45:03 +06:00
Khan M Rashedun-Naby 4b14cbc727 Removed unnecessary parameter. Also removed from tests. 2018-06-07 21:25:13 +06:00
Fulvio Notarstefano e68aa7c027 [#20404] Address code review feedback 2018-06-07 23:33:13 +09:00
Joey 98e44092e7 updating suggested changes 2018-06-07 14:37:06 +01:00
Rodrigo Primo fc5aef8478 Add nonce to force update WC database URL
Doing this to check if the user has intention to perform a WC database update before starting the process.
2018-06-07 09:55:47 -03:00
Rodrigo Primo 467bd73ea9 phpcs fixes 2018-06-07 09:45:23 -03:00
Rodrigo Primo a200686005 Add nonce to update WC database URL
Doing this to check if the user has intention to perform a WC database update before starting the process.
2018-06-07 09:45:18 -03:00
Rodrigo Primo 860e3e6d93 phpcs fixes 2018-06-07 08:57:57 -03:00
Peter Fabian db9d2f2c30 Made path /orders/refund_id return invalid order id msg. 2018-06-07 13:26:29 +02:00
Mike Jolley de567c6a2e merge mistake 2018-06-07 11:26:19 +01:00
Mike Jolley 4df54b4e53 Merge branch 'master' 2018-06-07 11:24:12 +01:00
Mike Jolley db9ab9cb8f
Merge pull request #20330 from woocommerce/update/19745
Eircode validation and formatting tweaks
2018-06-07 10:41:35 +01:00
Mike Jolley 38e3e3f570
Merge pull request #20425 from rnaby/070618-130531-wc-core-functions-wc_get_logger
Simplified and Early Returned | wc_get_logger refactored
2018-06-07 10:34:51 +01:00
Mike Jolley 493060dcb6
Merge pull request #20424 from kravco/master
Fix: order billing fields do overwrite value, even if provided
2018-06-07 10:34:04 +01:00
Mike Jolley 86993a4f70 Merge branch 'master' into update/13624 2018-06-07 10:30:52 +01:00
Roshan Sameer c31b9acc8c If wp_doing_ajax is defined return it (#20421)
* If wp_doing_ajax is defined return it

* Simplify the function exits check
2018-06-07 10:21:22 +01:00
Mike Jolley 44404f2f7a
Merge pull request #20422 from rnaby/070618-115632-wc-core-functions
@access tag removed
2018-06-07 10:17:22 +01:00
Khan M Rashedun-Naby 76a9e19471 wc_get_logger refactored 2018-06-07 13:46:06 +06:00
Matej Kravjar 233ac4b313 order billing fields do not overwrite value, if provided
(overwriting introduced by 1fa36b5f15)
2018-06-07 09:02:12 +02:00
Khan M Rashedun-Naby 5442d30b6d Checking Improved 2018-06-07 12:35:58 +06:00
Khan M Rashedun-Naby 964435a34b @access tag removed 2018-06-07 12:31:35 +06:00
Claudio Sanches 4729ef8e3c
Merge pull request #20309 from woocommerce/fix/wc-api-dev-53
Removed 'orders_count' and 'total_spent' fields from customer v3 API.
2018-06-06 17:25:42 -03:00
Khan M Rashedun-Naby 20c8468fe4 handle_auth_requests PHPDoc and WPCS Fix 2018-06-06 17:35:15 +06:00
TheDramatist 93e7419b17 Simplified wc_review_is_from_verified_owner (#20393)
* Simplified wc_review_is_from_verified_owner

* wc_review_is_from_verified_owner simplified
2018-06-06 12:16:43 +01:00
Mike Jolley 869415763c
Merge pull request #20396 from rnaby/060618-005642-wc-discounts-object-var-type
WC_Discounts | object Property Type PHPDoc Fix
2018-06-06 12:15:46 +01:00
Mike Jolley f9d9c395c7
Merge pull request #20397 from rnaby/060618-010003-wc-discounts-set_items_from_order
WC_Discounts|set_items_from_order Param Type Fix
2018-06-06 12:15:33 +01:00
Mike Jolley 833df18dff
Merge pull request #20398 from rnaby/060618-010246-wc-discounts-constructor
WC_Discounts | __construct PHPDoc and Param Fix
2018-06-06 12:15:19 +01:00
Mike Jolley 113d7ad781
Merge pull request #20400 from rnaby/060618-014013-wc-discounts-apply_coupon
WC_Discounts | apply_coupon Removed Unused Variable
2018-06-06 12:14:32 +01:00
Fulvio Notarstefano 264c83a166 [#20404] Fix custom webhook topic selection in dropdown 2018-06-06 11:26:33 +09:00
Khan M Rashedun-Naby ad7bc84c2b WC_Discounts | apply_coupon PHPDoc @throws Fix 2018-06-06 01:47:16 +06:00
Khan M Rashedun-Naby ba5671c052 WC_Discounts | apply_coupon Removed Unused Variable 2018-06-06 01:41:54 +06:00
Khan M Rashedun-Naby 1ce8338572 WC_Discounts|__construct PHPDoc and Param Fix 2018-06-06 01:08:35 +06:00
Khan M Rashedun-Naby 9310970938 WC_Discounts|set_items_from_order Param Type Fix 2018-06-06 01:01:39 +06:00
Khan M Rashedun-Naby a89161c8bf WC_Discounts| Type PHPDoc Fix 2018-06-06 00:57:49 +06:00
Mike Jolley 36c6aaf7a7
Merge pull request #20321 from woocommerce/fix/20311
Flexslider gallery fixes in RTL mode
2018-06-05 15:34:27 +01:00
Claudiu Lodromanean 839d52d153
Merge pull request #20390 from woocommerce/fix/20369
Clear needs_processing transient when adding a product to an order
2018-06-05 06:56:14 -07:00
Claudiu Lodromanean 0407b290d3
Merge pull request #20389 from woocommerce/fix/20378
Remove luxemberg state field
2018-06-05 06:36:14 -07:00
Mike Jolley f356269e6f
Merge pull request #20391 from smazur/master
fix order by price clauses when search within terms
2018-06-05 13:52:30 +01:00
Mike Jolley f065580b24
align 2018-06-05 13:51:37 +01:00
TheDramatist 090b7c89f4 wc_meta_update_last_update_time cleanning (#20382) 2018-06-05 13:31:05 +01:00
TheDramatist a42acd438d PHPDoc @throws Added (#20381) 2018-06-05 13:30:16 +01:00
TheDramatist 7f6fb734dd WC_Meta_Data | PHPDoc Fix (#20371) 2018-06-05 13:29:56 +01:00
TheDramatist 9aca31f6ce PHPDoc @throw Added (#20370) 2018-06-05 13:29:35 +01:00
TheDramatist 1d923bd7a0 WC_Abstract_Privacy PHPDoc Fixed (#20368)
* WC_Abstract_Privacy PHPDoc Fixed

* Unnecessary spaces removed
2018-06-05 13:29:20 +01:00
Mike Jolley fd5f11d42f
Merge pull request #20366 from woocommerce/add/constraint-checks
permission_id Constraint checks
2018-06-05 13:27:56 +01:00
Mike Jolley 001a2e3b98 Merge branch 'master' into fix/20311 2018-06-05 12:57:48 +01:00
Mike Jolley da690c34d2 Version 2018-06-05 12:38:03 +01:00
Peter Fabian 9ce165d75e Added extra join with parent product to filter variable products from REST API 2018-06-05 13:22:22 +02:00
Stanislav Mazur 6fdd71ce8f fix order by price clauses when search within terms 2018-06-05 14:01:08 +03:00
Mike Jolley 813db4c7f1 Clear needs_processing transient when adding a product to an order 2018-06-05 11:28:45 +01:00
Mike Jolley 6d0c1b2bac Remove luxemberg state field
Closes #20378
2018-06-05 11:09:08 +01:00
Ewout Fernhout 5f57e3b524
add filter for bulk action IDs 2018-06-05 12:07:35 +02:00
therealgilles 0a6e5f7d16 Merge branch 'master' of https://github.com/woocommerce/woocommerce 2018-06-04 20:13:45 +00:00
Mike Jolley ce323ec32b
Merge pull request #20364 from woocommerce/fix/20360
Use correct escaping on placeholder
2018-06-04 12:40:17 +01:00
Gerhard Potgieter cc563c2883 Use single quotes, not a field name but a value 2018-06-04 13:31:03 +02:00
Gerhard Potgieter 193ae78037 Revert "Only run constraint if it does not already exist"
This reverts commit dcddf1b273.
2018-06-04 13:21:01 +02:00
Gerhard Potgieter dcddf1b273 Only run constraint if it does not already exist 2018-06-04 13:18:57 +02:00
Gerhard Potgieter 55d5e6c6f0 Avoid looping 2018-06-04 13:15:36 +02:00
Gerhard Potgieter 4fde0e9129 Add column data type checks to ensure they match before running the download logs constraint. 2018-06-04 13:10:05 +02:00
Mike Jolley 98c92f3246
Merge pull request #20334 from crstauf/pr/filter-free-shipping-coupon-html
More informative coupon label for coupons with discount and free shipping
2018-06-04 11:54:21 +01:00
Diego Zanella 18731221fa Added order to "woocommerce_order_is_vat_exempt" filter arguments 2018-06-04 11:01:15 +01:00
Mike Jolley 679d719368 Use correct escaping on placeholder
Use correct escaping on placeholder - this is not HTML, this is an attribute output within javascript code.

Closes #20360
2018-06-04 10:53:10 +01:00
Gerhard Potgieter f324113b6d Make Bahrain state not required (#20363)
* If coupon contains discount as well as free shipping add free shipping in brackets behind value

* Revert "If coupon contains discount as well as free shipping add free shipping in brackets behind value"

This reverts commit dce5bc2f0b.

* Make Buhrein state not required, it has not states
2018-06-04 10:47:41 +01:00
Mike Jolley 574fac457f
Merge pull request #20353 from rnaby/020618-223742-wc-datetime
getOffset Refactor
2018-06-04 10:46:16 +01:00
TheDramatist d8aa0aba90 WC_Data_Store | Exception throwing @throws PHPDoc comment added (#20352)
* Exception throwing @throws PHPDoc comment added

* Exception throwing @throws PHPDoc comment added
2018-06-04 10:45:53 +01:00
Khan M Rashedun-Naby 058b99fdf4 getOffset Refactor 2018-06-02 23:47:05 +06:00
Caleb Stauffer d4d771437c fix bug with cart coupon text (without introducing new filter) 2018-06-01 22:44:03 -04:00
Allen Snook bfb6bff87c Do not export a customer data group containing no data 2018-06-01 14:58:09 -07:00
Claudiu Lodromanean c68b8faa99
Merge pull request #20203 from woocommerce/update/20118
Log errors from transaction emails with logger
2018-06-01 13:43:33 -07:00
Mike Jolley 4daa28daee woocommerce_shipping_calculator to support custom button text 2018-06-01 21:29:33 +01:00
Mike Jolley f9c178b0dd Pass formatted destination to template file 2018-06-01 21:29:23 +01:00
Mike Jolley 243c33d9ca Show country by default and improve separator 2018-06-01 21:29:07 +01:00
Mike Jolley 67dc3ea80a Hide rates when there are no rates and calculator is off 2018-06-01 21:28:21 +01:00
claudiulodro 5fbb997949 Format shipping info when copied from billing 2018-06-01 08:28:18 -07:00
Ewout Fernhout 2ab47706a7
apply bulk actions oldest to newest 2018-06-01 12:40:22 +02:00
Mike Jolley 3f0544450e
Merge pull request #20308 from woocommerce/fix/cache-flush-0
Clear category 0 when deleting caches
2018-06-01 10:32:44 +01:00
Caleb Stauffer 6fc7a2d7cc add filter to toggle between coupon's discount amount and free shipping text 2018-05-31 20:44:49 -04:00
claudiulodro cd303d3540 Fix typo in error message 2018-05-31 12:40:58 -07:00
Claudiu Lodromanean 07bad6975f
Merge pull request #19951 from woocommerce/update/19745
Eircode validation and formatting
2018-05-31 20:31:46 +01:00
Claudiu Lodromanean a4b9346f66
Merge pull request #19969 from robertdevore/master
Add three new action hooks for admin shipping zone methods
2018-05-31 20:25:34 +01:00
Claudiu Lodromanean d1a90f14da
Merge pull request #20180 from woocommerce/fix/20178
Check billing email is posted before using
2018-05-31 19:57:18 +01:00
Claudiu Lodromanean 205a8fa513
Merge pull request #20125 from woocommerce/fix/20054
Don't force default token gateway active by default
2018-05-31 19:54:42 +01:00
Mike Jolley 25d025c01e Show empty terms in admin dropdown 2018-05-31 11:24:23 +01:00
Mike Jolley 1d43233306 Adds missing 2017 RTL styles 2018-05-31 10:34:08 +01:00