Stop WordPress Pinging Itself When you Link Internally

I find it very annoying when I place a link on one post, to another post and then I get a comment notification within the WordPress admin informing me there has been a ping/trackback to one of my posts. With the below snippet you can stop this happening (place in functions.php file):