Skip to content

Commit e10b764

Browse files
authored
Revert "Release 1.4.4 (#302)"
This reverts commit dcaf541.
1 parent dcaf541 commit e10b764

8 files changed

Lines changed: 310 additions & 450 deletions

File tree

.github/workflows/lint-test.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
name: Linting & Test
2-
permissions:
3-
contents: read
42
on:
53
schedule:
64
- cron: '0 0 * * *'
@@ -69,7 +67,7 @@ jobs:
6967
image: mariadb:10.6
7068
strategy:
7169
matrix:
72-
php_version: [7.4, 8.2, 8.3, 8.4]
70+
php_version: [7.4, 8.2, 8.3]
7371
steps:
7472
- uses: actions/checkout@v4
7573
- name: Setup PHP
@@ -79,15 +77,6 @@ jobs:
7977
extensions: mysqli, zip, imagick
8078
- name: Start MySQL Service
8179
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
9180
- name: Cache dependencies
9281
uses: actions/cache@v3
9382
with:
@@ -99,15 +88,8 @@ jobs:
9988
- name: Install dependencies
10089
run: |
10190
if [ ${{ matrix.php_version }} = "7.4" ]; then
102-
composer require pantheon-systems/pantheon-wp-coding-standards:^2 --no-update
10391
composer update
10492
fi
10593
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
11294
- name: Run PHPUnit
113-
run: composer test
95+
run: bash ./bin/phpunit-test.sh

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, `main` and `release`. The `main` branch is the source and destination for feature branches.
24+
Development and releases are structured around two branches, `develop` and `main`. The `develop` 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 `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`.
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`.
2727

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

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

3232
## Release Process
3333

README.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Native PHP Sessions #
1+
# WordPress 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:** 5.3
5-
**Tested up to:** 6.8.1
6-
**Stable tag:** 1.4.4
7-
**Requires PHP:** 7.4
4+
**Requires at least:** 4.7
5+
**Tested up to:** 6.6.2
6+
**Stable tag:** 1.4.3
7+
**Requires PHP:** 5.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 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 WordPress 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,9 +87,7 @@ 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-
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-
}
90+
require_once WP_PLUGIN_DIR . '/wp-native-php-sessions/pantheon-sessions.php';
9391

9492
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.
9593

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

10199
## Changelog ##
102100

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-
110101
### 1.4.3 (November 13, 2023) ###
111102
* 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)]
112103

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": "^3.0",
18+
"pantheon-systems/pantheon-wp-coding-standards": "^2.0",
1919
"pantheon-systems/wpunit-helpers": "^2.0",
2020
"phpunit/phpunit": "^9",
21-
"yoast/phpunit-polyfills": "^4.0"
21+
"yoast/phpunit-polyfills": "^2.0"
2222
},
2323
"scripts": {
2424
"fix-perms": "chmod +x ./bin/*.sh",

0 commit comments

Comments
 (0)