Skip to main content
8 events
when toggle format what by license comment
Mar 27, 2015 at 11:49 vote accept untore
Mar 27, 2015 at 11:49 vote accept untore
Mar 27, 2015 at 11:49
Mar 15, 2015 at 10:46 comment added untore generate_filename adds the extension itself so there is no need for pathinfo, basically every method in the image editor obj retrieves the extension, but it just can't be accessed from the outside...the only problem is the fact that it adds a suffix and it needs to be removed as I specified in the answer
Mar 15, 2015 at 10:43 answer added untore timeline score: 0
Mar 15, 2015 at 4:03 comment added kingkool68 Could you use pathinfo on the result from the generate_filename method? I'm just guessing by reading the source at core.trac.wordpress.org/browser/tags/4.1.1/src/wp-includes/…
Mar 14, 2015 at 22:55 comment added untore $filename in pathinfo requires the path ending with the extension so I would need the extension to get the extension..The thing is that I save the file using the save() method of wp image editor object which adds the file extension when saving the file so I cannot even use pathinfo of the saved object, I guess I will use php directly to save the images...anyway the image editor object in wp seems really silly in this way.
Mar 14, 2015 at 22:37 comment added TheDeadMedic Just use pathinfo
Mar 14, 2015 at 22:34 history asked untore CC BY-SA 3.0