Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/search subscriptions #51

Merged
merged 10 commits into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,38 @@
"ElasticPressLabs\\": "includes/classes/"
}
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"require-dev": {
"phpunit/phpunit": "^9",
"10up/wp_mock": "dev-trunk",
"10up/phpcs-composer": "dev-master",
"10up/elasticpress": "dev-develop",
"yoast/phpunit-polyfills": "^1.0"
"yoast/phpunit-polyfills": "^1.0",
"wpackagist-plugin/woocommerce": "*"
},
"scripts": {
"lint": "phpcs .",
"lint-fix": "phpcbf .",
"lint": "phpcs . --runtime-set testVersion 7.0-",
"lint-fix": "phpcbf . --runtime-set testVersion 7.0-",
"test": "phpunit",
"setup-local-tests": "bash bin/install-wp-tests.sh epl_wp_test root password 127.0.0.1 latest true"
},
"extra": {
"installer-paths": {
"vendor/{$name}/": [
"type:wordpress-plugin",
"type:wordpress-theme"
]
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true
}
}
}
166 changes: 164 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 4 additions & 7 deletions includes/classes/Feature/ElasticPressLabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,11 @@ private function register_subfeatures() {

$features_dir = plugin_dir_path( __FILE__ );

$current_file = __FILE__;

$features_files = array_diff(
glob( "{$features_dir}*.php" ),
array( $current_file )
);
foreach ( glob( "{$features_dir}*.php" ) as $filename ) {
if ( realpath( $filename ) === __FILE__ ) {
continue;
}

foreach ( $features_files as $filename ) {
require_once ELASTICPRESS_LABS_INC . 'classes/Feature/' . basename( $filename );

$class_name = 'ElasticPressLabs\Feature\\' . basename( $filename, '.php' );
Expand Down
Loading