Opened 9 years ago
Closed 9 years ago
#35980 closed defect (bug) (fixed)
Media attachments show urlencoded permalinks on attachment editing screen
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
Publish a regular post with a title of صورة
and the permalink on the post editing screen will be displayed as:
Permalink: https://example.com/2016/02/صورة/
However if you upload an image named صورة.jpg
then the permalink on its attachment editing screen will be shown urlencoded:
Permalink: https://example.com/%d8%b5%d9%88%d8%b1%d8%a9/
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
35980.diff fixes the issue, adjusts existing tests for
get_sample_permalink_html()
so they also consider urlencoding of the permalink, and adds a new test forget_sample_permalink_html()
for attachments.