Skip to content

Add wp_functions_compatibility check with generated WordPress function @since dataset#1250

Open
davidperezgar wants to merge 3 commits intotrunkfrom
961-check-wordpress-functions-are-compatible-with-wordpress-version
Open

Add wp_functions_compatibility check with generated WordPress function @since dataset#1250
davidperezgar wants to merge 3 commits intotrunkfrom
961-check-wordpress-functions-are-compatible-with-wordpress-version

Conversation

@davidperezgar
Copy link
Copy Markdown
Member

This PR implements a new Plugin Check rule to detect WordPress function usage that is not compatible with a plugin’s declared Tested up to version.

It introduces a WP Since-style data pipeline inside this repository:

  • A generated dataset mapping WordPress functions to their introduced version (@since)
  • A new static check: wp_functions_compatibility
  • Local generation script + scheduled workflow to keep the dataset updated
  • Unit tests and test fixtures
  • Documentation updates

What’s Included

  • New check: wp_functions_compatibility
  • New dataset: includes/Vars/wp-functions-since.json
  • New generator script: tools/generate-wp-function-since-data.php
  • New workflow: .github/workflows/generate-wp-functions-since-data.yml
  • Tests for positive/negative coverage
  • Checks docs updated

Related

Notes

This follows the same core idea as WP Since (function-version compatibility via generated metadata), adapted to Plugin Check architecture and check lifecycle.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

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: davidperezgar <davidperez@git.wordpress.org>
Co-authored-by: ernilambar <nilambar@git.wordpress.org>

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

…_Check.php

Co-authored-by: Nilambar Sharma <ernilambar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check: WordPress functions are compatible with WordPress version

2 participants