core update can be done in an idempotent way

condition should be added in wordpress::core::update