Skip to content

Commit e46938b

Browse files
authored
Merge pull request #141 from RRZE-Webteam/dev
Dev
2 parents f25dbfb + 13c3019 commit e46938b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
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.2
6+
Version: 2.0.3
77
Description: Redaktioneller Workflow.
88
Author: RRZE-Webteam
99
Author URI: https://blogs.fau.de/webworking/

includes/Module.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ public function is_post_type_enabled($post_type = null, $module = null)
198198
$enabled_post_types = array();
199199
$available_post_types = $this->get_available_post_types();
200200
foreach ($available_post_types as $pt => $args) {
201+
if (is_array($args->capability_type)) {
202+
$args->capability_type = $args->capability_type[0] ?? '';
203+
}
201204
if (in_array($args->capability_type, $allowed_post_types)) {
202205
$enabled_post_types[] = $pt;
203206
}

0 commit comments

Comments
 (0)