Removing  deprecated WordPress function