Commit Graph

17578 Commits

Author SHA1 Message Date
Chris Kreidl 63492aa98b added IDs to other input fields for consistency 2019-02-16 22:59:33 -05:00
Peter Fabian 6e24b85c6b Put back status parameter after extra processing.
This allows correct further processing of $request, e.g. for next/previous links, etc.
2019-02-14 17:03:53 +01:00
Mike Jolley 46d5a4c596 Revert debug code 2019-02-14 15:58:53 +00:00
Mike Jolley 2a0ba812a3 Check for decoded taxonomy name when unsetting 2019-02-14 15:58:12 +00:00
Mike Jolley c62c1e1d05 Fix save logic by moving setter into loop grabbing the value
Broken by https://github.com/woocommerce/woocommerce/pull/22650 phpcs changes
2019-02-14 15:22:36 +00:00
Mike Jolley 8c2e305823 phpcs 2019-02-14 15:05:56 +00:00
Mike Jolley 621229b894 Variations cannot be drafts - set to private. 2019-02-14 15:05:10 +00:00
Mike Jolley 39d9e4bd6f If date paid is not set but payment complete status has passed, set it anyway Ref: #22688 2019-02-14 14:45:26 +00:00
Mike Jolley 588b5903f7 Ignore old pre-crud actions 2019-02-13 17:55:47 +00:00
Mike Jolley 13612ef3f1 Update CRUD update hook based on status transition 2019-02-13 17:55:30 +00:00
Mike Jolley ae17d6f3bd Avoid handling wc-auto-draft
WC was erroneously adding wc- prefix to the core WP auto-draft status.

#22380 registered it formally but we don't need it.

I've reverted #22380 and handled the prefix correctly.
2019-02-13 17:52:28 +00:00
Mike Jolley 311449e943 Create is_valid_resource method to check for invalid statuses 2019-02-13 16:46:49 +00:00
Mike Jolley cf0e9f925c Refactor should_deliver logic into managable chunks 2019-02-13 16:20:09 +00:00
Mike Jolley d0abd6f09b Check for _reduced_stock meta when restocking refunded items 2019-02-13 15:05:20 +00:00
Mike Jolley 377d79e175 Merge branch 'fix/21830' 2019-02-13 14:45:00 +00:00
Mike Jolley fb5f9c1ecb
Merge pull request #22690 from Tofandel/patch-1
The "for" attribute of a label for a radio input is invalid
2019-02-13 14:40:52 +00:00
Mike Jolley 895948021c
Merge pull request #22717 from yratof/yratof-patch-1
Added filter for product title classes within product loop
2019-02-13 14:34:18 +00:00
Mike Jolley fe853e5d02
Merge pull request #22672 from Chouby/update_stock_filter
Allow to filter the direct sql query to update the product stock
2019-02-13 14:32:43 +00:00
Mike Jolley 2abf39c6ae
Merge pull request #22704 from woocommerce/fix/22696
Custom payment sections not loading fields due to logic error.
2019-02-13 14:22:39 +00:00
Mike Jolley 569a41e58b
Merge pull request #22711 from woocommerce/fix/22656
Calculation issues on single product sales by product graph/report
2019-02-13 14:17:29 +00:00
Mike Jolley 595715b882
Merge pull request #22705 from woocommerce/fix/22699
Archive breadcrubs should use plural name not singular
2019-02-13 14:08:59 +00:00
Andrew Lazarus 11c16f35ab
Updated product loop title filter with esc_attr() 2019-02-13 15:07:07 +01:00
Mike Jolley 1451f6101d
Merge pull request #22721 from woocommerce/fix/webhooks-payload
Load REST API endpoints before generate webhook payload
2019-02-13 13:59:55 +00:00
Claudio Sanches 00651bbc76 Fix special chars on webhook secret
By default some values are encoded before saved into the database, so it's required to decode those chars before generate the webhook signature.

Fixes #22500
2019-02-12 16:21:29 -02:00
Claudio Sanches 2f13a048d9 Load REST API endpoints before generate webhook payload 2019-02-12 16:08:03 -02:00
Mike Jolley b8921f9fba
Merge pull request #22420 from woocommerce/refactor/tax-rounding-methods
Refactor tax rounding methods for consistency
2019-02-12 16:13:58 +00:00
Mike Jolley cd7959b59c
Merge pull request #22653 from woocommerce/update/22568
Added `woocommerce_paypal_force_one_line_item` filter
2019-02-12 16:12:29 +00:00
Mike Jolley 1fe8af6af6
Merge pull request #22663 from woocommerce/fix/22559
Switch span to paragraph in user profile view
2019-02-12 16:11:47 +00:00
Mike Jolley d0a218db86
Merge pull request #22681 from woocommerce/fix/22678
Added check for POST variable existence.
2019-02-12 16:10:04 +00:00
Andrew Lazarus aee5cf2bff
Added filter for product title classes within product loop 2019-02-12 13:37:02 +01:00
Ron Rennick b92cfc51a5 update product table to correctly calculate net product sales 2019-02-11 16:34:28 -04:00
Gerhard cd36919265 PHPCS fixes 2019-02-11 10:22:30 +02:00
Gerhard 2d746a99bb Use name instead of singular_name for archive pages breadcrumbs. singular_name should only be used on single pages. 2019-02-11 10:21:17 +02:00
Gerhard f6b1208a32 Custom payment sections not loading fields due to logic error. 2019-02-11 09:42:31 +02:00
Mike Jolley 0d901a2eca
Merge pull request #22608 from woocommerce/performance/remove-external-ip-lookup
Performance: Remove external lookup of ips on localhost
2019-02-08 13:09:31 +00:00
Mike Jolley 1efe7747a8 merge conflict 2019-02-08 13:08:55 +00:00
Mike Jolley 1743c13225
Merge pull request #22631 from woocommerce/fix/21677
WC Endpoint 404s
2019-02-08 13:05:49 +00:00
Mike Jolley 8404b644da
Merge pull request #22645 from woocommerce/update/21963
Add notice hash to store notice cookie
2019-02-08 13:05:03 +00:00
Mike Jolley cab45fafb3
Merge pull request #22650 from woocommerce/update/20995
Registration success notices
2019-02-08 13:04:36 +00:00
Mike Jolley 73f283bf4a Update CA address format 2019-02-08 10:35:01 +00:00
Adrien Foulon 8dc9a46c17
The "for" attribute of a label for a radio input is invalid
The main label of a radio supposedly targeting the first value of the radios contains only the value instead of theId_theValue which is the id of the radio
2019-02-08 02:02:44 +01:00
Mike Jolley dca47d5d14 Use mb functions for limiting string length 2019-02-07 19:09:41 +00:00
Mike Jolley dbd324abc3 phpcs 2019-02-07 14:55:56 +00:00
Mike Jolley 113534a882 Set fallback false 2019-02-07 13:40:50 +00:00
Gerhard Potgieter 9ef6ea0be7
Merge pull request #22611 from woocommerce/performance/wp-profile-conflict
apply_filters_deprecated to avoid conflict with wp profile
2019-02-07 15:39:59 +02:00
Mike Jolley 889cf64ac4 Merge branch 'performance/wc-get-product-class' 2019-02-07 13:34:18 +00:00
Peter Fabian c1d82478a6 Added check for POST variable existance. 2019-02-07 13:39:47 +01:00
nishitlangaliya f69ac18ccd fix: default value passed to sorting dropdown 2019-02-07 13:26:43 +05:30
Mike Jolley 4b485eba13 Fixed unit tests 2019-02-06 21:00:07 +00:00
Mike Jolley e604a3ae24 correct id without $post 2019-02-06 19:57:06 +00:00
Claudiu Lodromanean 2d2d7a7053
Merge pull request #22613 from woocommerce/performance/set-props
Performance: `set_props`
2019-02-06 10:02:54 -08:00
Gerhard Potgieter b7971bd0dc
Merge pull request #22632 from woocommerce/fix/22552-screen-reader-ratings
Accessibility: Add a screen reader label for product rating star icons
2019-02-06 15:40:26 +02:00
Gerhard Potgieter 4e311b944f
Merge pull request #22666 from woocommerce/update/21101
Prevent multiple cookie sets per request
2019-02-06 15:40:04 +02:00
Mike Jolley 00b48febac Merge branch 'update/versioned-transients-alt' 2019-02-06 13:18:50 +00:00
Mike Jolley 89ac0dfdf0
Merge pull request #22668 from woocommerce/fix/22443-tests
Fixes #22443 tests
2019-02-06 12:46:50 +00:00
Mike Jolley ec7db6de06 Simplify check 2019-02-06 12:46:36 +00:00
Mike Jolley cb4bf5d1e5 Fix unit tests 2019-02-06 12:44:24 +00:00
Mike Jolley 7f0ac47291 Fix callback args 2019-02-06 12:15:29 +00:00
Frédéric Demarle 03a60fddfc Ignore WordPress.DB.PreparedSQL.NotPrepared 2019-02-06 10:24:41 +01:00
Frédéric Demarle 6e4854b3aa Add filter woocommerce_update_product_stock_query 2019-02-05 20:29:45 +01:00
Mike Jolley b2542d7e8c Missing rest api class in wizard 2019-02-05 17:41:17 +00:00
Mike Jolley 4635ccc04f Check we have a valid attachment 2019-02-05 14:11:16 +00:00
Mike Jolley ac29feac7c header_register_callback to set cookies before headers are sent (if supported) 2019-02-05 13:03:16 +00:00
Mike Jolley d004150d71 Only set and unset cookies if the values change 2019-02-05 13:02:52 +00:00
Mike Jolley c88a92144b Only update session cookie if the value changes 2019-02-05 13:02:20 +00:00
Mike Jolley b091a0975d Switch span to paragraph 2019-02-05 11:28:46 +00:00
Mike Jolley 86d192b0b4 Merge branch 'master' of https://github.com/woocommerce/woocommerce 2019-02-05 11:02:37 +00:00
Mike Jolley 592e0abe22 Merge branch 'pr/22596' 2019-02-05 11:02:29 +00:00
Mike Jolley d082c7dfa5 Swap to wp_strip_all_tags 2019-02-05 11:02:21 +00:00
Mike Jolley 250e9ff423
Merge pull request #22609 from woocommerce/fix/22545
add DAY_IN_SECONDS to cron sale price removal check for consistency with #22189
2019-02-05 11:00:35 +00:00
Mike Jolley 6a3d79f677
Merge pull request #22638 from sultann/master
fix wrong variable checking
2019-02-05 10:53:53 +00:00
Mike Jolley d644f84e42
Merge pull request #22624 from tivnet/patch-6
WC_Log_Handler_File::remove - fix for MS Windows
2019-02-05 10:49:25 +00:00
Mike Jolley becd76d74f
Merge pull request #22649 from woocommerce/fix/obw-storefront-not-offered-with-wp-5-default-theme
OBW: Offer Storefront when WP 5.0 default theme is active
2019-02-05 10:43:46 +00:00
Mike Jolley 5f5272ba2e
Merge pull request #22541 from woocommerce/pr/20830
Init cart widget when added to sidebar via the customizer
2019-02-05 10:39:29 +00:00
Mike Jolley c7d2b1ac9b
Merge pull request #22646 from woocommerce/fix/22118
Fix Hold-stock behavior between simple products and variable products
2019-02-05 10:37:45 +00:00
Ron Rennick 7b5810d3da limit page 2 not showing products to shop showing subcategories 2019-02-04 13:52:06 -04:00
Ron Rennick 249bf99df5 phpcs sniff fixes for class-wc-product-data-store-cpt.php 2019-02-04 12:55:21 -04:00
Ron Rennick e64914bb3c add DAY_IN_SECONDS to cron sale price removal check for consistency with #22189 2019-02-04 12:54:33 -04:00
Mike Jolley ebdeab4c22 Added woocommerce_paypal_force_one_line_item filter 2019-02-04 16:31:17 +00:00
Mike Jolley c47a6b9172 Tools and status require rest API init 2019-02-04 16:04:25 +00:00
Mike Jolley 53b9e219e7 Add notice when registration is complete 2019-02-04 15:49:10 +00:00
Mike Jolley eed91070b1 Allow notice to persist after customer ID change 2019-02-04 15:48:59 +00:00
Mike Jolley 5b3b285a9d phpcs 2019-02-04 15:31:35 +00:00
Paul Dechov 4164305b3c OBW: Offer Storefront when WP 5.0 default theme is active
Because the OBW hadn't been updated to consider Twenty Nineteen a default theme, Storefront was omitted from the 'Recommended' step on the basis of Twenty Nineteen's WooCommerce support.
2019-02-04 09:58:39 -05:00
Mike Jolley 600510ea6f Using wrong post type name in comparison 2019-02-04 13:56:35 +00:00
Mike Jolley 0f731d9c3f
Merge pull request #22642 from nishitlangaliya/issue-22601
fix:No alert for mis-matched password reset
2019-02-04 13:41:32 +00:00
Mike Jolley 1928f34699 Add notice hash to store notice cookie
Closes #21963
2019-02-04 13:18:09 +00:00
Mike Jolley 893b33973c Merge branch 'fix/22147' 2019-02-04 13:05:40 +00:00
Mike Jolley a5d62b83a8 Merge branch 'enhancement/woocommerce_display_product_attributes' 2019-02-04 11:25:13 +00:00
Mike Jolley 34dbf96847
Merge pull request #22410 from woocommerce/remove/simplify-commerce
Remove simplify commerce gateway from core
2019-02-04 11:23:23 +00:00
Mike Jolley fe2e70d7dc
Merge pull request #22392 from woocommerce/fix/checkout-shipping-address-20975
For logged in customers, pull default address fields from customer object, not session object
2019-02-04 11:23:03 +00:00
Mike Jolley 24bc59a025
Merge pull request #22443 from woocommerce/fix/21705
Placeholder resizing improvements
2019-02-04 11:13:49 +00:00
Mike Jolley 7a1536eb5b
Merge pull request #22615 from woocommerce/performance/rest-api-includes
Performance: rest api includes
2019-02-04 11:12:12 +00:00
Mike Jolley a4acf5643a
Merge pull request #22533 from woocommerce/fix/21265
Exclude `paged` from price slider
2019-02-04 10:18:51 +00:00
nishitlangaliya e375ffd6e7 fix:No alert for mis-matched password reset 2019-02-04 12:02:59 +05:30
MD Sultan Nasir Uddin 527c7bc03a fix wrong variable checking 2019-02-02 15:54:33 +06:00
Mike Jolley 7093c652e7 Add localisation to new label 2019-02-01 17:13:41 +00:00
Mike Jolley a0f47fb429 404 on endpoints 2019-02-01 16:56:00 +00:00
Mike Jolley 5825a66a30 Cleanup method 2019-02-01 16:55:51 +00:00
Kelly Dwan a2d5d3dff7 Accessibility: Add a label for product rating star icons 2019-02-01 11:47:14 -05:00