plugin update(wp-media-folder)

This commit is contained in:
Tony Volpe
2024-07-23 13:26:20 -04:00
parent 316f4ab4e1
commit aa4d364762
12 changed files with 90 additions and 40 deletions

View File

@@ -94,7 +94,7 @@ it must be in the same format, ie. jpg > jpg… Thanks!', 'wpmf')
);
}
unlink($filepath);
wp_delete_file($filepath);
if (in_array($infopath['extension'], $allowedImageTypes)) {
if (isset($metadata['sizes']) && is_array($metadata['sizes'])) {
foreach ($metadata['sizes'] as $size => $sizeinfo) {