Upgrade/Install: Add support for an optional $options parameter to populate_options().
$options
populate_options()
Fixes #44893. See #41333.