From 8b1abb6704f2e19fd4bef77e73488aa303525820 Mon Sep 17 00:00:00 2001 From: Joseph Gabito Date: Thu, 2 Mar 2017 17:43:47 +0800 Subject: [PATCH 1/5] BUMPED version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 100b5c0..17c7866 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -~Current Version: 1.4.3~ +~Current Version: 1.4.4~ # TaskBreaker From 1ca29cb0f26124bbc8df7e79dc80708ee525163c Mon Sep 17 00:00:00 2001 From: Joseph Gabito Date: Thu, 2 Mar 2017 17:44:06 +0800 Subject: [PATCH 2/5] - unused variables --- core/file-attachments.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/core/file-attachments.php b/core/file-attachments.php index 7161c4a..3d86e79 100644 --- a/core/file-attachments.php +++ b/core/file-attachments.php @@ -103,19 +103,15 @@ public function process_http_file() { $tmp_dir = $path['basedir'] . sprintf( '/taskbreaker/%d/tmp', get_current_user_id() ); - $chmod = 0755; - - if ( defined( 'FS_CHMOD_DIR' ) ) { - $chmod = false; - } - if ( $fs->delete( $tmp_dir, true ) ) { // Re-create the directory. if ( $fs->mkdir( $tmp_dir ) ) { // Then, move the file. return wp_handle_upload( $file, $upload_overwrites ); + } else { + return array( 'error' => __( 'Unable to create temporary directory. Permission error.' ) ); } @@ -196,8 +192,6 @@ public function delete_file( $task_id = 0, $file_name = '' ) { $fs = new WP_Filesystem_Direct( $args ); - $dbase = TaskBreaker::wpdb(); - if ( empty( $task_id ) ) { return false; } From 31c3f0e708ab589b697bf88648ba550db9ff1b26 Mon Sep 17 00:00:00 2001 From: Joseph Gabito Date: Thu, 2 Mar 2017 17:44:20 +0800 Subject: [PATCH 3/5] - unused variables --- models/project.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/models/project.php b/models/project.php index de01c69..1f3902a 100644 --- a/models/project.php +++ b/models/project.php @@ -125,8 +125,6 @@ public function save() { */ public function delete() { - $dbase = TaskBreaker::wpdb(); - if ( 0 === $this->get_id() ) { return false; } From 04413ffc85a6a0880484a376b77a93fad94f4f55 Mon Sep 17 00:00:00 2001 From: Joseph Gabito Date: Thu, 2 Mar 2017 17:44:31 +0800 Subject: [PATCH 4/5] bumped version --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index f8add8d..bf13f38 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link:https://www.paypal.me/dunhakdis/25 Tags: project, task, task discussion, collaboration Requires at least: 4.2.0 Tested up to: 4.8.0 -Stable tag: 1.4.3 +Stable tag: 1.4.4 A simple WordPress plugin for managing projects and tasks. Integrated into BuddyPress Groups for best collaborative experience. From a14d6d69865a5e695eab116be1717d6510cc876e Mon Sep 17 00:00:00 2001 From: Joseph Gabito Date: Thu, 2 Mar 2017 17:44:40 +0800 Subject: [PATCH 5/5] bumped version --- task-breaker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/task-breaker.php b/task-breaker.php index b1bc8ea..c17b811 100644 --- a/task-breaker.php +++ b/task-breaker.php @@ -2,7 +2,7 @@ /** * Plugin Name: TaskBreaker - Group Project Management * Description: A simple WordPress plugin for managing projects and tasks. Integrated into BuddyPress Groups for best collaborative experience. - * Version: 1.4.3 + * Version: 1.4.4 * Author: Dunhakdis * Author URI: http://dunhakdis.com * Text Domain: task_breaker @@ -24,7 +24,7 @@ define( 'TASK_BREAKER_PROFILER', false ); -define( 'TASK_BREAKER_VERSION', '1.4.3' ); +define( 'TASK_BREAKER_VERSION', '1.4.4' ); define( 'TASK_BREAKER_PROJECT_LIMIT', 10 );