[wp-trac] [WordPress Trac] #51841: Please add a wordpress function to convert a given file name string into what it would turn into if uploaded to the media library
WordPress Trac
noreply at wordpress.org
Fri Nov 20 22:53:45 UTC 2020
#51841: Please add a wordpress function to convert a given file name string into
what it would turn into if uploaded to the media library
-----------------------------+------------------------------
Reporter: tannerm | Owner: (none)
Type: feature request | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by tannerm):
Nevermind, here is is!
https://developer.wordpress.org/reference/functions/sanitize_file_name/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51841#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list