upgrade wp and change permissions