mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 19:54:28 +00:00
0d0e2bf2badea8b5699aba397d9ea6e16150fcea
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. git-svn-id: https://develop.svn.wordpress.org/trunk@38673 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
80.5%
CSS
9.4%
JavaScript
8.5%
SCSS
0.9%
HTML
0.7%