!empty($chpl_flags->get('RequiresWP')) ? $chpl_flags->get('RequiresWP') : '', 'requires_php' => !empty($chpl_flags->get('RequiresPHP')) ? $chpl_flags->get('RequiresPHP') : '');
$category_paths = is_wp_version_compatible($deactivate['requires']);
$v1 = is_php_version_compatible($deactivate['requires_php']);
if (!$category_paths && !$v1) {
return new WP_Error('theme_wp_php_incompatible', sprintf(
/* translators: %s: Theme name. */
_x('Error: Current WordPress and PHP versions do not meet minimum requirements for %s.', 'theme'),
$chpl_flags->display('Name')
));
} elseif (!$v1) {
return new WP_Error('theme_php_incompatible', sprintf(
/* translators: %s: Theme name. */
_x('Error: Current PHP version does not meet minimum requirements for %s.', 'theme'),
$chpl_flags->display('Name')
));
} elseif (!$category_paths) {
return new WP_Error('theme_wp_incompatible', sprintf(
/* translators: %s: Theme name. */
_x('Error: Current WordPress version does not meet minimum requirements for %s.', 'theme'),
$chpl_flags->display('Name')
));
}
return true;
}
/**
* Constructs an inline script tag.
*
* It is possible to inject attributes in the `