Repository navigation
Conversation
🤖 PR meta 🤖🎉 PropsUnlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @lazerg. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the |
|
I don't have permission to add labels here, could someone add |
|
The Playwright failure is the WebKit drag selection test in multi-block-selection.spec.js. It is a known flake and my change doesn't touch it. |
What?
Closes #86380
Show the decoded filename in the media inserter's audio preview, so a file like
生成波の音1.mp3shows up as is instead of%E7%94%9F%E6%88%90....Why?
FilePreviewtakes the name fromgetFilename( url ), which reads it fromURL.pathname. The pathname is always percent-encoded, so any non-ASCII filename came out as an encoded string, and the long result got truncated too.How?
Pass the filename through
safeDecodeURIComponentbefore rendering it. If decoding fails, the encoded name is still shown as before.Testing Instructions
生成波の音1.mp3.生成波の音1.mp3.Use of AI Tools
Claude Code helped write the fix.