Skip to content

Commit

Permalink
(feat): disable ES indexable when yard-elasticsearch active (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
niekh1234 authored Dec 14, 2022
1 parent 5bdcc3b commit 4d51b77
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## Version 1.0.12

- Feat: disable Elasticpress filters when `yard-elasticsearch` is active.

## Version 1.0.11

- Refactor: config metaboxes array key
Expand Down
2 changes: 1 addition & 1 deletion openwoo.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Plugin Name: Yard | OpenWOO
* Plugin URI: https://www.yard.nl/
* Description: Adds OpenWOO implementation
* Version: 1.0.11
* Version: 1.0.12
* Author: Yard | Digital Agency
* Author URI: https://www.yard.nl/
* License: GPL-3.0
Expand Down
4 changes: 4 additions & 0 deletions src/OpenWOO/ElasticPress/ElasticPressServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class ElasticPressServiceProvider extends ServiceProvider
*/
public function register()
{
if (\is_plugin_active('yard-elasticsearch/yard-elasticsearch.php')) {
return;
}

if (! class_exists('\ElasticPress\Elasticsearch')) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/OpenWOO/RestAPI/RestAPIServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* ),
* @OA\Info(
* title="OpenWebConcept OpenWOO API",
* version="1.0.11",
* version="1.0.12",
* termsOfService="https://www.openwebconcept.nl/",
* @OA\Contact(
* name="OpenWebConcept",
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
define('OWO_LANGUAGE_DOMAIN', OWO_SLUG);
define('OWO_DIR', basename(__DIR__));
define('OWO_ROOT_PATH', __DIR__);
define('OWO_VERSION', '1.0.11');
define('OWO_VERSION', '1.0.12');

/**
* Bootstrap WordPress Mock.
Expand Down

0 comments on commit 4d51b77

Please sign in to comment.