Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only use version from plugin header. #93

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

BrianHenryIE
Copy link
Member

@BrianHenryIE BrianHenryIE commented May 2, 2024

The minimum definition for a plugin file says its set of headers must have the Plugin Name header. This PR changes the version parsing code to only consider a parsed version if it is part of a PHP file's plugin headers, by checking does the "Plugin Name" header exist first.

Previously, it was considering any @version in any PHP docblock.

Fixes #92

Edit: looks like I didn't start the branch off upstream/master. I'll rewrite it soon.

@BrianHenryIE BrianHenryIE requested a review from a team as a code owner May 2, 2024 04:39
@BrianHenryIE BrianHenryIE marked this pull request as draft May 2, 2024 04:43
@swissspidy swissspidy changed the title Only use version from plugin header. Fix #92 Only use version from plugin header. May 2, 2024
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.

Incorrect version number used when creating zip archive
1 participant