Commit Graph

28838 Commits

Author SHA1 Message Date
claudiulodro 75bfc8e4bb Add unit tests 2018-10-11 13:31:30 -07:00
claudiulodro 7ea4e7b1b5 Prevent role changing 2018-10-11 13:31:30 -07:00
claudiulodro d6144a769e Restrict shop managers to editing customers 2018-10-11 13:31:30 -07:00
Rodrigo Primo b9c364a475 Add call to parent::tearDown()
It is usually necessary to call parent::tearDown(); when extending tearDown() to make sure WordPress cleanup routines are executed after each test.
2018-10-11 13:31:27 -07:00
claudiulodro f2422a284a Remove filter after running tests 2018-10-11 13:31:27 -07:00
claudiulodro 26b188569b Add filter for disabling file path check 2018-10-11 13:31:27 -07:00
claudiulodro acf8757636 Add path checking and fix bug 2018-10-11 13:31:27 -07:00
claudiulodro 7b19673dea Extra file type checking 2018-10-11 13:31:27 -07:00
claudiulodro b6f22d9950 Fix typo 2018-10-11 13:31:18 -07:00
claudiulodro afd24dea4b Add http(s) to // download urls 2018-10-11 13:31:18 -07:00
claudiulodro e53e21d65f Better variable name 2018-10-11 13:31:18 -07:00
claudiulodro 441fe32f0b Add filetype checking for all files located on the server 2018-10-11 13:31:18 -07:00
claudiulodro 989230f2b9 Refactor for increased safety 2018-10-11 13:31:18 -07:00
claudiulodro 88d506bac0 Dont do abspath file_exists check on urls that start with // since those are remote urls and not local urls 2018-10-11 13:31:18 -07:00
Rodrigo Primo 2a08fa3a7b Add test to check WC_Log_Handler_DB::delete_logs_before_timestamp() basic functionality 2018-10-11 15:25:12 -03:00
Rodrigo Primo 402144893b Remove unnecessary code to cleanup tests
WP test case cleans the database automatically after each test so there is no need to do it automatically.
2018-10-11 15:11:28 -03:00
Rodrigo Primo af32bfe329 Fix phpcs violations automatically using phpcbf 2018-10-11 15:10:46 -03:00
unknown 12279989bd Fix cart notice position 2018-10-11 15:47:35 +03:00
claudiulodro 7e17be74d9 Fix db log handler cleanup 2018-10-10 12:14:25 -07:00
Claudiu Lodromanean 57b2f5c21c
Merge pull request #21517 from amans2k/master
WC Refund class older name 'WC_Refund' somehow left over in the funct…
2018-10-10 09:09:01 -07:00
Claudiu Lodromanean 4b9ab4b8db
Merge pull request #21513 from scottcwilson/readme_assert
Fixes #21363 Recommends using assertSame rather than assertEquals
2018-10-10 09:07:14 -07:00
Claudiu Lodromanean ae24e5f4d0
Merge pull request #21508 from liquidweb/tests/status-transition
Add a test for handling errors during order status transitions
2018-10-10 09:06:01 -07:00
Claudiu Lodromanean 8e714aeffd
Update readme.txt 2018-10-10 08:44:59 -07:00
AmanS 9d327ac52e WC Refund class older name 'WC_Refund' somehow left over in the function docblock. Corrected to WC_Order_Refund. 2018-10-10 00:28:15 +05:30
Scott C Wilson bdf406eb1e Fixes #21363 Recommends using assertSame rather than assertEquals 2018-10-09 07:34:54 -04:00
Steve Grunwell c3b76a38f7 Add a test for handling errors during order status transitions 2018-10-06 18:09:44 +00:00
claudiulodro 91d2411aa9 Use wc_check_utf8 function 2018-10-05 15:58:50 -04:00
claudiulodro dfad1306de Revert sanitization function used for order item data 2018-10-05 15:46:49 -04:00
Claudiu Lodromanean c12bb2dac5
Merge pull request #21499 from Chouby/fix_email_payment_url
[3.5] Fix payment url in plain customer invoice email
2018-10-05 13:50:56 -04:00
Frédéric Demarle 4e636b4b31 Fix payment url in plain customer invoice email 2018-10-04 21:00:52 +02:00
Claudiu Lodromanean 96005a51c4
Merge pull request #21494 from woocommerce/fix/21484
Don't fire duplicate actions in shipping settings
2018-10-03 16:59:06 -04:00
Claudiu Lodromanean 1b248b099e
Update readme.txt 2018-10-03 16:59:00 -04:00
Claudiu Lodromanean a5509f1c75
Merge pull request #21493 from woocommerce/fix/21430
Add `address_1` to shipping packages info
2018-10-03 16:57:40 -04:00
Claudiu Lodromanean 282f78d59e
Merge pull request #21491 from thiscouldbejd/patch-1
Avoid treating HTTP 301 and 302 Codes as Failures
2018-10-03 16:57:12 -04:00
Claudiu Lodromanean 392ee56410
Update readme.txt 2018-10-03 16:57:01 -04:00
JD 0871ad8627
Update class-wc-webhook.php 2018-10-03 21:38:53 +01:00
Claudio Sanches a8c185adea
Merge pull request #21468 from AiratHalitov/master
Delete old ISSUE_TEMPLATE.md
2018-10-03 17:31:31 -03:00
claudiulodro 1716538617 Prevent duplicate actions from firing in shipping settings 2018-10-03 15:43:11 -04:00
claudiulodro 84e5de5eef Add address_1 to shipping packages info 2018-10-03 14:31:35 -04:00
Claudiu Lodromanean 4cbdcf2d1b
Merge pull request #21439 from Prospress/escape-gateway-attributes
consistently escape gateway ID in payment method template
2018-10-03 13:43:13 -04:00
Claudiu Lodromanean bc760f44a3
Update readme.txt 2018-10-03 13:42:58 -04:00
JD b0b2b34884
Avoid treating HTTP 301 and 302 Codes as Failures
As per:

https://github.com/woocommerce/woocommerce/issues/21490

Change the definition of a Webhook Delivery Failure to exclude HTTP/301 and HTTP/302 responses. This allows webhook handlers (such as Google Apps Script) to avoid breaching failure limits and disabling webhooks.
2018-10-03 16:40:49 +01:00
Ron Rennick 357d47a28c update template version 2018-10-03 12:05:12 -03:00
Claudiu Lodromanean 8d1daeeaf9
Merge pull request #21467 from woocommerce/fix/21460
Updated "--" to "—"
2018-10-03 10:21:30 -04:00
Claudiu Lodromanean 543c63072d
Merge pull request #21461 from dgwatkins/master
The orderby=ID argument needs to be uppercase.
2018-10-03 10:13:53 -04:00
Claudiu Lodromanean a2df135d38
Update readme.txt 2018-10-03 10:13:19 -04:00
Claudiu Lodromanean 71ca7c45ad
Merge pull request #21452 from andgrankin/patch-2
Update documentation
2018-10-03 10:11:11 -04:00
claudiulodro 338f6b8d62 readme for 3.5 rc 2018-10-03 10:07:11 -04:00
Claudiu Lodromanean 2368c4d4a8
Merge pull request #21448 from dyszczo/bugfix/logger-instance-warning
Fix for warning in wc_get_logger when woocommerce_logging_class retur…
2018-10-03 10:05:25 -04:00
Ron Rennick 8c893b2112 use correct rule name in ignore 2018-10-02 14:38:12 -03:00