@robbono on WordPress.org
Reopened ticket #9256 on Core Trac:clean up the global variables when moving out of the loop