martinsuly / qtranslate-extra

Wordpress plugin that extends qTranslate plugin with possibility to easily translate widgets, menus and more.
0 stars 0 forks source link

attachments #1

Open fsmanuel opened 10 years ago

fsmanuel commented 10 years ago

I like the plugin. Works perfekt but not for attachments. I did a small change to let it play nice with attachments:

if ($post && isset($post->post_type) && $post->post_type !== 'attachment')
  $hook.= '?post_type='.$post->post_type;

&& $post->post_type !== 'attachment' prevents post.php?post_type=attachment that doesn't work.

martinsuly commented 10 years ago

Thanks for a nice tip. I had no enough time yet to do it, but I want to publish the plugin to WP repo (it's already approved) when it will be finished, hopefully soon.

fsmanuel commented 10 years ago

should i open a PR? maybe i can help you a bit when i find some time.