← All changes
|
modules/atomic-widgets/styles/css-files-manager.php
+0
-11
4.2.1
→
3.32.0-dev2
View file →
| @@ -47,19 +47,8 @@ | ||
| 47 | 47 | $media |
| 48 | 48 | ); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - public function delete( string $handle ): void { | |
| 52 | - $filesystem = $this->get_filesystem(); | |
| 53 | - $path = $this->get_path( $handle ); | |
| 54 | - | |
| 55 | - if ( ! $filesystem->exists( $path ) ) { | |
| 56 | - return; | |
| 57 | - } | |
| 58 | - | |
| 59 | - $filesystem->delete( $path ); | |
| 60 | - } | |
| 61 | - | |
| 62 | 51 | private function get_filesystem(): \WP_Filesystem_Base { |
| 63 | 52 | global $wp_filesystem; |
| 64 | 53 | |
| 65 | 54 | if ( empty( $wp_filesystem ) ) { |