Skip to content

Commit

Permalink
Merge pull request #45 from codehaiku/1.4.4
Browse files Browse the repository at this point in the history
1.4.4
  • Loading branch information
JosephGabito authored Mar 2, 2017
2 parents 37f7bb4 + a14d6d6 commit b0d82ec
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
~Current Version: 1.4.3~
~Current Version: 1.4.4~

# TaskBreaker

Expand Down
10 changes: 2 additions & 8 deletions core/file-attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.' ) );
}

Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 0 additions & 2 deletions models/project.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ public function save() {
*/
public function delete() {

$dbase = TaskBreaker::wpdb();

if ( 0 === $this->get_id() ) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions task-breaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 );

Expand Down

0 comments on commit b0d82ec

Please sign in to comment.