Compatibility commit for 3.5: since 3.5 media ui explicitly defines ids of attachments to display in a gallery, make sure we add approved attachment id to that gallery
Start of workaround for upload_mimes
Merge branch 'master' of github.com:rinatkhaziev/wp-frontend-uploader