WordPress.org

Make WordPress Core

Opened 19 months ago

#36976 new defect (bug)

_fix_attachment_links() not called on publishing scheduled post

Reported by: mariusveltan Owned by:
Milestone: Awaiting Review 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 (0)

Note: See TracTickets for help on using tickets.