Skip to content

chore: Update target WordPress version to 7.0 and minimum PHP to 7.4.0 - #70

Merged
bgrgicak merged 4 commits into
WordPress:trunkfrom
NoumaanAhamed:fix/update-wp-to-v7.0
Jul 8, 2026
Merged

chore: Update target WordPress version to 7.0 and minimum PHP to 7.4.0#70
bgrgicak merged 4 commits into
WordPress:trunkfrom
NoumaanAhamed:fix/update-wp-to-v7.0

Conversation

@NoumaanAhamed

@NoumaanAhamed NoumaanAhamed commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Updates the default compatibility targets across all Agent Skills, documentation, and the evaluation harness to assume WordPress 7.0 and PHP 7.4.0 as the baseline.

Why is this change necessary?

WordPress 7.0 ("Armstrong") has officially retired support for PHP 7.3 and below, making PHP 7.4.0 the hard minimum. To ensure the agents generate safe, actively maintained, and compatible code, the skills' compatibility contracts have been bumped from WP 6.9+ (PHP 7.2.24+) to WP 7.0+ (PHP 7.4.0+).

Addresses #68

…nd PHP 7.4.0 across all skills and references
@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: NoumaanAhamed <mohamedahamed@git.wordpress.org>
Co-authored-by: jeffpaul <jeffpaul@git.wordpress.org>
Co-authored-by: karmatosed <karmatosed@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@jeffpaul
jeffpaul requested a review from a team June 30, 2026 18:32
@karmatosed
karmatosed self-requested a review July 6, 2026 10:48

@karmatosed karmatosed left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR does the right thing for the compatibility baseline (default target WP 7.0 + PHP 7.4.0), but it also incorrectly rewrites historical release notes where features actually shipped in 6.9, not 7.0.

AI parsed mistakes, please check for all:

PR #70 mistakes
Incorrect 6.9 → 7.0 rewrites (features shipped in 6.9)
skills/wp-interactivity-api/SKILL.md — “WordPress 6.9 changes” renamed to 7.0; data-wp-ignore deprecation, unique directive IDs, and navigation/attachTo notes are 6.9 features.

skills/wp-interactivity-api/references/debugging.md — Section “WordPress 6.9 specific issues” renamed to 7.0; data-wp-ignore deprecated in 6.9, not 7.0; attachTo added in 6.9, not 7.0.

skills/wp-interactivity-api/references/directives-quickref.md — “Unique directive IDs (WordPress 6.9+)” renamed to 7.0+; data-wp-ignore deprecation date changed from 6.9 to 7.0.

skills/wp-block-development/SKILL.md — apiVersion: 3 requirement described as “WordPress 7.0+”; it was enforced in 6.9.

skills/wp-block-development/references/block-json.md — “WordPress 6.9+ requires apiVersion 3” changed to 7.0+.

skills/wp-block-development/references/debugging.md — “Console warnings about apiVersion (WordPress 6.9+)” changed to 7.0+.

skills/wp-block-themes/references/theme-json.md — “WordPress 6.9 additions” (form element styling, border radius presets) renamed to 7.0; “not yet available in 6.9” changed to 7.0.

skills/wp-performance/SKILL.md — “WordPress 6.9 performance improvements” (on-demand CSS for classic themes) renamed to 7.0.

skills/wp-abilities-api/SKILL.md — “If the project targets WP < 6.9” changed to < 7.0; Abilities API is in core since 6.9, so the plugin fallback threshold should stay at 6.9.

skills/wp-abilities-verify/references/runtime-harness.md — “WordPress version >= 6.9 (Abilities API available in core)” changed to 7.0; wp_get_abilities check “WP >= 6.9” changed to 7.0.

Scope / overlap issues
shared/references/wordpress-core-versions.json — Manually edited in this PR; that file is owned by the upstream sync workflow (PR #55). This PR’s copy is also incomplete/stale (e.g. still has 6.0.11 instead of 6.0.12).

What should have changed (for contrast)
compatibility: frontmatter in all skills

README.md, CONTRIBUTING.md, docs/compatibility-policy.md
eval/harness/run.mjs
shared/scripts/scaffold-skill.mjs

Default/threshold language like “target 7.0+” or “if below 7.0, call out” where it refers to the new baseline, not when a feature shipped

@NoumaanAhamed

Copy link
Copy Markdown
Contributor Author

Hey @karmatosed

Thanks for the detailed review, I've addressed all the feedback in the latest commit.

@NoumaanAhamed
NoumaanAhamed requested a review from karmatosed July 7, 2026 11:42

@karmatosed karmatosed left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the iterations, now approving. We need to wait for one more review so pinging @WordPress/agent-skills-maintainers to get that for you.

@bgrgicak bgrgicak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing @NoumaanAhamed!

Let's merge this PR as is, but long term, we should find a way for the version bumps to be automated.

@bgrgicak
bgrgicak merged commit 20324d2 into WordPress:trunk Jul 8, 2026
4 checks passed
henryperkins added a commit to henryperkins/agent-skills that referenced this pull request Jul 18, 2026
…, #13, WordPress#18)

Brings in upstream commits aecc4d6, 20324d2, 8182820, c212346 while
keeping the fork's contracts:

- Kept the two-floor compatibility policy (docs/compatibility-policy.md)
  over upstream WordPress#70's blanket WP 7.0+/PHP 7.4.0+ bump: all SKILL.md
  frontmatter, eval/harness/run.mjs, scaffold-skill.mjs, and docs resolve
  to the fork side; CONTRIBUTING.md and README.md now state the two-floor
  policy explicitly instead of inheriting the flat bump
- Kept the fork's fresher upstream indices (WP 7.0.2 / GB snapshot) over
  upstream WordPress#55's older refresh
- Kept the fork's Antigravity (#13) and wp-patterns (WordPress#18) copies, both
  already adapted in PR #10; upstream's versions differ only in comments,
  usage text, and wp-patterns frontmatter
- Accepted upstream's WP 7.0 example env line in
  wp-abilities-verify/references/runtime-harness.md

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants