Skip to content

Commit

Permalink
(fix): only remove combined identifications when regular identificati…
Browse files Browse the repository at this point in the history
…ons are activated
  • Loading branch information
Mike van den Hoek committed May 15, 2023
1 parent 0eb22a5 commit e230c42
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## Version [3.7.7] (2023-05-15)

### Fix

- Only remove combined identifications when regular identifications are activated.

## Version [3.7.6] (2023-05-15)

### Fix
Expand Down
2 changes: 1 addition & 1 deletion pdc-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Yard | PDC Base
* Plugin URI: https://www.openwebconcept.nl/
* Description: Acts as foundation for other PDC related content plugins. This plugin implements actions to allow for other plugins to add and/or change Custom Posttypes, Metaboxes, Taxonomies, en Posts 2 posts relations.
* Version: 3.7.6
* Version: 3.7.7
* Author: Yard | Digital Agency
* Author URI: https://www.yard.nl/
* License: GPL-3.0
Expand Down
2 changes: 1 addition & 1 deletion src/Base/Foundation/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Plugin
*
* @var string
*/
const VERSION = '3.7.6';
const VERSION = '3.7.7';

/**
* Path to the root of the plugin.
Expand Down
2 changes: 1 addition & 1 deletion src/Base/Metabox/MetaboxServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function registerMetaboxes(array $rwmbMetaboxes): array
$configMetaboxes = array_merge($configMetaboxes, $this->plugin->config->get('identifications_metaboxes'));
}

if (! $this->plugin->settings->useCombinedIdentification()) {
if ($this->plugin->settings->useIdentifications() && ! $this->plugin->settings->useCombinedIdentification()) {
$configMetaboxes = $this->removeCombinedIdentification($configMetaboxes);
}

Expand Down

0 comments on commit e230c42

Please sign in to comment.