Skip to content
Merged
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
5 changes: 4 additions & 1 deletion integration/class-litespeed-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private static function append_with_markers( $marker, $rules ) {
return false;
}

// Ensure get_home_path() is declared.
// Ensure WP_Filesystem() is declared.
require_once ABSPATH . 'wp-admin/includes/file.php';

global $wp_filesystem;
Expand Down Expand Up @@ -211,6 +211,9 @@ private static function append_with_markers( $marker, $rules ) {
private static function get_htaccess_file_path() {
$htaccess_file = false;

// Ensure get_home_path() is declared.
require_once ABSPATH . 'wp-admin/includes/file.php';

// phpcs:ignore WordPress.PHP.NoSilencedErrors
if ( @file_exists( \get_home_path() . '.htaccess' ) ) {
/** The htaccess file resides in ABSPATH */
Expand Down