Opened 11 years ago
Closed 11 years ago
#35980 closed defect (bug) (fixed)
Media attachments show urlencoded permalinks on attachment editing screen
| Reported by: | johnbillion | Owned by: | johnbillion |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.