Skip to content

Commit 4d51b77

Browse files
authored
(feat): disable ES indexable when yard-elasticsearch active (#2)
1 parent 5bdcc3b commit 4d51b77

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

CHANGELOG.md

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

3+
## Version 1.0.12
4+
5+
- Feat: disable Elasticpress filters when `yard-elasticsearch` is active.
6+
37
## Version 1.0.11
48

59
- Refactor: config metaboxes array key

openwoo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Plugin Name: Yard | OpenWOO
77
* Plugin URI: https://www.yard.nl/
88
* Description: Adds OpenWOO implementation
9-
* Version: 1.0.11
9+
* Version: 1.0.12
1010
* Author: Yard | Digital Agency
1111
* Author URI: https://www.yard.nl/
1212
* License: GPL-3.0

src/OpenWOO/ElasticPress/ElasticPressServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ class ElasticPressServiceProvider extends ServiceProvider
1515
*/
1616
public function register()
1717
{
18+
if (\is_plugin_active('yard-elasticsearch/yard-elasticsearch.php')) {
19+
return;
20+
}
21+
1822
if (! class_exists('\ElasticPress\Elasticsearch')) {
1923
return;
2024
}

src/OpenWOO/RestAPI/RestAPIServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* ),
1414
* @OA\Info(
1515
* title="OpenWebConcept OpenWOO API",
16-
* version="1.0.11",
16+
* version="1.0.12",
1717
* termsOfService="https://www.openwebconcept.nl/",
1818
* @OA\Contact(
1919
* name="OpenWebConcept",

tests/Unit/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
define('OWO_LANGUAGE_DOMAIN', OWO_SLUG);
2727
define('OWO_DIR', basename(__DIR__));
2828
define('OWO_ROOT_PATH', __DIR__);
29-
define('OWO_VERSION', '1.0.11');
29+
define('OWO_VERSION', '1.0.12');
3030

3131
/**
3232
* Bootstrap WordPress Mock.

0 commit comments

Comments
 (0)