Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
/**
* Can load function to determine if Persistent Object Cache Health Check module is already merged in WordPress core.
*
* @since n.e.x.t
* @package performance-lab
*/

/**
* Checks whether the given module is already merged into the WordPress core.
*
* @since n.e.x.t
*
* @global string $wp_version The WordPress version string.
*/
return function() {
global $wp_version;

return version_compare( $wp_version, '6.1.0', '<' );
};
20 changes: 20 additions & 0 deletions modules/site-health/audit-full-page-cache/can-load.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
/**
* Can load function to determine if Full Page Cache Health Check module is already merged in WordPress core.
*
* @since n.e.x.t
* @package performance-lab
*/

/**
* Checks whether the given module is already merged into the WordPress core.
*
* @since n.e.x.t
*
* @global string $wp_version The WordPress version string.
*/
return function() {
global $wp_version;

return version_compare( $wp_version, '6.1.0', '<' );
};