|
3 | 3 | **Tags:** comments, sessions |
4 | 4 | **Requires at least:** 4.7 |
5 | 5 | **Tested up to:** 6.3 |
6 | | -**Stable tag:** 1.3.7-dev |
| 6 | +**Stable tag:** 1.4.0-dev |
7 | 7 | **Requires PHP:** 5.4 |
8 | 8 | **License:** GPLv2 or later |
9 | 9 | **License URI:** http://www.gnu.org/licenses/gpl-2.0.html |
@@ -42,6 +42,20 @@ To override this use the `pantheon_session_expiration` filter before the WordPre |
42 | 42 | } |
43 | 43 | add_filter( 'pantheon_session_expiration', 'my_session_expiration_override' ); |
44 | 44 |
|
| 45 | +## CLI Commands ## |
| 46 | + |
| 47 | +### `wp pantheon session add-index` ### |
| 48 | + |
| 49 | +Added in 1.4.0-dev. This command should be run if your installation of the plugin occurred before the addition of the primary ID key to the session table in version 1.2.2. You will be automatically notified when you visit any admin page if this is the case. If there's no message, your version is good to go. Note that this command is non-destructive, a new table will be created and the existing one preserved in a backup state until you have verified that the upgrade is functioning as expected. |
| 50 | + |
| 51 | +### `wp pantheon session primary-key-finalize` ### |
| 52 | + |
| 53 | +Added in 1.4.0-dev. If you have run the `add-index` command and have verified that the new table is functioning correctly, running the `primary-key-finalize` command will perform a database cleanup and remove the backup table. |
| 54 | + |
| 55 | +### `wp pantheon session primary-key-revert` ### |
| 56 | + |
| 57 | +Added in 1.4.0-dev. If you have run the `add-index` command and something unexpected has occurred, just run the `primary-key-revert` command and the backup table will immediately be returned to being the active table. |
| 58 | + |
45 | 59 | ## Contributing ## |
46 | 60 |
|
47 | 61 | See [CONTRIBUTING.md](https://github.com/pantheon-systems/wp-native-php-sessions/blob/main/CONTRIBUTING.md) for information on contributing. |
@@ -73,9 +87,16 @@ To fix, create a new file at `wp-content/mu-plugins/000-loader.php` and include |
73 | 87 |
|
74 | 88 | 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. |
75 | 89 |
|
| 90 | +## Upgrade Notice ## |
| 91 | + |
| 92 | +### 1.4.0-dev ### |
| 93 | +Adds a WP-CLI command to add an index to the sessions table if one does not exist already. If you installed this plugin before version 1.2.2, you likely need to run this command. However, regardless of version at installation a notice will appear in your admin dashboard if your database table is missing the index. If no notice appears, no action is necessary. |
| 94 | + |
76 | 95 | ## Changelog ## |
77 | 96 |
|
78 | | -### 1.3.7-dev ### |
| 97 | +### 1.4.0-dev ### |
| 98 | +* Adds new CLI command to add a Primary Column (id) to the `pantheon_sessions` table for users who do not have one. [[#265](https://github.com/pantheon-systems/wp-native-php-sessions/pull/265)] |
| 99 | +* Adds alert to dashboard for users who need to run the new command. |
79 | 100 | * Updates Pantheon WP Coding Standards to 2.0 [[#264](https://github.com/pantheon-systems/wp-native-php-sessions/pull/264)] |
80 | 101 |
|
81 | 102 | ### 1.3.6 (June 1, 2023) ### |
|
0 commit comments