Commit Graph

64 Commits

Author SHA1 Message Date
Rasmus Bengtsson 185934fad9 Fix phpdoc to include params and correct types 2017-05-15 13:50:52 +02:00
Mike Jolley 7fd2f4f554 Support (not really) relative paths
Fixes #13750
2017-03-24 11:48:32 +00:00
Mike Jolley d55653a408 Merge branch 'master' into fix-13498
# Conflicts:
#	includes/class-wc-order.php
#	tests/unit-tests/crud/data.php
2017-03-15 15:52:40 +00:00
Claudio Sanches 591327287a Do not set remaining downloads when is unlimited 2017-03-13 21:24:59 -03:00
Claudio Sanches c4134586cd FUpdate how save download dates 2017-03-13 20:54:33 -03:00
Rami Yushuvaev d2457fe922 i18n: escape translation strings and fix wrong usage of i18n functions 2017-03-13 07:39:46 +02:00
Mike Jolley 7aeb151bb6 Fix download count 2017-02-20 13:36:15 +00:00
Mike Jolley 2e1e7c0f93 Fix downloads remaining
Issues around ‘’ set (unlimited downloads) Fixes #12692
2017-01-03 15:03:55 +00:00
Mike Jolley b1565cf0d6 Download update routine and interface 2016-11-18 19:29:37 +00:00
Mike Jolley 1b6d7acd24 Data store for downloads 2016-11-18 17:13:02 +00:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
Claudio Sanches 7d9d091767 Fixed mixed tabs and spaces 2016-07-11 16:56:35 +02:00
Mike Jolley a40fb29eca wc_set_time_limit helper function 2016-06-06 16:55:27 +01:00
Caleb Burks 14edd5c1f8 Return to shop if download fails 2016-05-17 16:54:01 -05:00
Mike Jolley 44b0059a06 Order by downloads remaining when getting permission so orders with same products over multiple lines links work 2016-05-05 09:28:36 +01:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
Mike Jolley dc37e49c02 Suppress set_time_limit errors to prevent issues in some environments
“Warning: Cannot set max_execution_time above master value of 30 (tried
to set unlimited) in
/var/www/web1043/html/wordpress/wp-content/plugins/woocommerce/includes/
class-wc-download-handler.php on line 337</p>”
2015-08-18 13:16:25 +01:00
Mike Jolley b425b9bce6 Avoid extract to keep original $file_path intact
Closes #8636
2015-07-27 12:44:29 +01:00
Claudio Sanches e1858d299b Changed WC_Download_Handler::count_download() from private to public, closes #8623 2015-07-21 19:03:40 -03:00
Mike Jolley 47c47ab93c Avoid set_time_limit error supression 2015-07-15 16:14:32 +01:00
Paul Wilde c913316f8b Introduce wc_get_page_permalink. 2015-02-15 19:13:22 +00:00
Mike Jolley 086d0195ce Download should expire at midnight Fixes #7269 2015-02-03 10:57:43 +00:00
Mike Jolley a1c04670bc End output buffering even if buffers are empty.
Closes #6659
2014-11-12 16:15:47 +00:00
Mike Jolley b55812a8db Parse_file_path can just do replacements 2014-10-27 13:38:29 +00:00
Mike Jolley 04dcc6a3f2 Tweak download_product() method 2014-10-27 12:25:05 +00:00
Mike Jolley 8a310f96d8 Split download_headers() method 2014-10-27 11:01:27 +00:00
Mike Jolley abd81e6685 Split check_current_user_can_download() method 2014-10-27 11:01:27 +00:00
Mike Jolley cac813c1de Attempt to improve check_current_user_can_download() 2014-10-24 23:08:50 +01:00
Mike Jolley 63c923394c Additional download handler tweaks 2014-10-24 22:50:23 +01:00
Mike Jolley c3023d4c8c WC_Download_Handler - Split download and download_product into multiple methods 2014-10-24 18:21:21 +01:00
Mike Jolley 3aaa397361 WC_Download_Handler - readfile_chunked refactor 2014-10-24 18:21:21 +01:00
Mike Jolley 973112d132 When user tries to download a file and isn't logged in, send them to the account page with a notice.
Closes #6397
2014-10-02 15:21:39 +01:00
Mike Jolley c4ef86d44e scrutinizer patches 2014-09-08 00:37:55 +01:00
Patrick Rauland e202926f73 remove check to make sure order is complete before downloading. fixes #6166 2014-09-04 10:31:38 -06:00
Barry Kooij 94365791af Changed all use of get_product to wc_get_product 2014-08-19 12:09:29 +02:00
Barry Kooij 6655188f0b Changed use of get_order with wc_get_order 2014-08-15 14:29:21 +02:00
Coen Jacobs 93bd5a04df Correct order status for checking downloads 2014-07-07 13:30:07 +02:00
Coen Jacobs 86a4add087 Merge remote-tracking branch 'upstream/master' into order-factory-refactor
Conflicts:
	includes/class-wc-order.php
2014-07-03 13:38:55 +02:00
toddlahman 7d78888f12 sync fork with master 2014-06-26 03:30:09 -07:00
Coen Jacobs 89ea6c46ab Replace new WC_Order calls with get_order 2014-06-13 15:24:51 +02:00
Kai Armstrong 1274ac3303 Reading the wp_die docs was apparently a giant mental challenge... fixed the fix for #5656 2014-06-11 15:24:27 -05:00
Kai Armstrong 4812248320 Sends proper HTTP Status Codes on die 2014-06-11 14:55:15 -05:00
Coen Jacobs 3ad8935b20 Removed ununsed global variables in local scopes 2014-06-08 22:33:11 +02:00
Mike Jolley e198ee517a Made stateless classes static to allow unhooking of hooks
Closes #5151
2014-05-28 14:52:50 +01:00
toddlahman 969fd22849 Confirm buffer is not empty before erasing
Confirm file_exists before opening. For PHP 5.3 or earlier, check if
safe_mode is active to avoid errors.
2014-05-25 14:10:23 -07:00
Mike Jolley e06906f81d cleaned up download handler, use network_site_url instead of network_admin_url for multisite 2014-04-07 15:09:11 +01:00
Mike Jolley cf50b4977d Filter the filename Closes #5074 2014-03-14 10:04:41 +00:00
Mike Jolley 624df4ea14 Suppress errors in download handler Closes #5042 2014-03-05 09:30:12 +00:00
Gerhard ab5d86097b Coding standards, mostly braces 2014-02-26 13:54:16 +02:00
toddlahman 2725527d4a Removed urldecode from $_GET and $_REQUEST
The superglobals $_GET and $_REQUEST are already decoded. Using
urldecode() on an element in $_GET or $_REQUEST could have unexpected
and dangerous results.

See Notes:

http://us1.php.net/manual/en/function.urldecode.php
2014-01-26 01:19:17 -08:00