Replace deprecated TEMPLATEPATH constant - see https://core.trac.wordpress.org/ticket/18298