refactor(util wordpress): minor refactor for variable declarations