parameter and authorization fixes for wp update