Merge pull request #4 from Japh/master

Fix for deprecated function use and handling of WP_Error