Commit Graph

18463 Commits

Author SHA1 Message Date
Mike Jolley b697be51d4 Remove call to header_register_callback and revert to 3.5 cookie handling 2019-04-17 23:50:42 +01:00
Claudio Sanches 669542ed7d Adds offerCount to variable product's structured data 2019-04-17 14:04:52 -03:00
Timmy Crawford 763d3aec33
Merge pull request #23332 from woocommerce/fix/tracks-cookie-save
Set tracks cookie on wp hook instead on when calling record event.
2019-04-17 06:20:24 -07:00
Gerhard 9ad8ef56da Be sure to also print the wp script since the OBW does not include those by default in the footer. 2019-04-17 14:56:51 +02:00
Gerhard fee86cd8cd Move JS to woocommerce_setup_footer and do not output wp scripts. 2019-04-17 14:54:59 +02:00
Gerhard 5c7b069d17 Use wp_loaded for cookie set 2019-04-17 14:23:19 +02:00
Gerhard f65f7a6d59 Remove wc_setcookie usage in WC_Tracks_Client::get_anon_id 2019-04-17 14:20:21 +02:00
Mike Jolley 111684ef32 Correctly handle images in v3 api 2019-04-17 13:18:33 +01:00
Mike Jolley f18542aa71 remove slash from currency code string 2019-04-17 12:06:57 +01:00
Mike Jolley 4e50a8f6dd Escape strings passed to selectwoo 2019-04-17 12:02:20 +01:00
Gerhard 00e8aeef60 Use __CLASS__ instead of self 2019-04-17 11:51:07 +02:00
Gerhard c74df4ca11 Set tracks cookie on wp hook instead on when calling record event. 2019-04-17 11:39:50 +02:00
Gerhard 8ca0bd7b4d Add logic to wc_let_to_num to handle non int values, added unit tests to cover these scenarios 2019-04-17 10:30:49 +02:00
Mike Jolley 9863362de3
Merge pull request #23315 from woocommerce/update/changes-from-3.5.8
Merge changes from 3.5.8
2019-04-16 14:57:50 +01:00
Mike Jolley d959758abe
Merge pull request #23311 from woocommerce/replace-deprecated-function
Replace call to deprecated function delete_woocommerce_term_meta()
2019-04-16 14:57:05 +01:00
Mike Jolley 7efe831e72
Merge pull request #23308 from webdados/patch-2
Stop using update_woocommerce_term_meta on class-wc-rest-product-categories-controller.php
2019-04-16 14:55:52 +01:00
Rodrigo Primo 20e9701583 Bump selectWoo.full.js version 2019-04-16 14:33:31 +01:00
Gerhard 86ec50f359 Update all *_woocommerce_term_meta calls to *_term_meta calls 2019-04-16 12:14:51 +02:00
Rodrigo Primo a18c44d76e Replace call to deprecated function delete_woocommerce_term_meta()
This commit replaces a call to deprecated function `delete_woocommerce_term_meta()` with its replacement `delete_term_meta()`. `delete_woocommerce_term_meta()` was deprecated by 32ae0192e5 and all calls removed, but PR #22553 that was created about the same time added a new call to this function.
2019-04-15 15:33:27 -03:00
Timmy Crawford bf151aee3e
Merge pull request #23303 from woocommerce/fix/23232
Refactor #23300
2019-04-15 11:21:00 -07:00
Timmy Crawford 08c7bee019
Merge pull request #23295 from woocommerce/fix/23291
Check `get_plugin_data` exists in `WC_REST_System_Status_V2_Controller`
2019-04-15 11:18:41 -07:00
Timmy Crawford acc1600594
Merge pull request #23302 from woocommerce/remove/tracks-total-revenue
[3.6] Blocker - remove total revenue from Tracks events.
2019-04-15 11:17:51 -07:00
Timmy Crawford e12e4aaa25
Merge pull request #23304 from woocommerce/fix/link-all-variations
[3.6] Fix logic in link all variations
2019-04-15 11:16:22 -07:00
Timmy Crawford f735883c80
Merge pull request #23306 from JPry/issue_23305
Update Action Scheduler library to 2.2.4
2019-04-15 11:10:42 -07:00
Timmy Crawford 438d22762e
Merge pull request #23246 from franticpsyx/issue-23245
Introduce IN and NOT IN clauses in `WC_Product_Data_Store_CPT::search_products
2019-04-15 11:08:32 -07:00
Marco Almeida 1a251c82ad
Stop using update_woocommerce_term_meta
Stop using the update_woocommerce_term_meta helper function as it has been deprecated on 3.6.0
2019-04-15 17:54:19 +01:00
Jeremy Pry 745ebffbdd
Merge commit '98433d8c3095fa393389988d16e56fe1d302af63' into issue_23305
Updates the Action Scheduler library to version 2.2.4.

* commit '98433d8c3095fa393389988d16e56fe1d302af63':
  Squashed 'includes/libraries/action-scheduler/' changes from 4d221dc6d..f5643fe30
2019-04-15 10:47:01 -04:00
Mike Jolley 6c6785c844
Merge pull request #23269 from marcochiesi/patch-1
Added validation for Italian postcodes
2019-04-15 14:10:01 +01:00
Mike Jolley 1504f8af3e
Merge pull request #23011 from Tofandel/patch-2
Improve the speed of the admin dashboard by only updating transients once per class
2019-04-15 14:03:31 +01:00
Mike Jolley 58161c0ccc
Merge pull request #23122 from fpcuriosity/patch-1
Add taxonomy-specific classes to active filters widget
2019-04-15 13:31:35 +01:00
Mike Jolley c7412415e5
Merge pull request #23092 from woocommerce/fix/23089
Use version_compare for determining max version number
2019-04-15 13:29:29 +01:00
Mike Jolley 2152642146
Merge pull request #23152 from uok/patch-1
Format empty cart message as information notice
2019-04-15 13:27:17 +01:00
Mike Jolley 30129f00ff Fix issue in tests by disabling strict mode 2019-04-15 12:10:22 +01:00
Mike Jolley d0c6c54989 Moved link/create code to data store with new unit test
This code was not testable within ajax code, so moved to the data stores.
2019-04-15 11:59:57 +01:00
Gerhard 134f9c9c8e Fix PHPCS 2019-04-15 12:13:02 +02:00
Ralf 66540f1b5d Moved accessibility labels for checkout after woocommerce_checkout_fields filter 2019-04-15 12:09:33 +02:00
Jeff Stieler 13e40cdee7 Remove total revenue from Tracks events.
Query to calculate is far too expensive and doesn’t seem to ever get cached with large datasets.
2019-04-15 09:37:34 +02:00
David Jensen 9b58e68e85 Remove html tags from product name in request to PayPal 2019-04-12 12:36:30 -07:00
Mike Jolley 4e8342be38 Check get_plugin_data exists 2019-04-12 15:34:52 +01:00
Manos Psychogyiopoulos d4f8435106 Prime post caches before looping through variations
Should help when the AJAX variations threshold is set higher.
2019-04-11 10:59:34 +03:00
Ian Jenkins fa3637c4f1 Bug - Fix for network orders widget when WooCommerce is network active.
Network orders makes most sense when WooCommerce is installed as a
network wide plugin. This change fixes the widget when it is network
active.
2019-04-10 22:58:51 +01:00
Marco Chiesi e2dd7504d0
Added validation for Italian postcodes 2019-04-10 23:44:50 +02:00
Gerhard 96906d9efa PHPCS Fixes 2019-04-10 14:53:03 +02:00
Mike Jolley fe385c9f74 fix query by adding alias 2019-04-10 13:48:03 +01:00
Gerhard 8716c7451c PHPCS fixes 2019-04-10 14:29:40 +02:00
Mike Jolley 2e24cc7b0c Switch to subquery for sale product query 2019-04-10 12:43:22 +01:00
Mike Jolley dfcc5e16e5 update wording 2019-04-10 11:51:41 +01:00
Mike Jolley 945ff7958f
Merge pull request #23101 from woocommerce/update/23090
Add table ENGINE to system status report
2019-04-10 11:32:51 +01:00
Mike Jolley deaaa5d1d8 Remove two old moved-feature notices 2019-04-10 11:23:35 +01:00
Mike Jolley 91084f3e28 Add todo for legacy shipping notice 2019-04-10 11:23:04 +01:00
haszari 7ede25add7 use admin_url to generate manage suggestions url (support multisite etc) 2019-04-10 12:16:49 +12:00
haszari cd9101bb58 fix target url of 'Manage Suggestions', settings are now in 'Advanced' 2019-04-10 12:02:09 +12:00
Timmy Crawford 8bccfcca1a more phpcs fixes. 2019-04-09 11:34:34 -07:00
Timmy Crawford 81c679181c PHPCS fixes. 2019-04-09 10:18:47 -07:00
Timmy Crawford f2b55bf060 Move suggestions/tracks settings to new Advanced | WooCommerce.com page. 2019-04-09 09:38:26 -07:00
Mike Jolley 91e21644cf Style descriptions after select2 boxes 2019-04-09 15:02:05 +01:00
Mike Jolley cb27b40c67 Search for 'number' anywhere in cell, not just the end 2019-04-09 14:37:46 +01:00
Ewout Fernhout ca00798dd1
add $this to invoice email filters 2019-04-09 15:24:17 +02:00
Ewout Fernhout 6e2f1736ce
add $this to refunded order email filters 2019-04-09 15:22:26 +02:00
Ewout Fernhout fafc829c4d
Add $this parameter to email class hooks
see #23209
2019-04-09 15:19:21 +02:00
Mike Jolley 0cd429dad9 Avoid post update in wc_update_product_stock 2019-04-09 12:47:51 +01:00
Manos Psychogyiopoulos 861d42f368 Fix IN type 2019-04-09 05:48:08 +03:00
Manos Psychogyiopoulos b1d7b2c6d0 Refactor json_search_downloadable_products_and_variations 2019-04-09 05:41:49 +03:00
Manos Psychogyiopoulos f6c560d684 Introduce IN and NOT IN clauses in `WC_Product_Data_Store_CPT::search_products`
closes #23245
2019-04-09 05:33:50 +03:00
haszari 36f1dbf7fb ensure no-suggestions state "manage" link triggers tracks event 2019-04-09 13:53:25 +12:00
Timmy Crawford b35945c5f5 PHPCS fix. 2019-04-08 17:21:50 -07:00
Timmy Crawford e4552c571d Only show suggestions setting when current user can install_plugins 2019-04-08 16:27:32 -07:00
Timmy Crawford ae66f195a5 Add link to manage suggestions in default/empty view 2019-04-08 16:24:52 -07:00
Timmy Crawford 4a2c706cc0 Add setting to control display of marketplace suggestions. 2019-04-08 16:24:52 -07:00
Timmy Crawford 616af5c28d
Merge pull request #23216 from woocommerce/update/tracks-opt-out
[3.6] Update opt-out usage tracking text.
2019-04-08 14:27:08 -07:00
Timmy Crawford 7ac179f7b8
Merge pull request #23229 from woocommerce/add/manage-suggestions-metabox-link
[3.6] Add manage suggestions link into browse-all metabox footer
2019-04-08 13:59:35 -07:00
Timmy Crawford b4352c8b32
Merge pull request #23203 from woocommerce/update/23199
[3.6] Prevent removal of the wc- prefix from non core order statuses
2019-04-08 12:13:11 -07:00
Timmy Crawford 886d1acca5 Updates to usage tracking text per feedback. 2019-04-08 12:00:11 -07:00
Timmy Crawford 57de03a7d0
Merge pull request #23231 from woocommerce/fix/tracks-issues
[3.6]Tracks: various fixes
2019-04-08 11:09:38 -07:00
Timmy Crawford 06bec2e845
Merge pull request #23210 from woocommerce/update/fb-recommendation-end-date
[3.6] OBW: Display FB recommendation until removed
2019-04-08 10:32:32 -07:00
Timmy Crawford ef4f0f0c0f
Merge pull request #23197 from woocommerce/fix/23182
[3.6] Fix backwards compatibility issues for wc_get_template function w/ tests
2019-04-08 10:19:16 -07:00
Peter Fabian eb99d0f152 Updated back to link for attribute terms. 2019-04-08 18:37:23 +02:00
Peter Fabian 36d2c96faa Added is-active class to Orders when looking at individual order under My Account. 2019-04-08 16:49:44 +02:00
Peter Fabian f757c6c60d PHPCS fixed. 2019-04-08 16:48:57 +02:00
Paul Sealock 1d7cd1722a Tracks: various fixes 2019-04-08 15:58:03 +12:00
haszari d2ff99189c enqueue translatable string for `Manage suggestions` link 2019-04-08 15:45:41 +12:00
Timmy Crawford 72b9555706 Update opt-out usage tracking text. 2019-04-05 12:59:32 -07:00
Valerie 0d1c1ec7b6 OBW: Display FB recommendation until removed
Instead of ending the FB recommendation on
a specific date we'll remove it when needed.
2019-04-04 13:34:40 -04:00
Mike Jolley 1cd2959087 unset rather than prevent the template being included. 2019-04-03 16:08:12 +01:00
Mike Jolley 274a471167
Merge pull request #23194 from woocommerce/fix/23171
[3.6] Fix results from wp_term_counts when sorting by menu_order
2019-04-03 15:46:01 +01:00
Mike Jolley 9ea63486e6 Add get_post_status helper method and ensure prefix gets added for most statuses 2019-04-03 14:21:38 +01:00
Mike Jolley b1a811ca46 Replace spaces 2019-04-03 11:58:08 +01:00
Mike Jolley 11db10807d Add check for VAT excemption inside display_prices_including_tax 2019-04-03 11:36:43 +01:00
Mike Jolley 5ed25e1734 Notice if args are attempted to replace 2019-04-02 15:17:52 +01:00
Mike Jolley 51b3e4f213 Use action_args rather than $template variable which could have been overwritten
Co-Authored-By: dinhtungdu <dinhtungdu@gmail.com>
2019-04-02 14:07:48 +01:00
Mike Jolley a66adf0829 Replace full stops before parse_str 2019-04-02 13:58:37 +01:00
Mike Jolley 2f0b8cced5 Flip logic so counts ignore sorting rules 2019-04-02 11:56:47 +01:00
Mike Jolley b1e71074b2
Merge pull request #23174 from szepeviktor/patch-2
Fix stray char in PHPDoc of WC_Coupon
2019-04-01 12:46:28 +01:00
Iskander (Alex) Sharipov 00f5b24e33
fix strpos arguments order
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-03-30 03:39:50 +03:00
Viktor Szépe 9e7fc0a35d
Fix stray char in PHPDoc of WC_Coupon
`|`
2019-03-30 00:48:17 +01:00
Viktor Szépe bd6a348af5
Fix PHPDoc in WC_Product_Importer
old stuff
2019-03-30 00:35:32 +01:00
Timmy Crawford ae1841a82c
Merge pull request #23162 from thenbrent/fix/23121
Update Action Scheduler to v2.2.3
2019-03-28 07:42:55 -07:00
Brent Shepherd f450c8d92a Remove Action Scheduler development files 2019-03-28 15:33:41 +10:00
Brent Shepherd fbfd91f6b9 Merge commit '2492f1e0ed366694059091f434743f52a6e5202d' as 'includes/libraries/action-scheduler' 2019-03-28 15:31:13 +10:00
Brent Shepherd 3e3d15e6cc Remove non-subtree'd /action-scheduler/ 2019-03-28 15:30:35 +10:00
Timmy Crawford 800ad318e3 OBW: Ensure tracker opt-in is always shown. 2019-03-27 15:29:55 -07:00
Timmy Crawford 4cad501098
Merge pull request #23146 from woocommerce/fix/22695
Update fallback download URL in helper
2019-03-27 15:01:10 -07:00
Timmy Crawford 0b113621a6
Merge pull request #23145 from woocommerce/fix/23107
Introduce `wc_create_new_customer_username` function
2019-03-27 14:59:24 -07:00
Timmy Crawford 9601bc64d1
Merge pull request #23138 from woocommerce/fix/23103
REST API: Adds future status to list of allowed statuses
2019-03-27 13:19:32 -07:00
Timmy Crawford 91d412f150
Merge pull request #23149 from woocommerce/update/23144
Update refund reason to make it clear refunding is manual
2019-03-27 13:18:53 -07:00
Timmy Crawford eb106853c5
Merge pull request #23156 from woocommerce/fix/23121
5.2 fix from ActionScheduler
2019-03-27 13:18:14 -07:00
Rodrigo Primo cbf6149cb9
Merge pull request #23069 from woocommerce/fix/23061
Variation stock status field handling (displaying/hiding when needed)
2019-03-27 14:51:26 -03:00
Rodrigo Primo 5d8ca32789
Merge pull request #23131 from woocommerce/fix/23118
`WC_Ajax::add_variation` force variable product type
2019-03-27 14:20:35 -03:00
Mike Jolley 4d5cda49c2 Hotfix for AS
Pulls in the fix from https://github.com/Prospress/action-scheduler/pull/268
2019-03-27 14:45:36 +00:00
Timmy Crawford 5a33e13432
Merge pull request #23151 from woocommerce/fix/emogrifier-conflict
Update Emogrifier class and usage
2019-03-27 07:27:14 -07:00
Mike Jolley ad49085571 Append random number to reduce recusion 2019-03-27 12:22:15 +00:00
Mike Jolley ded4f8bf3e Use string to avoid 5.2 warning 2019-03-27 11:35:45 +00:00
Timmy Crawford 8b24528b16
Merge pull request #23102 from woocommerce/update/prevent-fatal-errors-when-extending-rest-api
If someone tries to load WC_REST class to early, throw notice
2019-03-26 17:19:06 -07:00
Ben S c1a6cdb873
Format empty cart message as information notice 2019-03-26 18:35:21 +01:00
Mike Jolley ea19f732fd min/max functions instead of orderby 2019-03-26 14:41:27 +00:00
Mike Jolley b09a5f8003 Update Emogrifier 2019-03-26 14:24:21 +00:00
Mike Jolley c79e3ad8f1 Detect all rest endpoints, not just wc/ 2019-03-26 14:06:22 +00:00
Mike Jolley bdc009cfbf Update refund reason to make it clear refunding is manual 2019-03-26 12:46:27 +00:00
Mike Jolley 3a8c3b3813 Update download URL in helper 2019-03-26 11:36:41 +00:00
Mike Jolley 2b8f8e38d1 wc_create_new_customer_username function 2019-03-26 11:09:37 +00:00
Mike Jolley 8aeff9bb2f Adds future status to list of allowed statuses 2019-03-25 15:19:48 +00:00
Mike Jolley 58651e8a2a When moving data for lookup tables, avoid orderby 2019-03-25 14:23:36 +00:00
Mike Jolley 8e4807ac92 Correct keys when migrating attribute data 2019-03-25 12:27:18 +00:00
Mike Jolley 174ca94b79 WC_Ajax::add_variation - force variable product type 2019-03-25 11:56:48 +00:00
Francesco Pinto 69d4d9b221
Fixed Coding Standard 2019-03-23 20:58:36 +01:00
Francesco Pinto d1df273f9e
Fixed Coding Standards 2019-03-23 20:28:58 +01:00
Francesco Pinto c2bd9bcdf5
Add taxonomy-specific classes to active filters 2019-03-23 18:03:01 +01:00
Kelly Dwan 8c109f7925 Shortcut out if we see the feature plugin, v1.4 or below 2019-03-22 10:48:06 -04:00
Mike Jolley 8ad8a4efa5 Deprecation functions should not output errors during REST requests. 2019-03-21 16:26:33 +00:00
Mike Jolley 3ff2c2f053 If someone tries to load WC_REST class to early, throw notice and include rest api classes 2019-03-21 15:38:29 +00:00
Mike Jolley c5defa6a1e Add engine to system status 2019-03-21 14:39:33 +00:00
Gerhard 778245bc43 Revert test 2019-03-20 16:06:11 +02:00
Gerhard 4edd63fedf usort not uasort 2019-03-20 14:06:13 +02:00
Gerhard fb0e2db448 Keep track of version numbers in seperate variable before sorting it 2019-03-20 14:05:12 +02:00
Gerhard 6234b7bd13 uasort does not return a value but instead works by reference. 2019-03-20 14:00:26 +02:00
Gerhard b97e780b0b Use version_compare for finding the latest version and not max as it is not string friendly. 2019-03-20 13:56:57 +02:00
Mike Jolley 97f30e7f5c Variation stock status handling 2019-03-18 12:56:49 +00:00
Mike Jolley 986375862e
Merge pull request #23057 from freer4/patch-1
Allow extension of WC_Breadcrumb class
2019-03-18 11:38:01 +00:00
Mike Jolley 4130f737fc Merge branch 'master' of https://github.com/woocommerce/woocommerce 2019-03-18 10:59:58 +00:00
Mike Jolley 4d975a6e62 Merge branch 'pr/23054' 2019-03-18 10:59:55 +00:00
Mike Jolley cbb92ef86c combine check 2019-03-18 10:59:43 +00:00
Mike Jolley 37bc893aba
Merge pull request #23039 from woocommerce/update/plugin-rating-notice-text
Update the rating request text in the footer to be friendlier for screen reader users
2019-03-18 10:38:53 +00:00
Gerhard a7571c71c1 Fix typo in lookup table notice markup 2019-03-18 10:11:05 +02:00
freer4 701d92233c
Allow extension of WC_Breadcrumb class
Changing the private class methods to protected allows extending the class to work with the built-in functionality. 

The desired effect - removing the "Shop" crumb - was not possible with the few filters available interspersed in this class. 

After much hair-pulling over the simple task of excluding one breadcrumb and the stubborn refusal to copy-pasta the entire class into my theme, I choose to extend the WC_Breadcrumb class to override the already-public add_crumb method. Without access to the other methods on the class, this was futile. 

There are several asks around the web for removing or updating the breadcrumbs. The accepted answer to these appears to be to "just hide it with CSS" which is a poor workaround.
2019-03-17 02:43:00 -04:00
Silicon Forks 19a7bb82a0 Fix image regeneration check when image is not cropped
Resolves #21800.
2019-03-16 12:39:40 -03:00
Kelly Dwan 3f5aaad117 Update @woocommerce/block-library to 2.0.0-rc1 2019-03-15 13:06:38 -04:00
Kelly Dwan b066922c40 Update the rating request text in the footer to be friendlier for screen reader users 2019-03-15 12:05:27 -04:00
Claudio Sanches a425e92672 Removed legacy "Orders index" tool 2019-03-15 11:34:32 +00:00
Mike Jolley ccc5805632 Use secure and http cookies 2019-03-15 11:34:10 +00:00
Mike Jolley bd34e89314 Merge branch 'pr/23035' 2019-03-15 11:25:10 +00:00
Mike Jolley 0ae50509ce code standards 2019-03-15 11:25:04 +00:00
Timmy Crawford e1c09b4609
Merge pull request #22973 from woocommerce/update/22545
Revised sale start/end date save logic
2019-03-14 17:53:40 -07:00
Adrien Foulon 700d89f8ff
Fix missing parenthesis 2019-03-14 23:55:02 +01:00
Claudio Sanches d365497a66 Fixed coding standards 2019-03-14 19:48:47 -03:00
Adrien Foulon d53d6f6a7d
phpcs 2019-03-14 23:18:47 +01:00
Adrien Foulon 7a470fb117
Separating nocache and cache logic for clarity 2019-03-14 23:16:55 +01:00
Adrien Foulon 0391b11b20
Review 2019-03-14 23:05:54 +01:00
Timmy Crawford ade88ffc31
Merge pull request #23031 from woocommerce/update/update-routine-lookup-table
Lookup table updates over CLI
2019-03-14 12:45:09 -07:00
Daniel Kudwien 7702f773b9 Fixed WooCommerce writes current_theme_supports_woocommerce option on every page view. 2019-03-14 20:09:43 +01:00
Adrien Foulon 7d77241ed2
Move variable definitions in class 2019-03-14 16:44:26 +01:00
Mike Jolley 1e83864667 Improve updates of onsale/virtual 2019-03-14 12:57:48 +00:00
Renovate Bot b358278c62
Pin dependency wp-cli/wp-cli to 1.5.1 2019-03-14 11:52:54 +00:00
Mike Jolley 062d147b59 When using CLI, run queries without queue 2019-03-14 11:46:41 +00:00
Mike Jolley 520c517410
Merge pull request #23019 from woocommerce/update/onsale-lookup
onsale lookup table
2019-03-14 11:10:35 +00:00
Gerhard Potgieter fbb18db896
Merge pull request #22971 from woocommerce/fix/22958
Reword cancelled email
2019-03-14 10:07:12 +02:00
Gerhard Potgieter 8c09e28be4
Merge pull request #22994 from woocommerce/try/product-metabox-no-suggestions-polish
Show linkout to Marketplace when there are no product metabox suggestions to display
2019-03-14 09:35:15 +02:00
Gerhard Potgieter be926cd6ff
Merge pull request #23027 from dhavalgshah/feature/23026
Add $this context to woocommerce_email_styles filter.
2019-03-14 09:31:02 +02:00
Gerhard Potgieter d8f32ff209
Merge pull request #23001 from woocommerce/fix/22993
After logging in, update session customer ID
2019-03-14 09:26:00 +02:00
mindmantra 8cb0e42551 Add $this context to woocommerce_email_styles filter.
see: #23026
2019-03-14 12:13:55 +05:30
haszari 9f11374edf wrap button text label for translation 2019-03-14 14:56:35 +13:00
haszari cfa6f58b8f wrap no-suggestions strings for translation 2019-03-14 14:56:34 +13:00
haszari a751e6a054 content & icon for no-suggestions state in product edit metabox 2019-03-14 14:56:33 +13:00
Adrien Foulon 005d7491cf
Cleanup 2019-03-13 22:28:09 +01:00
Adrien Foulon 55339a2870
Cache setter and getter wrapper 2019-03-13 22:21:09 +01:00
Adrien Foulon 8d866d9df7
Fix error wpdb global 2019-03-13 21:19:21 +01:00
Adrien Foulon 322eed0b2c
Fix error 2019-03-13 19:06:47 +01:00
Mike Jolley 6995e6ec84
Merge pull request #22981 from woocommerce/update/22976
Updating geolocation download to avoid wp_upload_dir and direct filesystem access
2019-03-13 17:41:54 +00:00
Mike Jolley 8d0ec76cea Update the table on save 2019-03-13 17:33:44 +00:00
Adrien Foulon 11e8f087e8
Fix get cached query call 2019-03-13 18:18:59 +01:00
Mike Jolley 6de8a03f1a Merge branch 'master' into update_action_scheduler_2_2_1 2019-03-13 17:18:36 +00:00
Mike Jolley 53896e3149 onsale lookup 2019-03-13 17:14:20 +00:00
Mike Jolley 337b6cdc60 Link had wrong styling - it does not dismiss 2019-03-13 17:07:33 +00:00
Adrien Foulon 99358e7763
Remove whitespaces on empty lines 2019-03-13 18:00:13 +01:00
Adrien Foulon eefbaff3ea
Remove whitespaces on empty lines 2019-03-13 17:59:34 +01:00
Adrien Foulon cc65b2d856
Apply code review 2019-03-13 17:54:13 +01:00
Adrien Foulon 80435d779f
Apply code review 2019-03-13 17:52:28 +01:00
Ron Rennick 340bf79fda add 2 new files missed in original commit 2019-03-13 12:25:05 -03:00
Mike Jolley e2e124f365
Merge pull request #22083 from woocommerce/feature/variation-search
Added storing attribute values as post_excerpt for variations.
2019-03-13 15:09:19 +00:00
Rodrigo Primo f9cdab66eb
Merge pull request #22889 from woocommerce/fix/22817
Hide 'other' payment method from invoice
2019-03-13 12:01:56 -03:00
Mike Jolley 09d92875fa
Merge pull request #23010 from woocommerce/update/lookup-tables
Update stock reports to use lookup tables
2019-03-13 15:01:07 +00:00
Mike Jolley 16ff51ded3 Use lookup table ID 2019-03-13 15:00:12 +00:00
Mike Jolley 4b077a22e8 Remove customer name 2019-03-13 14:40:37 +00:00
Mike Jolley a44cba5923 Update subject 2019-03-13 14:38:04 +00:00
Mike Jolley 1dfb38c0a9
Merge pull request #23014 from woocommerce/update/add-caching-tracks-blog-details
Add transient caching to tracks blog data collection.
2019-03-13 14:28:10 +00:00
Mike Jolley 39e5de3324
Merge pull request #23007 from woocommerce/add/wc-blocks-v1/docblock-updates
REST API: Add Private REST API docblock and response headers.
2019-03-13 14:26:13 +00:00
Mike Jolley 955e91c5ef Use internal docblock comment 2019-03-13 14:24:11 +00:00
Ron Rennick 51afb3589b update version in action scheduler plugin header 2019-03-13 11:01:11 -03:00
Mike Jolley 4b2f7aedd4 Trigger sync after updating meta 2019-03-13 13:53:58 +00:00
Mike Jolley 0002463c61 child_has_stock_status use lookup 2019-03-13 13:48:38 +00:00
Ron Rennick 74789834fe update action scheduler to version 2.2.1 2019-03-13 10:45:39 -03:00
Mike Jolley d17dc119bc SKU lookup 2019-03-13 13:30:49 +00:00
Mike Jolley df0c432de2 update_product_stock should sync lookup table 2019-03-13 13:30:31 +00:00
Mike Jolley f6d9e7796f is_existing_sku use lookup 2019-03-13 13:25:55 +00:00
Gerhard e86fbf62cc Add transient caching to the blog_details values tracks collects. 2019-03-13 15:12:07 +02:00
Adrien Foulon fa9b08c9a4
Make the maybe_update_transients hook static so it's not constructor dependant
Because extended classes don't call the parent constructor and that would break BC
2019-03-13 13:47:00 +01:00
Mike Jolley e6c60dd6c2 Show notice when regeneration is taking place with link to AS 2019-03-13 12:25:20 +00:00
Rodrigo Primo 5d14d30b8c Remove outdated comment
Commit
be05eea5da (diff-133db5662c51f5686d87611121a05a3bL88)
changed how ajax events are stored and now an associative array is not used anymore for both private and non private events. Instead two different arrays are now used one for each type of event.
2019-03-13 09:21:29 -03:00
Rodrigo Primo ab89222cfa Fix typo
Typo added in be05eea5da (diff-133db5662c51f5686d87611121a05a3bR45)
2019-03-13 09:10:53 -03:00
Adrien Foulon bc34c6e3eb
Fix php5.2 support 2019-03-13 12:11:49 +01:00
Mike Jolley 2c14a8ddfb
Merge pull request #23006 from woocommerce/fix/phpcs-error
Fix error introduced by commit be05eea5da
2019-03-13 10:59:17 +00:00
Adrien Foulon a520cb5f44
Rename function 2019-03-13 11:55:18 +01:00
Adrien Foulon b2ad443db5
phpcs 2019-03-13 11:51:48 +01:00
Adrien Foulon 95cbe5c969
phpcs 2019-03-13 11:51:24 +01:00
Mike Jolley b4cfef95a2 Stop calling notice file 2019-03-13 10:40:38 +00:00
Mike Jolley 54fac746b3 Remove unused notice file 2019-03-13 10:40:11 +00:00
Mike Jolley 6f4eeef2fe Move deprecated notices to bottom of class and add deprecated tag 2019-03-13 10:37:30 +00:00
Adrien Foulon 13b5a07383
Update class-wc-admin-report.php 2019-03-13 11:35:42 +01:00
Adrien Foulon ee403d6000
Improve the speed of the admin dashboard by only updating transients once per class
While debugging the admin dashboard I found out that some transients where updated up to 5 times during the page load, reading is fast but writting is costy, so the query where adding a total of 200ms to the page load (because they are also huge transients)

I've rewritten the transient storage procedure so that per class a transient is only written once at the end of the request

I also found that a continue was changed for a break line 139 for php7.3 and the new warning it incurs, the problem is it was changed the  wrong way, it should have been a "continue 2" to continue the foreach and not a break.

That makes me wonder if some others like this may have slipped in the code.
2019-03-13 11:33:03 +01:00
Mike Jolley ef352c2b48 Outofstock lookup 2019-03-13 10:10:24 +00:00
Mike Jolley b4aa0c3915 use found rows 2019-03-13 10:06:49 +00:00
Mike Jolley f5bd3be2c2 most stocked lookup table 2019-03-13 09:59:14 +00:00
Timmy Crawford f7b58862f0 Fix phpcs issues. 2019-03-12 17:10:48 -07:00
Timmy Crawford 6c22bfb96a REST API: Add Private REST API docblock and response headers. 2019-03-12 16:26:10 -07:00
Rodrigo Primo a41e29e05f Fix error introduced by commit be05eea5da
Commit be05eea5da (diff-133db5662c51f5686d87611121a05a3bR1420) fixed all the PHPCS violations in includes/class-wc-ajax.php, but it unintentionally changed that the logic of WC_Ajax::json_search_products(). This commit reverts the changes to the old logic while keeping the PHPCS fixes.

Before the modification mentioned above, `$_GET['term']` would be used only if `$term` was empty. After this modification, `$_GET['term']` is used whenever it is set and `$term` (the parameter passed to the method) stopped being used. This commit restores the original logic in that what is passed in the first parameter as `$term` is used by default, and `$_GET['term']` is only used if `$term` is empty.
2019-03-12 20:23:28 -03:00
Mike Jolley ac21a4bc33 phpcs 2019-03-12 22:26:53 +00:00
Mike Jolley 3b98d2de8d Switch low stock report to lookup table
Baseline page load time down from 60s to 0.7s
2019-03-12 22:26:46 +00:00
Mike Jolley a6a035ec92 Fix low stock query to ref correct lookup table column 2019-03-12 22:16:42 +00:00
Mike Jolley c52eac2871 check updated props for variables 2019-03-12 19:22:30 +00:00
Rodrigo Primo 47135c6a68
Merge pull request #22997 from woocommerce/fix/22992
Add stock to search results manually
2019-03-12 15:12:43 -03:00
Mike Jolley 203dba5a1f After logging in, migrate session data 2019-03-12 16:36:15 +00:00
Mike Jolley 5b1814016b Add stock with different function 2019-03-12 14:48:05 +00:00
Rodrigo Primo c4d6f3dac3 Replace deprecated WPCS rule
This commit replaces all the instances where the WPCS rule `WordPress.VIP.SlowDBQuery` was used with `WordPress.DB.SlowDBQuery`. `WordPress.VIP.SlowDBQuery` was deprecated in WPCS 2.0 and `WordPress.DB.SlowDBQuery` was added as a replacement (see 5f27d8e3a4/CHANGELOG.md (L130)).
2019-03-12 11:24:09 -03:00
Mike Jolley f8dded8b49 merge refactor/22762 into master 2019-03-12 13:49:10 +00:00
Mike Jolley 20d7603dd6 Merge branch 'fix/21034' 2019-03-12 13:47:08 +00:00
Mike Jolley 4ab3cc2204 Merge branch 'update/21017' 2019-03-12 13:45:48 +00:00
Mike Jolley 561afbabbd
Merge pull request #22949 from woocommerce/update/22929
Update order discount display
2019-03-12 13:35:42 +00:00
Mike Jolley 925ef8a8f5
Merge pull request #22979 from woocommerce/fix/22952
Set reply-to address for all emails
2019-03-12 13:34:41 +00:00
Mike Jolley c39f447ff4 Merge branch 'fix/22937' 2019-03-12 13:27:13 +00:00
Mike Jolley a5e956e7bf
Merge pull request #22980 from woocommerce/fix/22968
Pass user ID when adding coupons via admin
2019-03-12 13:22:40 +00:00
Mike Jolley 638812cdd3
Merge pull request #22904 from woocommerce/update/20577
Updates - Docs and ActionScheduler implementation
2019-03-12 13:21:48 +00:00
Peter Fabian fb0f112c6d Update the db only once if both title and attributes got updated. 2019-03-12 12:55:15 +01:00
Gerhard 10557868dd Missing space after != 2019-03-12 12:04:26 +02:00
Mike Jolley d8f665bb89
Merge pull request #22936 from woocommerce/fix/21814
Setup Wizard: Add keyboard events for custom input toggles
2019-03-12 09:28:37 +00:00
Mike Jolley 72870d808c
Merge pull request #22890 from woocommerce/fix/21785
Avoid changing tracking preferences when disconnecting helper
2019-03-11 17:04:29 +00:00
Mike Jolley 1d7059ec90 Add other check in order totals too 2019-03-11 16:59:38 +00:00
Mike Jolley 0211757e47
Merge pull request #22988 from woocommerce/fix/payment-custom-section-saving
Refactor WC_Settings_Payment_Gateways::save
2019-03-11 16:08:24 +00:00
Mike Jolley dbfd06222a tweak logic to only save ordering when section is empty 2019-03-11 16:06:53 +00:00
Mike Jolley 749493b4f4
Merge pull request #22867 from woocommerce/fix/22838
Refactor delete zone/delete zone method data store to remove settings
2019-03-11 15:55:53 +00:00
Mike Jolley 587f792868 Dupe line 2019-03-11 15:55:25 +00:00
Mike Jolley 0877e7d8f7
Merge pull request #22954 from woocommerce/add/blocks-rest-api
Merge blocks branch: add 8 product blocks and related API endpoints
2019-03-11 15:18:20 +00:00