#36976 closed defect (bug) (invalid)
_fix_attachment_links() not called on publishing scheduled post
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.5.2 |
Component: | Permalinks | Keywords: | |
Focuses: | ui, administration, performance | Cc: |
Description
I have the following test case:
- Using WP 4.5.2 with pretty permalinks enabled
- Open the post editor in order to add a new post and fill in the post title
- Hit Add Media and upload a new image for the new post; I have set the image I just inserted to point to its corresponding attachment page. At this point, the attachment link is of the format .../?attachment_id=...
- Schedule the post for later publish and hit Schedule
- On scheduled timeout, the post gets published => the image corresponding attachment link still point to .../?attachment_id=...
- In the post editor, I hit Update => the image corresponding attachment link is finally pretty.
My expectation is that the pretty permalinks are automatically replaced at scheduled publish for the attachment links referred within the post content.
Change History (2)
Note: See
TracTickets for help on using
tickets.
@mariusveltan
I tried to reproduce the issue using the same steps you provided and I got the correct (pretty) attachment link.
Could you please check it again? maybe it has been fixed in a release after 4.5.2.