diff --git a/src/.vscode/settings.json b/src/.vscode/settings.json
new file mode 100644
index 0000000..20af2f6
-
|
+
|
|
| 1 | // Place your settings in this file to overwrite default and user settings. |
| 2 | { |
| 3 | } |
| 4 | No newline at end of file |
diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index 56c2ea5..ed56932 100644
a
|
b
|
function get_attached_file( $attachment_id, $unfiltered = false ) { |
274 | 274 | $file = get_post_meta( $attachment_id, '_wp_attached_file', true ); |
275 | 275 | |
276 | 276 | // If the file is relative, prepend upload dir. |
277 | | if ( $file && 0 !== strpos( $file, '/' ) && ! preg_match( '|^.:\\\|', $file ) && ( ( $uploads = wp_get_upload_dir() ) && false === $uploads['error'] ) ) { |
| 277 | if ( $file && 0 !== strpos( $file, '/' ) && ! preg_match( '|^.:\\\|', $file ) && ! preg_match('|:/|', $file) && ( ( $uploads = wp_get_upload_dir() ) && false === $uploads['error'] ) ) { |
278 | 278 | $file = $uploads['basedir'] . "/$file"; |
279 | 279 | } |
280 | 280 | |