| @@ -97,8 +97,9 @@ | ||
| 97 | 97 | if ( ! is_wp_error( $result ) ) { |
| 98 | 98 | return true; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | + $file_path = $this->get_file_path(); | |
| 101 | 102 | $file_name = $this->filesystem->make_path_relative( $file_path ); |
| 102 | 103 | |
| 103 | 104 | if ( 'edition_disabled' === $result->get_error_code() ) { |
| 104 | 105 | return new \WP_Error( |
| @@ -303,8 +304,9 @@ | ||
| 303 | 304 | return $writable; |
| 304 | 305 | } |
| 305 | 306 | |
| 306 | 307 | $file_path = $this->get_file_path(); |
| 308 | + $file_name = $this->filesystem->make_path_relative( $file_path ); | |
| 307 | 309 | |
| 308 | 310 | if ( ! $this->filesystem->exists( $file_path ) ) { |
| 309 | 311 | // This should not happen. |
| 310 | 312 | return ''; |