Commit Graph

28862 Commits

Author SHA1 Message Date
Rodrigo Primo 4ca5afe248 Add unit tests to cover some of the WC_Session_Handler methods 2018-09-26 14:48:28 -03:00
Rodrigo Primo 734a9370be Change query to save session data
Use `INSERT ... ON DUPLICATE KEY UPDATE` instead of `REPLACE` in the query that saves session data. Doing this to prevent deadlocks in this table. For more information see https://github.com/woocommerce/woocommerce/issues/20912#issuecomment-420888726
2018-09-26 14:46:28 -03:00
Claudiu Lodromanean 3c95707bc0
Update readme.txt 2018-09-26 09:36:20 -07:00
Claudiu Lodromanean 7eb043fd41
Merge pull request #21449 from woocommerce/update/21413
Remove non existing AN country from NA continent
2018-09-26 09:35:53 -07:00
Claudiu Lodromanean b338c14faf
Merge pull request #21445 from woocommerce/fix/21428
Output notices on woocommerce_before_customer_login_form
2018-09-26 09:34:26 -07:00
Claudiu Lodromanean 4c245b05ce
Update readme.txt 2018-09-26 09:27:47 -07:00
Claudiu Lodromanean 4f250fae23
Update readme.txt 2018-09-26 09:24:15 -07:00
Claudiu Lodromanean 84965af5e3
Merge pull request #21391 from netzkollektiv/master
fixes an issue with additional payment select fields having 'disabled…
2018-09-26 09:23:24 -07:00
andgrankin 526e3826e8
Update documentation
Update documentation for methods set_coupon_discount_totals and set_coupon_discount_tax_totals
2018-09-26 22:43:17 +07:00
Dominik Krebs 0af4941187 corrected code style 2018-09-26 16:10:37 +02:00
dyszczo 6019e91e5e php 5.3 compatibility 2018-09-26 15:53:52 +02:00
dyszczo 94ed5a2460 fix for wc_logger test 2018-09-26 15:37:08 +02:00
Gerhard Potgieter 14aea98d49
Merge pull request #21305 from woocommerce/fix/product-review-type
Save comment_type for product reviews
2018-09-26 13:35:05 +02:00
Gerhard Potgieter a365fb10e9
Merge pull request #21408 from woocommerce/fix/21269
Dont modify attributes orderby when ordering by name
2018-09-26 13:30:40 +02:00
Gerhard Potgieter 2b0e631589 Remove non existing AN country from NA continent 2018-09-26 13:10:00 +02:00
Gerhard Potgieter 0d77d3a777
Merge pull request #21444 from woocommerce/fix/issue-21443
Remove 'order_again' query string to avoid multiple re-orders
2018-09-26 13:03:03 +02:00
dyszczo 7f5122d502 Fix for warning in wc_get_logger when woocommerce_logging_class returns valid logger instance 2018-09-26 12:56:59 +02:00
Gerhard Potgieter 9374e2e79a PHPCS fixes 2018-09-26 12:43:04 +02:00
Gerhard Potgieter 0428ea4f1e When quick edit saving stock, check for numeric value as empty returns true on 0 and you can set stock to 0. 2018-09-26 12:34:19 +02:00
Gerhard Potgieter f637cf3005 After saving attributes check that empty attributes are not disabled in the dropdown. 2018-09-26 12:25:34 +02:00
Gerhard Potgieter 7a323c4a6d Output notices on woocommerce_before_customer_login_form 2018-09-26 11:32:19 +02:00
Boro Sitnikovski 82f3d6f3fb Remove 'order_again' query string to avoid multiple re-orders 2018-09-26 09:39:48 +02:00
Ron Rennick e6de32eeb3 consistently escape gateway ID in payment method template 2018-09-25 16:04:09 -03:00
Claudiu Lodromanean 4b133e10f1
Update readme.txt 2018-09-25 10:58:59 -07:00
Claudiu Lodromanean 6e8f995426
Merge pull request #21424 from thenbrent/update_action_scheduler
Update Action Scheduler to v2.1.0
2018-09-25 10:58:24 -07:00
Claudiu Lodromanean d7090929e2
Merge pull request #21434 from woocommerce/update/template-versions
Template version updates
2018-09-25 10:53:17 -07:00
Claudio Sanches 61f988db63
Merge branch 'master' into fix/product-review-type 2018-09-25 12:35:41 -03:00
Gerhard Potgieter e92256309e Update template version number for template changes in efe06cb147 2018-09-25 12:09:01 +02:00
Claudiu Lodromanean b424213554
Merge pull request #21416 from pierrebuet/master
Show the right size of placeholder image on single product page
2018-09-24 13:03:20 -07:00
pierrebuet 4bed2ddeea Correct spaces 2018-09-24 21:45:55 +02:00
Claudiu Lodromanean 3c6ce3ffcb
Merge pull request #21409 from woocommerce/update/obw-disable-payment-email-when-opted-out
OBW: Disable (not hide) payment email input when opted out
2018-09-24 11:31:01 -07:00
Claudiu Lodromanean 2008b8e2b2
Merge pull request #21384 from woocommerce/fix/rest-api-order-statuses
[REST API] Updated order statuses slugs
2018-09-24 11:28:56 -07:00
Claudiu Lodromanean e597e16e33
Merge pull request #21346 from Spreeuw/patch-6
Fixes #21345
2018-09-24 11:28:01 -07:00
Brent Shepherd 6eddeaec50 PHPCS fixes 2018-09-24 11:43:46 +10:00
Claudiu Lodromanean 60fafd821d
Merge pull request #21414 from woocommerce/update/obw-shipstation-plugin-slug
OBW: update to official ShipStation plugin slug.
2018-09-21 13:06:24 -07:00
pierrebuet db3270a390 Show the right size of placeholder image on single product page
in the template for the product image, wc_placeholder_img_src() returns the thumbnail size of the image.
In order to use 'woocommerce_single' as size, the function needs to be corrected, so the function use the size and not a calculated array of sizes.  wc_get_image_size doesn't return an height for the woocommerce_single size. Further and since the image sizes are declared, there is no need to translate the size to an array.
2018-09-21 19:33:04 +02:00
Jeff Stieler 5fbbd38728 OBW: update to official ShipStation plugin slug. 2018-09-21 10:48:10 -06:00
Khan M Rashedun-Naby f979b43b25 Fix for issue #21395 2018-09-21 14:36:04 +06:00
Paul Dechov 5eea29eb31 OBW: Disable (not hide) payment email input when opted-out 2018-09-20 16:48:43 -04:00
Claudio Sanches 13b265a076 Fixed unit tests 2018-09-20 17:48:31 -03:00
claudiulodro fdef6b4c73 Dont modify attributes orderby when ordering by name 2018-09-20 12:32:06 -07:00
claudiulodro d7afce5f4c Update routine to set reviews comment type 2018-09-20 09:28:39 -07:00
claudiulodro 67d80c35d8 Update cache key to consistently work with all types of chars 2018-09-20 08:21:39 -07:00
Gerhard Potgieter 0566708744
Merge pull request #21400 from wayheming/master
New function hooked
2018-09-20 14:55:57 +02:00
unknown f4c418fa72 New function hooked 2018-09-20 09:23:42 +03:00
Brent Shepherd 0c27837b2b Add cancel_all() to WC_Queue_Interface
And the WC_Action_Queue implementation of WC_Queue_Interface.

This avoids ambiguity between the behaviour of cancel(), which can
be confusing given it technically unschedules all actions for cron
or recurring actions, but only the next instance of a single action.
2018-09-20 15:42:24 +10:00
Brent Shepherd 32d3de3aa8 Use new as_ prefixed Action Scheduler functions 2018-09-20 15:39:56 +10:00
Brent Shepherd e45824a8c3 Update Action Scheduler to v2.1.0
Merge commit '3c610aec4ad1ebef9de8df1f4dae0097fcbf8469'
2018-09-20 12:16:26 +10:00
Brent Shepherd 3c610aec4a Squashed 'includes/libraries/action-scheduler/' changes from bd0277d..963b006
73e9082 Merge pull request #196 from Prospress/version_2_1_0
d9d2a29 Merge pull request #202 from Prospress/issue_179_redux
b876d8c Convert DateTime to ActionScheduler_DateTime
3f90172 Use ActionScheduler_DateTime objects rather than DateTime
5843134 Add test for a DateTime object
b095094 Merge pull request #201 from Prospress/as_unschedule_all_actions
70e76ab Improve unit tests for as_unschedule_action()
c934f4f Add as_unschedule_all_actions()
d693b02 Return a value from as_unschedule_action()
fb7c07f Update docblock on as_unschedule_action()
aef2fce Remove test_local_timezone_offsets_utc()
2d35840 Deprecate get_local_timezone() APIs
3512ad9 Add TimezoneHelper::set_local_timezone()
5024f5c Add TimezoneHelper::get_local_timezone_string()
8e8bffb Add TimezoneHelper::get_local_timezone_offset()
a73ccfe Merge pull request #152 from Prospress/handle_bad_args
f539880 Add more helper methods to ActionScheduler_DateTime class
7485262 Include last-ditch attempt to find correct timezone mapping
c3fb3e5 Update timezone string check
b452722 Add Timezone unit tests
a6dd57d Handle args that cannot be decoded properly
d940ec5 Create Exception interface and InvalidAction exception
959c951 Merge pull request #198 from Prospress/docs_followup
3619fab Fix typos and minor wording tweaks
682bd47 Merge pull request #197 from Prospress/install_docs
09ecfd1 Add Usage docs
3ee8fed Update version to 2.1.0
e8d9073 Merge pull request #194 from Prospress/issue_193
bf377e1 Fix calls to remove_action()
29f5901 Merge pull request #191 from Prospress/issue_176
2ca3735 Merge pull request #192 from Prospress/issue_184
f48341e Only process pending actions
b509c89 Add Compatibility::raise_memory_limit()
53ee32c Restore batch processing loop
b0347fe Add memory APIs to Abstract_QueueRunner
324e734 Improve ActionScheduler_Logger abstraction
be43437 Add Compatibility::convert_hr_to_bytes()
0b33c26 Merge pull request #190 from Prospress/issue_189
00b1d06 Use var_export() for admin list table args column
84ba9b3 Move timing methods to Abstract_QueueRunner
7a93e55 Merge pull request #187 from Prospress/issue_185
e9c3e01 Add ActionScheduler_wpPostStore::validate_action
8dcc262 Merge pull request #186 from Prospress/remove_composer_version
439a1c3 Remove the version from composer.json
2c3c555 Merge pull request #183 from Prospress/issue_182
a57830d Use sanitize_text_field() instead of wc_clean()
354e74c Merge pull request #181 from Prospress/change_function_prefix
93b4ded Use as_ prefix not wc_ prefix for public APIs
350f3ac Merge pull request #177 from Prospress/mention_dependencies_in_readme
850e4d5 Add cautionary note on action dependencies
771e34c Minor readme tweaks

git-subtree-dir: includes/libraries/action-scheduler
git-subtree-split: 963b00614af83a047724f48bea7d4ee787b48d5b
2018-09-20 12:16:26 +10:00
claudiulodro 178f98ff65 Fix attribute saving 2018-09-19 11:35:46 -07:00