Fixed media upload dialogue for WP 3.6
Merge pull request #69 from pauljtbennett/master

Fixed media upload dialogue for WP 3.6