Skip to content

Commit 08a64be

Browse files
committed
fix(Functions): Added file include for wpfs hook
1 parent 0430cff commit 08a64be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WPFS.php

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ final public static function load(
3030

3131
private static function hook(): void {
3232
require_once ABSPATH . 'wp-admin/includes/file.php';
33+
require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-direct.php';
3334
\add_filter( 'filesystem_method', array( self::class, 'fs_method' ), 99, 2 );
3435
}
3536

0 commit comments

Comments
 (0)