-
Notifications
You must be signed in to change notification settings - Fork 10.7k
WP & PHP Upgrade Notices #23975
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
WP & PHP Upgrade Notices #23975
Conversation
…ng WP version smaller than 5.1
…add buttons linking out to WP pages with instructions.
…d banner that links to widget and make it dismissable.
Codecov Report
|
Codecov Report
|
claudiosanches
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
|
Thanks for review @claudiosanches, going to move this to In Progress again since the banner needs some changes. See p6q8Tx-XP-p2 |
rodrigoprimo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some inline comments with some minor issues that we might want to address before merging this.
Another thing is that the notice is that if the user is running an unsupported WP version and the notice is displayed, it will keep displaying even after WP is updated (I didn't check with a PHP update but I assume the same will happen). Maybe we need to change the code to remove the notice after the update?
includes/admin/views/html-notice-wp-php-minimum-requirements.php
Outdated
Show resolved
Hide resolved
includes/admin/views/html-notice-wp-php-minimum-requirements.php
Outdated
Show resolved
Hide resolved
To follow suit with other similar functions in the file.
|
As it was implemented previously, the refresh of displaying/not displaying the notice only happened on theme switch ( Theoretically speaking, the notice would not show if you had 'up to date' versions of WP/PHP, but then decided to downgrade them, but I would guess it's quite an edge case, so I decided to keep the add min notice a part of |
rodrigoprimo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes, Peter. Looks good to me now.



All Submissions:
Changes proposed in this Pull Request:
This PR introduces a dashboard widget and a banner that notifies and prompts users to upgrade their WordPress and/or PHP if they are outdated and not part of the minimum required versions going into WooCommerce 3.7.
This PR needs to go out in the 3.6 release.
How to test the changes in this Pull Request:
Other information:
Changelog entry