Changeset 2468341
- Timestamp:
- 02/03/2021 09:55:31 PM (5 years ago)
- Location:
- protect-wp-files/trunk
- Files:
-
- 3 edited
-
includes/pwpf-hooks.php (modified) (2 diffs)
-
pwpf.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
protect-wp-files/trunk/includes/pwpf-hooks.php
r2454153 r2468341 553 553 554 554 // This will handle the download action 555 public function PWPF_handle_private_download(){ 556 557 $file = get_query_var('pwpf_file'); 555 public function PWPF_handle_private_download($query = ''){ 556 557 $file = ''; 558 if($query){ 559 $vars = $query->query_vars; 560 if(array_key_exists('pwpf_file', $vars)){ 561 $file = $query->query_vars['pwpf_file']; 562 } 563 } 558 564 559 565 if(is_user_logged_in() && !empty($file)){ … … 845 851 * This will handle the thumbnails 846 852 */ 847 public function PWPF_handle_private_thumb(){ 848 849 global $pagenow; 850 $thumbnail = get_query_var('pwpf_thumb'); 853 public function PWPF_handle_private_thumb($query = ''){ 854 855 $thumbnail = ''; 856 if($query){ 857 $vars = $query->query_vars; 858 if(array_key_exists('pwpf_thumb', $vars)){ 859 $thumbnail = $query->query_vars['pwpf_thumb']; 860 } 861 } 851 862 852 863 if(current_user_can( 'upload_files' ) && is_user_logged_in() && !empty($thumbnail)){ -
protect-wp-files/trunk/pwpf.php
r2454153 r2468341 9 9 * 10 10 * @link mauwen.com 11 * @since 1.2.2. 411 * @since 1.2.2.5 12 12 * @package Protect WordPress Uploads 13 13 * … … 16 16 * Plugin URI: mauwen.com 17 17 * Description: This plugin makes it possible to upload and protect WordPress uploads and keep them safe for non-registered users. 18 * Version: 1.2.2. 418 * Version: 1.2.2.5 19 19 * Author: Stephan Csorba 20 20 * Author URI: https://www.linkedin.com/in/skcsorba/ -
protect-wp-files/trunk/readme.txt
r2454153 r2468341 1 1 === Protect WordPress Uploads === 2 Contributors: csorbamedia 2 Contributors: csorbamedia, mauwen 3 3 Tags: secure downloads, protection, uploads, uploads folder 4 4 Requires at least: 4.8 5 Tested up to: 5.6 5 Tested up to: 5.6.1 6 6 Requires PHP: 5.6 7 7 License: GPLv3 … … 103 103 == Changelog == 104 104 105 = 1.2.2.5 = 106 - Tested with WP 5.6.1 107 - Small fix, issue with WP Forms. 108 105 109 = 1.2.2.4 = 106 110 - Added documentation link.
Note: See TracChangeset
for help on using the changeset viewer.