Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Media: Use
wp_basename()
to create attachment titles from filenames.
In [38294], `pathinfo()` was used with the `PATHINFO_BASENAME` constant to get the basename of the file to be used as an attachment title, which depends on PHP locale and can cause issues with UTF-8 characters. This uses `wp_basename()` instead, which is a more i18n-friendly version of `basename()`. Props SergeyBiryukov. Fixes #37608, #37989. Built from https://develop.svn.wordpress.org/trunk@38673 git-svn-id: http://core.svn.wordpress.org/trunk@38616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information