update wp config with staging file check