Skip to content

Commit 3a0617c

Browse files
Merge pull request #113 from buddypress/feature/updates
Bump 3.0.2
2 parents 7ea82ac + f993f91 commit 3a0617c

File tree

7 files changed

+25
-21
lines changed

7 files changed

+25
-21
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ indent_style = tab
1717
indent_style = space
1818
indent_size = 2
1919

20-
[{*.txt,wp-config-sample.php}]
20+
[{*.txt}]
2121
end_of_line = crlf

.github/workflows/code-standards.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
access_token: ${{ github.token }}
1616

1717
- name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Setup PHP
2121
uses: shivammathur/setup-php@v2
2222
with:
23-
php-version: 8.3
23+
php-version: 8.4
2424
coverage: none
2525
tools: composer
2626

.github/workflows/tests.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
12+
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
1313
wp_version: ['latest']
14-
mysql: [8.0]
14+
mysql: ['8.0']
1515
include:
1616
- php: '7.4'
17-
wp_version: '6.1'
17+
wp_version: '6.4'
1818
env:
1919
WP_VERSION: ${{ matrix.wp_version }}
2020

@@ -26,15 +26,15 @@ jobs:
2626
access_token: ${{ github.token }}
2727

2828
- name: Check out source code
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030

3131
- name: Check Gitignored files
3232
run: if [[ ! -z $(git ls-files -i --exclude-standard) ]]; then exit 1; fi
3333

3434
- name: Check existence of composer.json & behat.yml files
35-
id: check_files
36-
uses: andstor/file-existence-action@v2
35+
uses: andstor/file-existence-action@v3
3736
with:
37+
fail: true
3838
files: "composer.json, behat.yml"
3939

4040
- name: Setup PHP
@@ -53,12 +53,9 @@ jobs:
5353
uses: shogo82148/actions-setup-mysql@v1
5454
with:
5555
mysql-version: ${{ matrix.mysql }}
56-
auto-start: true
5756
root-password: root
5857
user: wp_cli_test
5958
password: password1
60-
my-cnf: |
61-
default_authentication_plugin=mysql_native_password
6259

6360
- name: Configure DB environment
6461
run: |

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
This library adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/en/1.0.0/).
44

5+
## 3.0.2
6+
7+
### Changed
8+
9+
* CI: test against PHP 8.4
10+
* CI: WordPress: minimum version tested bumped to 6.4
11+
512
## 3.0.1
613

714
### Changed

phpcs.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
<arg name="severity" value="1" />
2929

3030
<!-- Configure the PHP version -->
31-
<config name="testVersion" value="5.6-"/>
31+
<config name="testVersion" value="7.4-"/>
3232

3333
<!-- Check against minimum WP version. -->
34-
<config name="minimum_wp_version" value="4.9"/>
34+
<config name="minimum_wp_version" value="6.4"/>
3535

3636
<!-- We prefer short array syntax. -->
3737
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>

src/components.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* $ wp bp component activate groups
1414
* Success: The Groups component has been activated.
1515
*
16-
* # Deactive a component.
16+
* # Deactivate a component.
1717
* $ wp bp component deactivate groups
1818
* Success: The Groups component has been deactivated.
1919
*
@@ -101,7 +101,7 @@ public function activate( $args ) {
101101
*
102102
* ## EXAMPLE
103103
*
104-
* # Deactive a component.
104+
* # Deactivate a component.
105105
* $ wp bp component deactivate groups
106106
* Success: The Groups component has been deactivated.
107107
*/
@@ -250,7 +250,7 @@ public function list_( $args, $assoc_args ) {
250250
'id' => $component_key,
251251
'status' => $this->verify_component_status( $component_key ),
252252
'title' => esc_html( $component['title'] ),
253-
'description' => html_entity_decode( $component['description'] ),
253+
'description' => html_entity_decode( $component['description'], ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 ),
254254
];
255255
}
256256
break;
@@ -270,7 +270,7 @@ public function list_( $args, $assoc_args ) {
270270
'id' => $component_key,
271271
'status' => $this->verify_component_status( $component_key ),
272272
'title' => esc_html( $components[ $component_key ]['title'] ),
273-
'description' => html_entity_decode( $components[ $component_key ]['description'] ),
273+
'description' => html_entity_decode( $components[ $component_key ]['description'], ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 ),
274274
];
275275
}
276276
break;
@@ -290,7 +290,7 @@ public function list_( $args, $assoc_args ) {
290290
'id' => $component_key,
291291
'status' => $this->verify_component_status( $component_key ),
292292
'title' => esc_html( $components[ $component_key ]['title'] ),
293-
'description' => html_entity_decode( $components[ $component_key ]['description'] ),
293+
'description' => html_entity_decode( $components[ $component_key ]['description'], ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 ),
294294
];
295295
}
296296
break;

src/templates/bootstrap-buddypress.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* PHPUnit bootstrap file for BuddyPress
3+
* PHPUnit bootstrap file for BuddyPress.
44
*/
55

66
// Get codebase versions.
@@ -15,7 +15,7 @@
1515
/**
1616
* Load BuddyPress.
1717
*/
18-
function _manually_load_buddypress() {
18+
function _manually_load_buddypress(): void {
1919
require_once getenv( 'BP_TESTS_DIR' ) . '/includes/loader.php';
2020
}
2121
tests_add_filter( 'muplugins_loaded', '_manually_load_buddypress', 0 );

0 commit comments

Comments
 (0)