Open Fab1en opened 9 years ago
Here is a list of places in the core code that prevent using a shadow post type to early to replace the requested attachment post :
1 In wp_get_attachment_link
(source):
if ( 'attachment' != $post->post_type )
return false;
2 In wp_get_attachment_link
(source) :
if ( empty( $_post ) || ( 'attachment' != $_post->post_type ) || ! $url = wp_get_attachment_url( $_post->ID ) )
return __( 'Missing Attachment' );
Enable media to be translated. I mean