Added Wordpress action callback for attachments, otherwise their meta data won't be saved.
Added the default return value.