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

Add PHP version check for plugin. #546

Merged
merged 2 commits into from
Jul 28, 2023
Merged

Add PHP version check for plugin. #546

merged 2 commits into from
Jul 28, 2023

Conversation

rahulsprajapati
Copy link
Contributor

Description of the Change

Add minimum version check for the plugin before loading it. This will ensure plugin update doesn't break the site that don't match our minimum PHP version.

image

Closes #541

How to test the Change

  1. Setup a WordPress environment running PHP 7.3
  2. Install ClassifAI plugin by downloading it with this feature branch.
  3. Verify that plugin functionality doesn't load and you see an admin error message for php version. ( refer above screenshot in Description )

Changelog Entry

Fixed - Better error handling for environments that don't match our minimum PHP version

Credits

Props @dkotter, @rahulsprajapati

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@dkotter dkotter added this to the 2.3.0 milestone Jul 28, 2023
@dkotter dkotter merged commit 5c79b02 into develop Jul 28, 2023
12 checks passed
@dkotter dkotter deleted the fix/541-php-ver-check branch July 28, 2023 15:04
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.

Add PHP checks
2 participants