Skip to content

Commit

Permalink
Update Filesystem Utility Path
Browse files Browse the repository at this point in the history
### Changed
- Updated the path for requiring 'file.php' to use absolute path.
  • Loading branch information
smileBeda committed May 29, 2024
1 parent 10d9c90 commit 006b7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/src/utilities/class-wp-filesystem-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static function get_filesystem(): object {
if ( null === self::$filesystem ) {

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

0 comments on commit 006b7eb

Please sign in to comment.