Ensure that inserted images linked to the attachment page get correct permalink format
|Reported by:||jond3r||Owned by:|
When inserting an unattached image (with no parent) from the media library and setting the "Link To" option to "Attachment page", the URL at first gets the default query string format (with a '?'). Though after updating the post it gets the final "pretty" format (which seems to happen in the function _fix_attachment_links() in wp-admin/includes/post.php).
The provided patch, gives the URL the final pretty format directly.
See also #22085.
Change History (9)
- Summary changed from Ensure that unattached images inserted from media library get pretty url directly to Ensure that inserted images linked to the attachment page get correct permalink format