wp_load_image() attempts to load directories
|Reported by:||primehalo||Owned by:||nacin|
The wp_load_image() function in /wp-includes/media.php does a file_exists() check on the $file parameter, but that will return TRUE for both files and directories. There is no check to make sure $file is actually a file instead of a directory.
Change History (14)
- Component changed from General to Media
- Milestone changed from Awaiting Review to Future Release
- Summary changed from wp_load_image() to wp_load_image() attempts to load directories
Note: See TracTickets for help on using tickets.