In reply to Sarah Gooding.

I have tested that code and am running it live on all of my sites. It seems to be working fine.