replacing deprecated wp calls

There are a few deprecated wp calls that have equivalent replacements. No change in functionality.