babble
babble copied to clipboard
Media translation
Enable media to be translated. I mean
- galleries present in translated posts should display
- images caption and title should be translatable
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' );