ClassicPress / ClassicPress-Migration-Plugin

Switch your WordPress installation to ClassicPress.
Other
25 stars 19 forks source link

Improve Theme header checks for 'RequiresWP' #94

Closed mattyrob closed 6 months ago

mattyrob commented 2 years ago

As reported here: https://github.com/ClassicPress/ClassicPress-Migration-Plugin/issues/73#issuecomment-954164699

The RequiresWP and RequiresPHP headers were in WordPress 5.4, as such the current checks don't report the optimal message when migrating from WordPress 5.3 and lower as these headers are not parsed and passed by the core functions.

This patch forces the check for the RequiresWP header and amends the logic as necessary later in the check reporting to ensure we more optimally report theme compatibility with ClassicPress.

mattyrob commented 6 months ago

No longer needed with ClassicPress at v2