added backtrace for rewrites in WP