Optimized ee site update wp code