// If there's an entry in the $sizes array, it means that the image resized to this size
if (isset($sizes[$k])) {
-
+echo GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$sizes[$k]['file'].' => '.GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$k.'/'.$newFilename."<br>";
// Move resized file to desired direectory
rename(GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$sizes[$k]['file'], GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$k.'/'.$newFilename);
} else {
-
+echo GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$newFilename.' => '.GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$k.'/'.$newFilename."<br>";
// Image didn't resize to this size, probably because it was smaller than the destination size (silly WP Image Editor class) - so just use the original
copy(GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$newFilename, GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$k.'/'.$newFilename);