Automattic / babble

Multilingual WordPress done right.
https://wordpress.org/plugins/babble/
245 stars 50 forks source link

Media translation #255

Open Fab1en opened 9 years ago

Fab1en commented 9 years ago

Enable media to be translated. I mean

  1. galleries present in translated posts should display
  2. images caption and title should be translatable
Fab1en commented 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' );