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

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

global $wp_filesystem;
\WP_Filesystem();

Expand Down Expand Up @@ -211,6 +208,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
Loading