This fixes #8249.  It now takes the publish attribute.