diff --git a/includes/wccom-site/class-wc-wccom-site-installer-requirements-check.php b/includes/wccom-site/class-wc-wccom-site-installer-requirements-check.php new file mode 100644 index 00000000000..21cd3c6eb90 --- /dev/null +++ b/includes/wccom-site/class-wc-wccom-site-installer-requirements-check.php @@ -0,0 +1,60 @@ + 503 ) ); + } + + return true; + } + + /** + * Validates if WP CRON is enabled. + * + * @since 3.8.0 + * @return bool + */ + private static function met_wp_cron_requirement() { + return ! ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ); + } + + /** + * Validates if `WP_CONTENT_DIR` is writable. + * + * @since 3.8.0 + * @return bool + */ + private static function met_filesystem_requirement() { + return is_writable( WP_CONTENT_DIR ); + } +}