_fix_attachment_links
- %1$s is private and should not be used in themes or plugins directly.
_fix_attachment_links ( $post )
Access:Parameters:- (int|WP_Post) post Post ID or post object.
Returns:- (void|int|WP_Error) Void if nothing fixed. 0 or WP_Error on update failure. The post ID on update success.
Defined at: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Replaces hrefs of attachment anchors with up-to-date permalinks.