Skip to content

Commit a485b20

Browse files
committed
Merge branch 'main' into pwtyler-safer-mu-plugins-call
2 parents 15c50b4 + 8307f54 commit a485b20

5 files changed

Lines changed: 46 additions & 19 deletions

File tree

.github/workflows/lint-test.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ jobs:
5353
runs-on: ubuntu-latest
5454
services:
5555
mariadb:
56-
image: mariadb:10.5
56+
image: mariadb:10.6
57+
env:
58+
MYSQL_ROOT_PASSWORD: ""
5759
strategy:
5860
matrix:
59-
php_version: [7.4, 8.2, 8.3]
61+
php_version: [7.4, 8.2, 8.3, 8.4]
6062
steps:
6163
- uses: actions/checkout@v3
6264
- name: Setup PHP
@@ -66,6 +68,15 @@ jobs:
6668
extensions: mysqli, zip, imagick
6769
- name: Start MySQL Service
6870
run: sudo systemctl start mysql
71+
- name: Create wordpress_test database
72+
run: |
73+
mysql -h 127.0.0.1 -u root -proot -e "CREATE DATABASE IF NOT EXISTS wordpress_test;"
74+
mysql -h 127.0.0.1 -u root -proot -e "ALTER USER 'root'@'localhost' IDENTIFIED BY ''; FLUSH PRIVILEGES;"
75+
- name: Install Subversion
76+
run: |
77+
sudo apt-get update
78+
sudo apt-get install subversion
79+
svn --version
6980
- name: Cache dependencies
7081
uses: actions/cache@v3
7182
with:
@@ -78,5 +89,11 @@ jobs:
7889
composer update
7990
fi
8091
composer install
92+
- name: Setup WP Unit Tests
93+
run: |
94+
chmod +x ./bin/*.sh
95+
composer test:install
96+
- name: Setup WP-CLI
97+
uses: godaddy-wordpress/setup-wp-cli@1
8198
- name: Run PHPUnit
82-
run: bash ./bin/phpunit-test.sh
99+
run: composer test

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
44
**Requires at least:** 4.7
5-
**Tested up to:** 6.3
5+
**Tested up to:** 6.8.1
66
**Stable tag:** 1.4.3
77
**Requires PHP:** 5.4
88
**License:** GPLv2 or later
@@ -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() {
@@ -100,6 +100,9 @@ Adds a WP-CLI command to add an index to the sessions table if one does not exis
100100

101101
## Changelog ##
102102

103+
### 1.4.4 (September 17, 2025) ###
104+
* 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)]
105+
103106
### 1.4.3 (November 13, 2023) ###
104107
* 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)]
105108

composer.lock

Lines changed: 11 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pantheon-sessions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Plugin Name: Native PHP Sessions for WordPress
4-
* Version: 1.4.3
3+
* Plugin Name: Native PHP Sessions
4+
* Version: 1.4.4
55
* Description: Offload PHP's native sessions to your database for multi-server compatibility.
66
* Author: Pantheon
77
* Author URI: https://www.pantheon.io/
@@ -13,7 +13,7 @@
1313

1414
use Pantheon_Sessions\Session;
1515

16-
define( 'PANTHEON_SESSIONS_VERSION', '1.4.3' );
16+
define( 'PANTHEON_SESSIONS_VERSION', '1.4.4' );
1717

1818
/**
1919
* Main controller class for the plugin.

readme.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
=== WordPress Native PHP Sessions ===
1+
=== Native PHP Sessions ===
22
Contributors: getpantheon, outlandish josh, mpvanwinkle77, danielbachhuber, andrew.taylor, jazzs3quence, stovak, jspellman, rwagner00
33
Tags: comments, sessions
44
Requires at least: 4.7
5-
Tested up to: 6.3
5+
Tested up to: 6.8.1
66
Stable tag: 1.4.3
77
Requires PHP: 5.4
88
License: GPLv2 or later
@@ -33,7 +33,7 @@ That's it!
3333

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

36-
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:
36+
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:
3737

3838
<?php
3939
function my_session_expiration_override() {
@@ -96,6 +96,9 @@ Adds a WP-CLI command to add an index to the sessions table if one does not exis
9696

9797
== Changelog ==
9898

99+
= 1.4.4 (September 17, 2025) =
100+
* 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)]
101+
99102
= 1.4.3 (November 13, 2023) =
100103
* 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)]
101104

0 commit comments

Comments
 (0)