Skip to content

Commit dcaf541

Browse files
github-actions[bot]pwtylerdependabot[bot]AnaisPantheorjazzsequence
authored
Release 1.4.4 (#302)
* Prepare 1.4.4-dev * Bump pantheon-systems/wpunit-helpers from 2.0.0 to 2.0.2 (#305) Bumps [pantheon-systems/wpunit-helpers](https://github.com/pantheon-systems/wpunit-helpers) from 2.0.0 to 2.0.2. - [Release notes](https://github.com/pantheon-systems/wpunit-helpers/releases) - [Commits](pantheon-systems/wpunit-helpers@v2.0.0...v2.0.2) --- updated-dependencies: - dependency-name: pantheon-systems/wpunit-helpers dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump pantheon-systems/pantheon-wp-coding-standards from 2.0.1 to 2.0.3 (#304) Bumps [pantheon-systems/pantheon-wp-coding-standards](https://github.com/pantheon-systems/Pantheon-WP-Coding-Standards) from 2.0.1 to 2.0.3. - [Release notes](https://github.com/pantheon-systems/Pantheon-WP-Coding-Standards/releases) - [Commits](pantheon-systems/Pantheon-WP-Coding-Standards@2.0.1...2.0.3) --- updated-dependencies: - dependency-name: pantheon-systems/pantheon-wp-coding-standards dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump yoast/phpunit-polyfills from 2.0.0 to 3.1.1 (#306) Bumps [yoast/phpunit-polyfills](https://github.com/Yoast/PHPUnit-Polyfills) from 2.0.0 to 3.1.1. - [Release notes](https://github.com/Yoast/PHPUnit-Polyfills/releases) - [Changelog](https://github.com/Yoast/PHPUnit-Polyfills/blob/3.x/CHANGELOG.md) - [Commits](Yoast/PHPUnit-Polyfills@2.0.0...3.1.1) --- updated-dependencies: - dependency-name: yoast/phpunit-polyfills dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump yoast/phpunit-polyfills from 3.1.1 to 4.0.0 (#307) Bumps [yoast/phpunit-polyfills](https://github.com/Yoast/PHPUnit-Polyfills) from 3.1.1 to 4.0.0. - [Release notes](https://github.com/Yoast/PHPUnit-Polyfills/releases) - [Changelog](https://github.com/Yoast/PHPUnit-Polyfills/blob/4.x/CHANGELOG.md) - [Commits](Yoast/PHPUnit-Polyfills@3.1.1...4.0.0) --- updated-dependencies: - dependency-name: yoast/phpunit-polyfills dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Updates readme files * Updates tested up in readme.txt * Updates readme for blank line * Adds php 8.4 in the lint test * Updates readme files * Updates readme * Updates readme * SITE-5253 Update plugin name (#312) * update plugin name * update changelog * bump version * install wp unit tests * set scripts to executable * use the composer test script * install svn * install wp-cli * bump mariadb version * set password to empty string * create the database in setup * use mysql command instead of mariadb * update the password after database creation * use root@localhost * bump tested up to * update behat upstream tests * Bump pantheon-systems/wpunit-helpers from 2.0.2 to 2.0.3 (#311) Bumps [pantheon-systems/wpunit-helpers](https://github.com/pantheon-systems/wpunit-helpers) from 2.0.2 to 2.0.3. - [Release notes](https://github.com/pantheon-systems/wpunit-helpers/releases) - [Commits](pantheon-systems/wpunit-helpers@v2.0.2...v2.0.3) --- updated-dependencies: - dependency-name: pantheon-systems/wpunit-helpers dependency-version: 2.0.3 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump pantheon-systems/pantheon-wp-coding-standards from 2.0.3 to 3.0.1 (#310) * Bump pantheon-systems/pantheon-wp-coding-standards from 2.0.3 to 3.0.1 Bumps [pantheon-systems/pantheon-wp-coding-standards](https://github.com/pantheon-systems/Pantheon-WP-Coding-Standards) from 2.0.3 to 3.0.1. - [Release notes](https://github.com/pantheon-systems/Pantheon-WP-Coding-Standards/releases) - [Commits](pantheon-systems/Pantheon-WP-Coding-Standards@2.0.3...3.0.1) --- updated-dependencies: - dependency-name: pantheon-systems/pantheon-wp-coding-standards dependency-version: 3.0.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * linting fixes * need to use 2.0 coding standards for php 7.4 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Reynolds <chris@jazzsequence.com> * Update mu suggestion to be more defensive (#308) * Update README.md * update changelog * (somewhat) arbitrary change to kick the codeql checks we actually use main and release not develop and main. --------- Co-authored-by: Chris Reynolds <chris@jazzsequence.com> * Potential fix for code scanning alert no. 7: Workflow does not contain permissions (#313) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Release 1.4.4 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Phil Tyler <phil.tyler@pantheon.io> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: anaispantheor <anaisgueyte@pantheon.io> Co-authored-by: Chris Reynolds <chris.reynolds@pantheon.io> Co-authored-by: Chris Reynolds <chris@jazzsequence.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Pantheon Automation <bot@getpantheon.com>
1 parent 9336d84 commit dcaf541

8 files changed

Lines changed: 450 additions & 310 deletions

File tree

.github/workflows/lint-test.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Linting & Test
2+
permissions:
3+
contents: read
24
on:
35
schedule:
46
- cron: '0 0 * * *'
@@ -67,7 +69,7 @@ jobs:
6769
image: mariadb:10.6
6870
strategy:
6971
matrix:
70-
php_version: [7.4, 8.2, 8.3]
72+
php_version: [7.4, 8.2, 8.3, 8.4]
7173
steps:
7274
- uses: actions/checkout@v4
7375
- name: Setup PHP
@@ -77,6 +79,15 @@ jobs:
7779
extensions: mysqli, zip, imagick
7880
- name: Start MySQL Service
7981
run: sudo systemctl start mysql
82+
- name: Create wordpress_test database
83+
run: |
84+
mysql -h 127.0.0.1 -u root -proot -e "CREATE DATABASE IF NOT EXISTS wordpress_test;"
85+
mysql -h 127.0.0.1 -u root -proot -e "ALTER USER 'root'@'localhost' IDENTIFIED BY ''; FLUSH PRIVILEGES;"
86+
- name: Install Subversion
87+
run: |
88+
sudo apt-get update
89+
sudo apt-get install subversion
90+
svn --version
8091
- name: Cache dependencies
8192
uses: actions/cache@v3
8293
with:
@@ -88,8 +99,15 @@ jobs:
8899
- name: Install dependencies
89100
run: |
90101
if [ ${{ matrix.php_version }} = "7.4" ]; then
102+
composer require pantheon-systems/pantheon-wp-coding-standards:^2 --no-update
91103
composer update
92104
fi
93105
composer install
106+
- name: Setup WP Unit Tests
107+
run: |
108+
chmod +x ./bin/*.sh
109+
composer test:install
110+
- name: Setup WP-CLI
111+
uses: godaddy-wordpress/setup-wp-cli@1
94112
- name: Run PHPUnit
95-
run: bash ./bin/phpunit-test.sh
113+
run: composer test

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Behat requires a Pantheon site. Once you've created the site, you'll need [insta
2121

2222
## Workflow
2323

24-
Development and releases are structured around two branches, `develop` and `main`. The `develop` branch is the source and destination for feature branches.
24+
Development and releases are structured around two branches, `main` and `release`. The `main` branch is the source and destination for feature branches.
2525

26-
We prefer to squash commits (i.e. avoid merge PRs) from a feature branch into `develop` when merging, and to include the PR # in the commit message. PRs to `develop` should also include any relevent updates to the changelog in readme.txt. If a feature constitutes a minor or major version bump, that version update should be discussed and made as part of approving and merging the feature into `develop`.
26+
We prefer to squash commits (i.e. avoid merge PRs) from a feature branch into `main` when merging, and to include the PR # in the commit message. PRs to `main` should also include any relevent updates to the changelog in readme.txt. If a feature constitutes a minor or major version bump, that version update should be discussed and made as part of approving and merging the feature into `main`.
2727

28-
`develop` should be stable and usable, though will be few commits ahead of the public release on wp.org.
28+
`main` should be stable and usable, though will be few commits ahead of the public release on wp.org.
2929

30-
The `main` branch matches the latest stable release deployed to [wp.org](https://wordpress.org).
30+
The `release` branch matches the latest stable release deployed to [wp.org](wp.org).
3131

3232
## Release Process
3333

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# WordPress Native PHP Sessions #
1+
# Native PHP Sessions #
22
**Contributors:** [getpantheon](https://profiles.wordpress.org/getpantheon), [outlandish josh](https://profiles.wordpress.org/outlandish-josh), [mpvanwinkle77](https://profiles.wordpress.org/mpvanwinkle77), [danielbachhuber](https://profiles.wordpress.org/danielbachhuber), [andrew.taylor](https://profiles.wordpress.org/andrew.taylor), [jazzs3quence](https://profiles.wordpress.org/jazzs3quence), [stovak](https://profiles.wordpress.org/stovak), [jspellman](https://profiles.wordpress.org/jspellman/), [rwagner00](https://profiles.wordpress.org/rwagner00/)
33
**Tags:** comments, sessions
4-
**Requires at least:** 4.7
5-
**Tested up to:** 6.6.2
6-
**Stable tag:** 1.4.3
7-
**Requires PHP:** 5.4
4+
**Requires at least:** 5.3
5+
**Tested up to:** 6.8.1
6+
**Stable tag:** 1.4.4
7+
**Requires PHP:** 7.4
88
**License:** GPLv2 or later
99
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -34,7 +34,7 @@ That's it!
3434

3535
By default the session lifetime is set to 0, which is until the browser is closed.
3636

37-
To override this use the `pantheon_session_expiration` filter before the WordPress Native PHP Sessions plugin is loaded. For example a small Must-use plugin (a.k.a. mu-plugin) could contain:
37+
To override this use the `pantheon_session_expiration` filter before the Native PHP Sessions plugin is loaded. For example a small Must-use plugin (a.k.a. mu-plugin) could contain:
3838

3939
<?php
4040
function my_session_expiration_override() {
@@ -87,7 +87,9 @@ If you see an error like "Fatal error: session_start(): Failed to initialize sto
8787
To fix, create a new file at `wp-content/mu-plugins/000-loader.php` and include the following:
8888

8989
<?php
90-
require_once WP_PLUGIN_DIR . '/wp-native-php-sessions/pantheon-sessions.php';
90+
if (file_exists(WP_PLUGIN_DIR . '/wp-native-php-sessions/pantheon-sessions.php')) {
91+
require_once WP_PLUGIN_DIR . '/wp-native-php-sessions/pantheon-sessions.php';
92+
}
9193

9294
This mu-plugin will load WP Native PHP Sessions before all other plugins, while letting you still use the WordPress plugin updater to keep the plugin up-to-date.
9395

@@ -98,6 +100,13 @@ Adds a WP-CLI command to add an index to the sessions table if one does not exis
98100

99101
## Changelog ##
100102

103+
### 1.4.4 (September 17, 2025) ###
104+
* Compatibility: Supports PHP 8.4
105+
* Increases minimum supported PHP version to 7.4
106+
* Increases minimum supported WordPress version to 5.3
107+
* Update plugin name in README files and main plugin file to "Native PHP Sessions" [[#312](https://github.com/pantheon-systems/wp-native-php-sessions/pull/312)]
108+
* Update Troubleshooting section in README to be more defensive in mu-plugin [[#308](https://github.com/pantheon-systems/wp-native-php-sessions/pull/308)]
109+
101110
### 1.4.3 (November 13, 2023) ###
102111
* Fixed a PHP warning when running the `pantheon session add-index` command on a single site installation. [[#285](https://github.com/pantheon-systems/wp-native-php-sessions/pull/285)]
103112

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
],
1616
"require-dev": {
1717
"pantheon-systems/pantheon-wordpress-upstream-tests": "dev-master",
18-
"pantheon-systems/pantheon-wp-coding-standards": "^2.0",
18+
"pantheon-systems/pantheon-wp-coding-standards": "^3.0",
1919
"pantheon-systems/wpunit-helpers": "^2.0",
2020
"phpunit/phpunit": "^9",
21-
"yoast/phpunit-polyfills": "^2.0"
21+
"yoast/phpunit-polyfills": "^4.0"
2222
},
2323
"scripts": {
2424
"fix-perms": "chmod +x ./bin/*.sh",

0 commit comments

Comments
 (0)