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.
As reported here: https://github.com/ClassicPress/ClassicPress-Migration-Plugin/issues/73#issuecomment-954164699
The
RequiresWP
andRequiresPHP
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.