Replacing the deprecated function calls

https://github.com/GigaOM/gigaom/issues/5127

Note: I have not tested this @zbtirrell is setting up my testing environment on Thursday