Skip to content

Commit

Permalink
Merge pull request #141 from RRZE-Webteam/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
rvdforst authored Feb 6, 2025
2 parents f25dbfb + 13c3019 commit e46938b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cms-workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
Plugin Name: CMS-Workflow
Plugin URI: https://github.com/RRZE-Webteam/cms-workflow
Version: 2.0.2
Version: 2.0.3
Description: Redaktioneller Workflow.
Author: RRZE-Webteam
Author URI: https://blogs.fau.de/webworking/
Expand Down
3 changes: 3 additions & 0 deletions includes/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ public function is_post_type_enabled($post_type = null, $module = null)
$enabled_post_types = array();
$available_post_types = $this->get_available_post_types();
foreach ($available_post_types as $pt => $args) {
if (is_array($args->capability_type)) {
$args->capability_type = $args->capability_type[0] ?? '';
}
if (in_array($args->capability_type, $allowed_post_types)) {
$enabled_post_types[] = $pt;
}
Expand Down

0 comments on commit e46938b

Please sign in to comment.