Skip to content

Commit 5210588

Browse files
feat(*): Add 6.4 compatibility (#145)
* test(*): Add 6.4 tests * test(multisite): Remove obsolete part as it now handled by wpcli * feat(*): Prepare release 2.5.2
1 parent 60cfba8 commit 5210588

File tree

9 files changed

+24
-18
lines changed

9 files changed

+24
-18
lines changed

.github/workflows/end-to-end-auto-prepend-test-suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
wp-version: [ "4.9", "5.0", "5.2", "5.4", "5.6", "5.8", "6.0", "6.1", "6.2","6.3" ]
22+
wp-version: [ "4.9", "5.0", "5.2", "5.4", "5.6", "5.8", "6.0", "6.2","6.4" ]
2323
php-version: [ "7.2", "7.4", "8.0" ]
2424
exclude:
2525
- { php-version: "7.4", wp-version: "4.9" }

.github/workflows/end-to-end-multisite.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
wp-version: [ "4.9", "6.2", "6.3" ]
27+
wp-version: [ "4.9", "6.2", "6.4" ]
2828
php-version: [ "7.2" ]
2929
subsite: ["site1", "site2"]
3030

@@ -64,6 +64,10 @@ jobs:
6464
sed -i -e 's/#ddev-generated//g' wp-config-ddev.php
6565
echo "define( 'AUTOMATIC_UPDATER_DISABLED', true );" >> wp-config-ddev.php
6666
67+
- name: Disable DDEV config
68+
run: |
69+
sed -i -e 's/#ddev-generated//g' wp-config.php
70+
6771
- name: Add Redis, Memcached, Crowdsec and Playwright
6872
run: |
6973
ddev get ddev/ddev-redis
@@ -86,14 +90,6 @@ jobs:
8690
- name: Copy multisite .htaccess
8791
run: cp .ddev/okaeli-add-on/wordpress/custom_files/.htaccess-multisite-subfolder .htaccess
8892

89-
- name: Prepare multisite config
90-
run: |
91-
sed -i -e 's/#ddev-generated//g' wp-config-ddev.php
92-
sed -i -e 's/REPLACE_SUBDOMAIN_INSTALL/false/g' .ddev/okaeli-add-on/wordpress/custom_files/multisite-config.php
93-
sed -i -e 's/REPLACE_PROJECT_URI/${{ env.WP_VERSION_CODE }}.ddev.site/g' .ddev/okaeli-add-on/wordpress/custom_files/multisite-config.php
94-
sed -i '/DB_HOST/ r .ddev/okaeli-add-on/wordpress/custom_files/multisite-config.php' wp-config-ddev.php
95-
sed -i -e 's/#ddev-generated//g' wp-config-ddev.php
96-
9793
- name: Create sub sites
9894
run: |
9995
ddev wp site create --slug="site1" --title="WordPress Site1"

.github/workflows/end-to-end-test-suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
wp-version: [ "4.9", "5.0", "5.2", "5.4", "5.6", "5.8", "6.0", "6.1", "6.2", "6.3" ]
22+
wp-version: [ "4.9", "5.0", "5.2", "5.4", "5.6", "5.8", "6.0", "6.2", "6.4" ]
2323
php-version: [ "7.2", "7.4", "8.0" ]
2424
exclude:
2525
- { php-version: "7.4", wp-version: "4.9" }

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77

88

9+
## [2.5.2](https://github.com/crowdsecurity/cs-wordpress-bouncer/releases/tag/v2.5.2) - 2023-11-23
10+
[_Compare with previous release_](https://github.com/crowdsecurity/cs-wordpress-bouncer/compare/v2.5.1...v2.5.2)
11+
12+
### Added
13+
14+
- Add compatibility with WordPress 6.4
15+
16+
17+
---
18+
919
## [2.5.1](https://github.com/crowdsecurity/cs-wordpress-bouncer/releases/tag/v2.5.1) - 2023-09-14
1020
[_Compare with previous release_](https://github.com/crowdsecurity/cs-wordpress-bouncer/compare/v2.5.0...v2.5.1)
1121

crowdsec.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
* Plugin URI: https://github.com/crowdsecurity/cs-wordpress-bouncer
55
* Description: Safer Together. Protect your WordPress application with CrowdSec.
66
* Tags: crowdsec-bouncer, wordpress, security, firewall, captcha, ip-scanner, ip-blocker, ip-blocking, ip-address, ip-database, ip-range-check, crowdsec, ban-hosts, ban-management, anti-hacking, hacker-protection, captcha-image, captcha-generator, captcha-generation, captcha-service
7-
* Version: 2.5.1
7+
* Version: 2.5.2
88
* Author: CrowdSec
99
* Author URI: https://www.crowdsec.net/
1010
* Github: https://github.com/crowdsecurity/cs-wordpress-bouncer
1111
* License: MIT
1212
* License URI: https://opensource.org/licenses/MIT
1313
* Requires PHP: 7.2
1414
* Requires at least: 4.9
15-
* Tested up to: 6.3
16-
* Stable tag: 2.5.1
15+
* Tested up to: 6.4
16+
* Stable tag: 2.5.2
1717
* Text Domain: crowdsec-wp
1818
* First release: 2021.
1919
*/

inc/Constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ class Constants extends LibConstants
2020
public const LOG_BASE_PATH = __DIR__ . '/../logs/';
2121
public const CACHE_PATH = __DIR__ . '/../.cache';
2222
public const CONFIG_PATH = __DIR__ . '/standalone-settings.php';
23-
public const VERSION = 'v2.5.1';
23+
public const VERSION = 'v2.5.2';
2424
}

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: crowdsec
33
Donate link: https://crowdsec.net/
44
Tags: crowdsec-bouncer, wordpress, security, firewall, captcha, ip-scanner, ip-blocker, ip-blocking, ip-address, ip-database, ip-range-check, crowdsec, ban-hosts, ban-management, anti-hacking, hacker-protection, captcha-image, captcha-generator, captcha-generation, captcha-service
55
Requires at least: 4.9
6-
Tested up to: 6.3
6+
Tested up to: 6.4
77
Stable tag: 2.5.1
88
Requires PHP: 7.2
99
License: MIT

tests/e2e-ddev/__scripts__/run-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ case $TYPE in
4040
esac
4141

4242

43-
CHECKMULTISITE=$(ddev exec --raw -j grep MULTISITE wp-config-ddev.php | tail -1 | sed "s/define( 'MULTISITE',//g" | sed "s/);//g" | sed 's/ //g' | sed 's/\r//g' | tail -1)
43+
CHECKMULTISITE=$(ddev exec --raw -j grep MULTISITE wp-config.php | tail -1 | sed "s/define( 'MULTISITE',//g" | sed "s/);//g" | sed 's/ //g' | sed 's/\r//g' | tail -1)
4444
if [[ "$CHECKMULTISITE" == "true" ]]; then
4545
MULTISITE=true
4646
else

tests/e2e-ddev/utils/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const onAdminSaveSettings = async (check = true) => {
8282

8383
if (check) {
8484
if (MULTISITE == "true") {
85-
await expect(page).toHaveText(".wrap .notice", "saved.");
85+
await expect(page).toHaveText(".wrap", "saved.");
8686
} else {
8787
await expect(page).toHaveText(
8888
"#setting-error-settings_updated",

0 commit comments

Comments
 (0)