Skip to content

Commit

Permalink
[#565] Fixed path of upload dir
Browse files Browse the repository at this point in the history
  • Loading branch information
JanVoracek committed Feb 16, 2016
1 parent 909084e commit 833c452
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/versionpress/src/ChangeInfos/PostChangeInfo.php
Expand Up @@ -102,7 +102,8 @@ public function getChangedFiles() {
$changes = parent::getChangedFiles();
if ($this->postType !== "attachment") return $changes;

$changes[] = array("type" => "path", "path" => path_join(wp_upload_dir(), '/*'));
$uploadDir = wp_upload_dir();
$changes[] = array("type" => "path", "path" => path_join($uploadDir['basedir'], '*'));
return $changes;
}

Expand Down

0 comments on commit 833c452

Please sign in to comment.