removed WP_DIRNAME constant