The WordPress-Core standard did not include all the relevant coding style checks, so this now uses and passes with the WordPress standard.
Although sanitize_url() has been redeemed by WordPress as the path forward, WPCS doesn't reflect this change yet, so we'll use esc_url_raw(), which is a viable alias, for now.
The WordPress-Core standard did not include all the relevant coding style checks, so this now uses and passes with the WordPress standard.
Although sanitize_url() has been redeemed by WordPress as the path forward, WPCS doesn't reflect this change yet, so we'll use esc_url_raw(), which is a viable alias, for now.