Fix bug with uploading in WordPress 3.9 and fixed issue with URLs no being correct when migrating sites.

Also fixed quick tags duplication error.