Commit Graph

36 Commits

Author SHA1 Message Date
roykho bce05c811a
Revert "Tweak download filepaths"
This reverts commit 90e187b899.
2021-09-23 18:51:41 -07:00
roykho d54cd10bb4
Revert "Enable redirect method to also handle absolute filepaths."
This reverts commit 36022c29eb.
2021-09-23 18:51:10 -07:00
vedanshujain 36022c29eb Enable redirect method to also handle absolute filepaths.
Earlier redirect was only able to handle absolute paths.
2021-09-22 18:15:31 +05:30
roykho 90e187b899
Tweak download filepaths 2021-09-21 12:36:52 -07:00
artpi cca06857e9 Fix tests 2021-02-16 16:19:55 +01:00
artpi dc7410b6b3 Extra protections 2021-02-16 15:51:49 +01:00
artpi 774d7e38cd Better url parsing 2021-02-16 15:09:23 +01:00
artpi 0b076fb9c1 Fix to treat absolute local paths as relative ones 2021-02-16 10:40:14 +01:00
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Rodrigo Primo 94373f78ea Fix WordPress.Arrays.MultipleStatementAlignment errors automatically using phpcbf 2019-12-20 13:51:26 -03:00
claudiulodro b6f22d9950 Fix typo 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
Rodrigo Primo bf634b0885 Revert "expiry and limit getters and setters for WC_Product_Download"
This reverts commit bdda142d24.
2018-04-25 17:29:41 -03:00
Rodrigo Primo e2471d215f Revert "Add limit and expiry to data array."
This reverts commit 5ef6766654.
2018-04-25 17:29:36 -03:00
Rodrigo Primo ad40751ae7 Revert "Add limit and expiry to get_downloads, cater for empty strings expiry and limit setters"
This reverts commit 18600e1d2f.
2018-04-25 17:25:39 -03:00
Claudio Sanches 38a4af3b0e Included @since tags in new methods of WC_Product_Download 2018-03-29 15:28:10 -03:00
Rodrigo Primo bb553c88ae Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-03-29 12:05:55 -03:00
Claudio Sanches 475e0c734f Fixed includes/class-wc-product-download.php PHPCS violations 2018-03-22 15:10:22 -03:00
Rodrigo Primo 3a480e5d80 Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-03-01 08:02:08 -03:00
Gerhard Potgieter f3974efb6b Fetch size dynamically 2018-02-14 11:35:16 +02:00
Gerhard Potgieter 0dce1a485c Remove hardcoded check, use dynamic values based on WP_CONTENT_DIR and ABSPATH 2018-02-14 11:29:44 +02:00
Gerhard Potgieter 18600e1d2f Add limit and expiry to get_downloads, cater for empty strings expiry and limit setters 2018-01-25 11:28:12 +02:00
Gerhard Potgieter 5ef6766654 Add limit and expiry to data array. 2018-01-25 11:04:45 +02:00
Gerhard Potgieter 2b44ddffc6 PHPCS fixes for WC_Product_Download class. 2018-01-25 11:03:02 +02:00
Gerhard Potgieter bdda142d24 expiry and limit getters and setters for WC_Product_Download 2018-01-25 10:57:12 +02:00
Mike Jolley 9a2b051d74 Relative paths are absolute. 2018-01-15 15:41:31 +00:00
Josh Smith 644ac674d7 [#12517] Replace download_id on customer download and product download with static UUID instead of filename based hash, to preserve download links, logs, and permissions across filename changes 2017-08-05 04:42:31 +00:00
Mike Jolley de7d8681d2 Only validate file type on relative paths 2017-04-12 16:49:43 +01:00
Mike Jolley 7fd2f4f554 Support (not really) relative paths
Fixes #13750
2017-03-24 11:48:32 +00:00
Claudio Sanches 59c2849736 Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
Mike Jolley 162aa986b6 Fix tests 2016-12-05 14:21:09 +00:00
Mike Jolley b1565cf0d6 Download update routine and interface 2016-11-18 19:29:37 +00:00
Mike Jolley ac6bda2f62 Product crud abstract todos (#12316)
* Get dimensions and weights, with soft deprecation

* Product attributes

* Ratings

* Fix read method

* Downloads

* Feedback

* Fix up store
2016-11-11 15:31:00 +00:00
Mike Jolley 4fc03c9930 Revert "[Product CRUD] Abstract todos (#12305)"
This reverts commit 9a6136fcf8.
2016-11-11 11:58:57 +00:00
Mike Jolley 9a6136fcf8 [Product CRUD] Abstract todos (#12305)
* Get dimensions and weights, with soft deprecation

* Product attributes

* Ratings

* Fix read method

* Downloads

* Feedback
2016-11-11 11:43:52 +00:00