Skip to content

Commit f8ef4d8

Browse files
authored
Merge pull request #144 from RRZE-Webteam/dev
Dev
2 parents 64af8b5 + 728ec12 commit f8ef4d8

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

cms-workflow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
Plugin Name: CMS-Workflow
55
Plugin URI: https://github.com/RRZE-Webteam/cms-workflow
6-
Version: 2.0.5
6+
Version: 2.0.6
77
Description: Redaktioneller Workflow.
88
Author: RRZE-Webteam
99
Author URI: https://blogs.fau.de/webworking/

includes/Modules/Authors/Authors.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,6 @@ public function filter_user_has_cap($allcaps, $caps, $args)
611611
$post_id = $post_id->post->ID;
612612
}
613613

614-
if (absint($post_id) == 0) {
615-
return $allcaps;
616-
}
617-
618614
if ($revision_parent_id = wp_is_post_revision($post_id)) {
619615
$post_id = $revision_parent_id;
620616
}

0 commit comments

Comments
 (0)