Make WordPress Core

Opened 7 years ago

Closed 8 months ago

Last modified 8 months ago

#36976 closed defect (bug) (invalid)

_fix_attachment_links() not called on publishing scheduled post

Reported by: mariusveltan's profile mariusveltan 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:

  1. Using WP 4.5.2 with pretty permalinks enabled
  2. Open the post editor in order to add a new post and fill in the post title
  3. 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=...
  4. Schedule the post for later publish and hit Schedule
  5. On scheduled timeout, the post gets published => the image corresponding attachment link still point to .../?attachment_id=...
  6. 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)

#1 @system909
8 months ago

  • Resolution set to invalid
  • Status changed from new to closed

@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.

#2 @antpb
8 months ago

#52324 was marked as a duplicate.

Note: See TracTickets for help on using tickets.