woothemes/woocommerce — pull request #566 by pixeltrix (2012-02-02 11:36:05+00:00)
Title: Convert show_messages to a template function

Currrently when the hooks are setup the woocommerce global variable
is null so the _wp_filter_build_unique_id fails to create a unique id.
This prevents the hook begin removed in a theme so that the message
output can be repositioned.

To fix this the code for generating the message HTML has being moved
to a template function and the hooks changed to a simple function name.
This has the added benefit that the message HTML can be changed within
a theme by overriding the woocommerce_show_messages function.