Skip to content

Commit

Permalink
Updated filesystem utility initialization
Browse files Browse the repository at this point in the history
- ADDED: Inclusion of 'file.php' in the filesystem utility class
- CHANGED: Initialization of 'filesystem' variable to use absolute namespace reference
  • Loading branch information
smileBeda committed May 26, 2024
1 parent 3efd3c3 commit 18afb63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/src/utilities/class-wp-filesystem-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ public static function get_filesystem(): object {

if ( null === self::$filesystem ) {

require_once \ABSPATH . 'wp-admin/includes/file.php';
\WP_Filesystem();
self::$filesystem = new WP_Filesystem_Direct( true );
self::$filesystem = new \WP_Filesystem_Direct( true );
}

return self::$filesystem;
Expand Down

0 comments on commit 18afb63

Please sign in to comment.