From bf55ccf6a13bbbab3c37d7cc6ecce87a98a60413 Mon Sep 17 00:00:00 2001 From: Joost de Valk Date: Tue, 17 Nov 2026 18:26:06 +0100 Subject: [PATCH 1/4] Clarify plugin activation in readme setup steps --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 8a5dcbb..1583de2 100644 --- a/readme.txt +++ b/readme.txt @@ -24,7 +24,7 @@ or turn off autoloading. == How It Works == -1. Install the plugin and browse your site normally for a few days. +1. Install and activate the plugin, then browse your site normally for a few days. 2. The plugin quietly records which autoloaded options are actually used during page rendering. 3. Visit the settings screen to see every autoloaded option that was From 47203b0e1137f698d81a8fe5f8e9bed03368d98f Mon Sep 17 00:00:00 2001 From: Joost de Valk Date: Tue, 17 Nov 2026 18:28:27 +0100 Subject: [PATCH 2/4] Declare WordPress and PHP requirements in plugin header --- aaa-option-optimizer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aaa-option-optimizer.php b/aaa-option-optimizer.php index 662be86..4015973 100644 --- a/aaa-option-optimizer.php +++ b/aaa-option-optimizer.php @@ -8,6 +8,8 @@ * Plugin URI: https://progressplanner.com/plugins/aaa-option-optimizer/ * Description: Tracks autoloaded options usage and allows the user to optimize them. * Version: 1.7.1 + * Requires at least: 6.7 + * Requires PHP: 7.4 * License: GPL-3.0+ * Author: Team Progress Planner * Author URI: https://progressplanner.com/ From e4feb1ec3ab3e69a6fc0ed81ef0041fde32ee693 Mon Sep 17 00:00:00 2001 From: Joost de Valk Date: Tue, 17 Nov 2026 19:25:58 +0100 Subject: [PATCH 3/4] Mark plugin tested up to WordPress 7.2 after RC1 checks --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 1583de2..18fe0ca 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: joostdevalk, aristath, filipi, progressplanner Tags: autoload, options, database, performance, cleanup Requires at least: 6.7 -Tested up to: 7.1 +Tested up to: 7.2 Stable tag: 1.7.1 Requires PHP: 7.4 License: GPL-3.0-or-later From 6da521a12b82d17469578407978da707d6bd3507 Mon Sep 17 00:00:00 2001 From: Joost de Valk Date: Tue, 17 Nov 2026 19:29:23 +0100 Subject: [PATCH 4/4] Add manual WordPress.org readme sync workflow --- .github/scripts/sync-readme.sh | 49 +++++++++++++++++++++++++++++++ .github/workflows/readme-sync.yml | 33 +++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 .github/scripts/sync-readme.sh create mode 100644 .github/workflows/readme-sync.yml diff --git a/.github/scripts/sync-readme.sh b/.github/scripts/sync-readme.sh new file mode 100644 index 0000000..70ab229 --- /dev/null +++ b/.github/scripts/sync-readme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Only update an existing release; never create or switch the stable tag. +read_stable_tag() { + sed -nE 's/^[Ss][Tt][Aa][Bb][Ll][Ee] [Tt][Aa][Gg]:[[:space:]]*([^[:space:]]+)[[:space:]]*$/\1/p' "$1" +} + +stable_tag=$(read_stable_tag readme.txt) +if [[ ! "$stable_tag" =~ ^[0-9]+(\.[0-9]+)*$ ]]; then + echo 'Expected one numeric Stable Tag in readme.txt.' >&2 + exit 1 +fi + +svn_url='https://plugins.svn.wordpress.org/aaa-option-optimizer' +svn_dir=$(mktemp -d) +trap 'rm -rf "$svn_dir"' EXIT + +svn checkout --non-interactive --depth empty "$svn_url" "$svn_dir" +svn update --non-interactive --depth empty "$svn_dir/trunk" "$svn_dir/tags" +svn update --non-interactive --depth empty "$svn_dir/tags/$stable_tag" +svn update --non-interactive "$svn_dir/trunk/readme.txt" "$svn_dir/tags/$stable_tag/readme.txt" + +for target in "$svn_dir/trunk/readme.txt" "$svn_dir/tags/$stable_tag/readme.txt"; do + if [[ ! -f "$target" ]] || [[ "$(read_stable_tag "$target")" != "$stable_tag" ]]; then + echo 'The local Stable Tag must match the published trunk and tag readmes.' >&2 + exit 1 + fi +done + +cp readme.txt "$svn_dir/trunk/readme.txt" +cp readme.txt "$svn_dir/tags/$stable_tag/readme.txt" + +if [[ -z "$(svn status "$svn_dir")" ]]; then + echo 'Both published readmes are already up to date.' + exit 0 +fi + +svn diff "$svn_dir" +if [[ "${DRY_RUN:-false}" == 'true' ]]; then + echo 'Dry run: no files were committed.' + exit 0 +fi + +: "${SVN_USERNAME:?SVN_USERNAME is required}" +: "${SVN_PASSWORD:?SVN_PASSWORD is required}" +svn_auth=(--username "$SVN_USERNAME" --password "$SVN_PASSWORD" --non-interactive --no-auth-cache) +svn commit "$svn_dir/trunk/readme.txt" "$svn_dir/tags/$stable_tag/readme.txt" \ + --message "Update aaa-option-optimizer readme.txt for $stable_tag" "${svn_auth[@]}" diff --git a/.github/workflows/readme-sync.yml b/.github/workflows/readme-sync.yml new file mode 100644 index 0000000..379b0c0 --- /dev/null +++ b/.github/workflows/readme-sync.yml @@ -0,0 +1,33 @@ +name: Sync readme.txt to WordPress.org + +# The plugin directory reads metadata from the stable tag's readme. +# Update trunk and that tag together without publishing plugin code. +on: + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: wordpress-org-aaa-option-optimizer + cancel-in-progress: false + +jobs: + sync-readme: + name: Sync readme.txt to SVN trunk and stable tag + if: github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Install Subversion + run: sudo apt-get update && sudo apt-get install -y subversion + + - name: Sync published readmes + env: + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + run: bash .github/scripts/sync-readme.sh