replacing deprecated wp calls
Merge pull request #49 from bdolor/dev

replacing deprecated wp calls