Currently this replaces function in a hook_theme_registry_alter, which means it doesn't apply if the theme implements the template function.

Attached patch uses preprocess to achieve the same effect in a more interoperable way.

Support from Acquia helps fund testing for Drupal Acquia logo