WP-3013 Adding token_replace handling