Skip to content

Commit afd6e00

Browse files
authored
Require file.php before using WP_Filesystem (#2435)
1 parent 103d532 commit afd6e00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

includes/class-attachments.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public static function delete_ap_posts_directory( $post_id ) {
4444
return;
4545
}
4646

47+
require_once ABSPATH . 'wp-admin/includes/file.php';
48+
4749
\WP_Filesystem();
4850
global $wp_filesystem;
4951

0 commit comments

Comments
 (0)