Commit Graph

27842 Commits

Author SHA1 Message Date
Rodrigo Primo e6c1ab38a8 Fix PHPCS error 2018-06-22 10:31:42 -03:00
Mike Jolley 590af1dd2d
Merge pull request #20597 from bharatkambariya/fix/param-fn
fix param doc for update_meta and add_meta fn.
2018-06-21 12:12:25 +01:00
Bharat Kambariya fdeadcdbea fix param doc for update_meta and add_meta fn. 2018-06-21 11:47:18 +05:30
Rodrigo Primo 0668eef680 3.4.3 changelog 2018-06-20 14:58:51 -03:00
Rodrigo Primo 73d35ac272 3.4.2 changelog 2018-06-20 14:57:55 -03:00
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
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
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 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
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
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
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
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
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 a8e2eaee2a Normalize parent tax class 2018-06-15 11:35:22 +01:00
Claudiu Lodromanean b1d8add833
Merge pull request #20534 from woocommerce/fix/20525
Force logging table to wrap long columns
2018-06-14 09:15:54 -07: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
Mike Jolley 9a550c4a35 Update to correct type in unit test 2018-06-14 16:34:36 +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