* Code reformatted to better meet WordPress Coding Standards (see https://gist.github.com/Cais/8023722)