Skip to content

Commit

Permalink
Merge branch 'release' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Oct 29, 2024
2 parents 07b78bb + 9336d84 commit 034806d
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@
/package.json export-ignore
/phpcs.xml.dist export-ignore
/phpunit.xml.dist export-ignore
/README.md export-ignore
/README.md export-ignore
/catalog-info.yml export-ignore
32 changes: 19 additions & 13 deletions .github/workflows/build-tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,39 @@ jobs:
name: Check Status
runs-on: ubuntu-latest
outputs:
is-asset-update: ${{ steps.set-outputs.outputs.is-asset-update }}
is-plugin-update: ${{ steps.set-outputs.outputs.is-plugin-update }}
steps:
- uses: actions/checkout@v4
- id: get-changed-files
uses: jitterbit/get-changed-files@v1
- id: set-outputs
shell: bash
run: |
echo "Changed files: ${{ steps.get-changed-files.outputs.all }}"
shopt -s nocasematch
run_plugin_update="true"
run_plugin_update="false"
for file in ${{ steps.get-changed-files.outputs.all }}; do
if
[[ ! "$file" =~ ^\.wordpress\.org/ ]] && \
[[ ! $file =~ ^\.github/ ]] && \
[[ "$file" != "readme.txt" ]] && \
[[ $file != "readme.md" ]] && \
[[ $file != ".gitignore" ]] && \
[[ $file != *"composer"* ]]; then
run_plugin_update="false"
echo "Checking if file '$file' should trigger a plugin release"
if [[ "$file" == .github/* ]] || \
[[ "$file" == .wordpress.org/* ]]; then
echo "'$file' is inside an ignored directory."
continue
fi
if [[ "$file" != readme.* ]] && \
[[ "$file" != .gitattributes ]] && \
[[ "$file" != .gitignore ]] && \
[[ "$file" != catalog-info.yml ]] && \
[[ "$file" != *composer* ]]; then
echo "'$file' is not an ignored file."
run_plugin_update="true"
break
fi
done
echo "::set-output name=is-asset-update::$run_plugin_update"
echo "is-plugin-update=${run_plugin_update}" >> $GITHUB_OUTPUT
asset-only:
name: WP.org Asset Only Update
needs: check-status
if: ${{ needs.check-status.outputs.is-asset-update == 'true' }}
if: ${{ needs.check-status.outputs.is-plugin-update == 'false' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -50,7 +56,7 @@ jobs:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
tag:
needs: check-status
if: ${{ needs.check-status.outputs.is-asset-update == 'false' }}
if: ${{ needs.check-status.outputs.is-plugin-update == 'true' }}
name: Create Tag and Draft Release
runs-on: ubuntu-latest
steps:
Expand Down
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
**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/)
**Tags:** comments, sessions
**Requires at least:** 4.7
**Tested up to:** 6.3
**Tested up to:** 6.6.2
**Stable tag:** 1.4.4-dev
**Requires PHP:** 5.4
**License:** GPLv2 or later
Expand Down Expand Up @@ -104,116 +104,148 @@ Adds a WP-CLI command to add an index to the sessions table if one does not exis
* 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)]

### 1.4.2 (November 8, 2023) ###

* Fixed an issue with the `pantheon session add-index` PHP warning. [[#276](https://github.com/pantheon-systems/wp-native-php-sessions/pull/276/files)]
* Fixed a syntax issue with the suggested WP CLI commands [[#278](https://github.com/pantheon-systems/wp-native-php-sessions/pull/278)]
* Made `wp pantheon session add-index`, `wp pantheon session primary-key-finalize`, and `wp pantheon session primary-key-revert` fully multisite compatible. [[#275](https://github.com/pantheon-systems/wp-native-php-sessions/pull/275)]

### 1.4.1 (October 23, 2023) ###

* Fixed an issue with the `pantheon session add-index` command not working properly on WP multisite [[#270](https://github.com/pantheon-systems/wp-native-php-sessions/pull/270)]
* Made the notice added in 1.4.0 dismissable (stores in user meta) & hides for multisite (an update is coming to iterate through all sites on a network) [[#271](https://github.com/pantheon-systems/wp-native-php-sessions/pull/271)]

### 1.4.0 (October 17, 2023) ###

* 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)]
* Adds alert to dashboard for users who need to run the new command.
* Updates Pantheon WP Coding Standards to 2.0 [[#264](https://github.com/pantheon-systems/wp-native-php-sessions/pull/264)]
* 8.3 compatibility and code quality updates

### 1.3.6 (June 1, 2023) ###

* Fixes PHP 8.2 deprecated dynamic property error [[#251](https://github.com/pantheon-systems/wp-native-php-sessions/pull/251)] (props @miguelaxcar)
* Update CONTRIBUTING.md [[#252](https://github.com/pantheon-systems/wp-native-php-sessions/pull/252)].
* Update informational Error message for the case of headers already sent [[#249](https://github.com/pantheon-systems/wp-native-php-sessions/pull/249)].
* Add pantheon-wp-coding-standards [[#247](https://github.com/pantheon-systems/wp-native-php-sessions/pull/247)].

### 1.3.5 (April 7, 2023) ###

* Bump yoast/phpunit-polyfills from 1.0.4 to 1.0.5 [[#245](https://github.com/pantheon-systems/wp-native-php-sessions/pull/245)].
* Bump tested up to version

### 1.3.4 (February 7, 2023) ###

* Add fallback for $session->get_data() [[#237(https://github.com/pantheon-systems/wp-native-php-sessions/pull/237)]] (reported [on WordPress.org](https://wordpress.org/support/topic/php-warning-session_start-failed-to-read-session-data-user/))
* Update CODEOWNERS file [[#239](https://github.com/pantheon-systems/wp-native-php-sessions/pull/239)]
* Fix GPL license in `composer.json` file [[#236](https://github.com/pantheon-systems/wp-native-php-sessions/pull/236)]
* Bump grunt from 1.5.3 to 1.6.1 [[#235](https://github.com/pantheon-systems/wp-native-php-sessions/pull/235)]

### 1.3.3 (January 25, 2023) ###

* Bump version in pantheon-sessions.php [[#234](https://github.com/pantheon-systems/wp-native-php-sessions/pull/234)].

### 1.3.2 (January 25, 2023) ###

* PHP 8.2 compatibility [[#232](https://github.com/pantheon-systems/wp-native-php-sessions/pull/232)].
* Bump dealerdirect/phpcodesniffer-composer-installer from 0.7.2 to 1.0.0 [[#229](https://github.com/pantheon-systems/wp-native-php-sessions/pull/229)].
* Update images for lint and test-behat jobs [[#228](https://github.com/pantheon-systems/wp-native-php-sessions/pull/228)].

### 1.3.1 (December 5, 2022) ###

* Document session lifetime handling [[#224](https://github.com/pantheon-systems/wp-native-php-sessions/pull/224)].
* Make dependabot target develop branch [[#226](https://github.com/pantheon-systems/wp-native-php-sessions/pull/226)].
* Ignore `.wordpress-org` directory [[#223](https://github.com/pantheon-systems/wp-native-php-sessions/pull/223)].

### 1.3.0 (November 28th, 2022) ###

* Added CONTRIBUTING.MD and GitHub action to automate deployments to wp.org. [[#219](https://github.com/pantheon-systems/wp-native-php-sessions/pull/219)]

### 1.2.5 (October 28th, 2022) ###

* Added `#[ReturnTypeWillChange]` where required to silence deprecation warnings in PHP 8.1. [[#216](https://github.com/pantheon-systems/wp-native-php-sessions/pull/216)]

### 1.2.4 (September 14th, 2021) ###

* Increases data blob size from 64k to 16M for new session tables; existing tables will need to manually modify the column if they want to apply this change [[#193](https://github.com/pantheon-systems/wp-native-php-sessions/pull/193)].

### 1.2.3 (April 9th, 2021) ###

* Assigns the table name to a variable before using in query [[#188](https://github.com/pantheon-systems/wp-native-php-sessions/pull/188)].

### 1.2.2 (March 29th, 2021) ###

* Includes an auto-incrementing `id` column for replication support [[#187](https://github.com/pantheon-systems/wp-native-php-sessions/pull/187)].

### 1.2.1 (September 17th, 2020) ###

* Plugin textdomain needs to be the same as the WordPress.org slug [[#169](https://github.com/pantheon-systems/wp-native-php-sessions/pull/169)].

### 1.2.0 (May 18th, 2020) ###

* Avoids using cookies for sessions when WP-CLI is executing [[#154](https://github.com/pantheon-systems/wp-native-php-sessions/pull/154)].

### 1.1.0 (April 23rd, 2020) ###

* Avoids initializing PHP sessions when doing cron [[#149](https://github.com/pantheon-systems/wp-native-php-sessions/pull/149)].

### 1.0.0 (March 2nd, 2020) ###

* Plugin is stable.

### 0.9.0 (October 14th, 2019) ###

* Refactors session callback logic into `Session_Handler` abstraction, fixing PHP notice in PHP 7.3 [[#135](https://github.com/pantheon-systems/wp-native-php-sessions/pull/135)].

### 0.8.1 (August 19th, 2019) ###

* Fixes handling of 'X-Forwarded-For' header in `get_client_ip_server()` [[#126](https://github.com/pantheon-systems/wp-native-php-sessions/pull/126)].

### 0.8.0 (August 13th, 2019) ###

* Respects various `HTTP_*` sources for client IP address [[#122](https://github.com/pantheon-systems/wp-native-php-sessions/pull/122)].

### 0.7.0 (April 3rd, 2019) ###

* Adds a safety check that restores `$wpdb` when it's missing.

### 0.6.9 (May 15th, 2018) ###

* Ensures `_pantheon_session_destroy()` uses a return value.

### 0.6.8 (May 4th, 2018) ###

* Switches to `E_USER_WARNING` instead of `E_WARNING` when triggering errors.

### 0.6.7 (April 26th, 2018) ###

* Disables plugin load when `WP_INSTALLING`, because session table creation breaks installation process.

### 0.6.6 (March 8th, 2018) ###

* Restores session instantiation when WP-CLI is executing, because not doing so causes other problems.

### 0.6.5 (February 6th, 2018) ###

* Disables session instantiation when `defined( 'WP_CLI' ) && WP_CLI` because sessions don't work on CLI.

### 0.6.4 (October 10th, 2017) ###

* Triggers PHP error when plugin fails to write session to database.

### 0.6.3 (September 29th, 2017) ###

* Returns false when we entirely fail to generate a session.

### 0.6.2 (June 6th, 2017) ###

* Syncs session user id when a user logs in and logs out.

### 0.6.1 (May 25th, 2017) ###

* Bug fix: Prevents warning session_write_close() expects exactly 0 parameters, 1 given.

### 0.6.0 (November 23rd, 2016) ###

* Bug fix: Prevents PHP fatal error in `session_write_close()` by running on WordPress' `shutdown` action, before `$wpdb` destructs itself.
* Bug fix: Stores the actual user id in the sessions table, instead of `(bool) $user_id`.

Expand Down
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: getpantheon, outlandish josh, mpvanwinkle77, danielbachhuber, andrew.taylor, jazzs3quence, stovak, jspellman, rwagner00
Tags: comments, sessions
Requires at least: 4.7
Tested up to: 6.3
Tested up to: 6.6.2
Stable tag: 1.4.4-dev
Requires PHP: 5.4
License: GPLv2 or later
Expand Down

0 comments on commit 034806d

Please sign in to comment.