In reply to mark k..

The code isn't bad. It's just not allowed in wporg themes, which one went under review and was accepted.