Rejoice to sanitize_url()

At least once a day, someone has to explain that the only esc_ function you can use to sanitize is esc_url_raw(). This stems from what was (at the time) a logical change. The function sanitize_url() was an alias for esc_url_raw() and it’s redundant to have both.

This post was originally published on Make Plugins by Ipstenu (Mika Epstein).

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.