| @@ -1,14 +1,14 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: Taskbuilder |
| 4 | - * Plugin URI: https://taskbuilder.net/ | |
| 5 | - * Description: Wordpress Project Management & Task Management plugin. Easy to keep track of projects & tasks! | |
| 6 | - * Version: 5.0.2 | |
| 4 | + * Plugin URI: https://wordpress.org/plugins/taskbuilder/ | |
| 5 | + * Description: Wordpress Project & Task Management plugin. Easy to keep track of projects & tasks! | |
| 6 | + * Version: 2.0.8 | |
| 7 | 7 | * Author: Taskbuilder Team |
| 8 | 8 | * Author URI: https://taskbuilder.net/ |
| 9 | 9 | * Requires at least: 4.4 |
| 10 | - * Tested up to: 6.9 | |
| 10 | + * Tested up to: 6.4.3 | |
| 11 | 11 | * Text Domain: taskbuilder |
| 12 | 12 | * Domain Path: /lang |
| 13 | 13 | */ |
| 14 | 14 | |
| @@ -18,9 +18,9 @@ | ||
| 18 | 18 | |
| 19 | 19 | if ( ! class_exists( 'WP_Taskbuilder' ) ) : |
| 20 | 20 | |
| 21 | 21 | final class WP_Taskbuilder { |
| 22 | - public $version = '5.0.2'; | |
| 22 | + public $version = '2.0.8'; | |
| 23 | 23 | public function __construct() { |
| 24 | 24 | // define global constants |
| 25 | 25 | $this->define_constants(); |
| 26 | 26 | // Include required files and classes |
| @@ -51,9 +51,8 @@ | ||
| 51 | 51 | include( WPPM_ABSPATH.'includes/wppm_cron.php' ); |
| 52 | 52 | include_once( WPPM_ABSPATH . 'includes/wppm_actions.php' ); |
| 53 | 53 | if ($this->is_request('admin')) { |
| 54 | 54 | include_once( WPPM_ABSPATH . 'includes/class-wppm-admin.php' ); |
| 55 | - include_once( WPPM_ABSPATH . 'includes/class-wppm-profile-update.php' ); | |
| 56 | 55 | } |
| 57 | 56 | if ($this->is_request('frontend')) { |
| 58 | 57 | include_once( WPPM_ABSPATH . 'includes/class-wppm-frontend.php' ); |
| 59 | 58 | } |
| @@ -60,9 +59,9 @@ | ||
| 60 | 59 | if( !class_exists( 'EDD_SL_Plugin_Updater' ) ) { |
| 61 | 60 | include_once( WPPM_ABSPATH . 'includes/EDD_SL_Plugin_Updater.php' ); |
| 62 | 61 | } |
| 63 | 62 | |
| 64 | - } | |
| 63 | + } | |
| 65 | 64 | |
| 66 | 65 | public function define($name, $value) { |
| 67 | 66 | if (!defined($name)) { |
| 68 | 67 | define($name, $value); |
| @@ -86,18 +85,8 @@ | ||
| 86 | 85 | $task_id = intval(sanitize_text_field($_REQUEST['tid'])); |
| 87 | 86 | $task_auth_code = $wppmfunction->get_task_fields($task_id,'task_auth_code'); |
| 88 | 87 | $task_auth_code = sanitize_text_field($task_auth_code); |
| 89 | 88 | if($task_auth_code == $auth_code){ |
| 90 | - $this->wppm_file_download($attach_id); | |
| 91 | - } | |
| 92 | - } | |
| 93 | - if( isset($_REQUEST['wppm_attachment']) && isset($_REQUEST['pid']) && isset($_REQUEST['pac'])){ | |
| 94 | - $attach_id = intval(sanitize_text_field($_REQUEST['wppm_attachment'])); | |
| 95 | - $auth_code = (sanitize_text_field($_REQUEST['pac'])); | |
| 96 | - $proj_id = intval(sanitize_text_field($_REQUEST['pid'])); | |
| 97 | - $proj_auth_code = $wppmfunction->get_project_meta($proj_id,'project_auth_code',true); | |
| 98 | - $proj_auth_code = sanitize_text_field($proj_auth_code); | |
| 99 | - if($proj_auth_code == $auth_code){ | |
| 100 | 89 | $this->wppm_file_download($attach_id); |
| 101 | 90 | } |
| 102 | 91 | } |
| 103 | 92 | } |