Changes between Initial Version and Version 1 of Ticket #13429, comment 44
- Timestamp:
- 03/09/2012 10:08:36 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13429, comment 44
initial v1 3 3 Did some quick testing and don't see any problems with attachment links and URLs to attached files that would require them to be fixed/rewritten after the post is saved. Seems we can safely stop replacing the URLs. 4 4 5 There is also another part to `_fix_attachment_links()`. It attaches orphaned attachments when they are used in a post (if the "wp-att-###" bit is present). This is useful for files that were uploaded directly from the Media -> Libraryscreen. However we are also doing something similar while inserting a file into the editor (in media.php), so not sure if repeating it is needed.5 There is also another part to `_fix_attachment_links()`. It attaches orphaned attachments when they are used in a post (if the "wp-att-###" bit is present). This is useful for files that were uploaded directly from the Media -> Add New screen. However we are also doing something similar while inserting a file into the editor (in media.php), so not sure if repeating it is needed. 6 6 7 7 Overall removing `_fix_attachment_links()` seems the proper solution. This also improves performance while saving a post.