Changeset 54712 for trunk/src/wp-includes/post.php
- Timestamp:
- 10/28/2022 03:16:29 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r54524 r54712 725 725 726 726 // If the file is relative, prepend upload dir. 727 if ( $file ) {727 if ( $file && 0 !== strpos( $file, '/' ) && ! preg_match( '|^.:\\\|', $file ) ) { 728 728 $uploads = wp_get_upload_dir(); 729 730 729 if ( false === $uploads['error'] ) { 731 $file = path_join( $uploads['basedir'], $file );730 $file = $uploads['basedir'] . "/$file"; 732 731 } 733 732 }
Note: See TracChangeset
for help on using the changeset viewer.