Move the call to `add_providers()` to the `plugins_loaded` hook

See https://core.trac.wordpress.org/ticket/28284 for background.