Skip to content

Commit 13abf10

Browse files
committed
(feat): Check alternative filename for MetaBox Group dependency
1 parent bd6d68d commit 13abf10

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# CHANGELOG
22

3+
## Version 2.0.2
4+
5+
- (feat): Check alternative filename for MetaBox Group dependency
6+
7+
## Version 2.0.1
8+
9+
- (feat): disable ES indexable when yard-elasticsearch active
10+
311
## Version 2.0.0
412

513
- Chore: clean-up, php8 and compliant with new version of ElasticPress.

config/dependencies.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
'file' => 'meta-box/meta-box.php',
2323
],
2424
[
25-
'type' => 'plugin',
26-
'label' => 'Meta Box Group',
27-
'version' => '1.2.14',
28-
'file' => 'metabox-group/meta-box-group.php',
25+
'type' => 'plugin',
26+
'label' => 'Meta Box Group',
27+
'version' => '1.2.14',
28+
'file' => 'metabox-group/meta-box-group.php',
29+
'alt_file' => 'meta-box-group/meta-box-group.php',
2930
],
3031
[
3132
'type' => 'class',

openwob.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Plugin Name: Yard | OpenWOB
77
* Plugin URI: https://www.yard.nl/
88
* Description: Adds OpenWOB implementation
9-
* Version: 2.0.0
9+
* Version: 2.0.2
1010
* Author: Yard | Digital Agency
1111
* Author URI: https://www.yard.nl/
1212
* License: GPL-3.0
@@ -30,7 +30,7 @@
3030
define('OW_LANGUAGE_DOMAIN', OW_SLUG);
3131
define('OW_DIR', basename(__DIR__));
3232
define('OW_ROOT_PATH', __DIR__);
33-
define('OW_VERSION', '2.0.0');
33+
define('OW_VERSION', '2.0.2');
3434

3535
/**
3636
* Manual loaded file: the autoloader.

src/OpenWOB/Foundation/DependencyChecker.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ private function checkPlugin(array $dependency): void
166166
include_once ABSPATH . 'wp-admin/includes/plugin.php';
167167
}
168168

169+
if (! empty($dependency['alt_file']) && is_plugin_active($dependency['alt_file'])) {
170+
$dependency['file'] = $dependency['alt_file'];
171+
}
172+
169173
if (! $this->checkPluginActive($dependency)) {
170174
$this->markFailed($dependency, __('Inactive', OW_LANGUAGE_DOMAIN));
171175

0 commit comments

Comments
 (0)