Reporting sanitize_url() as Deprecated
-
Hello team,
Firstly, I’d like to extend my gratitude for creating this plugin. It’s an invaluable tool for developers like myself who aim to ensure our plugins adhere to WordPress standards.
However, I’ve come across a potential oversight that I wanted to bring to your attention. While reviewing one of my plugin, “Plugin Review” flagged the use of sanitize_url() as being deprecated since WordPress version 2.8.0, suggesting the use of esc_url_raw() instead.
Here is the full report:
WordPress.WP.DeprecatedFunctions.sanitize_urlFound Line 766 of file classes/index.php.
sanitize_url() has been deprecated since WordPress version 2.8.0. Use esc_url_raw() instead.Upon checking the official WordPress documentation, I noticed that sanitize_url() was indeed deprecated in version 2.8.0 but was subsequently “Restored (un-deprecated)” in version 5.9.0.
It appears that the plugin might not be recognizing the restoration of this function in its checks. I wanted to share this feedback in the hopes that it might help in refining the plugin’s checks for future updates.
Thank you once again for your hard work on this essential tool. Looking forward to seeing it evolve further!
Warm regards,
Senol
- The topic ‘Reporting sanitize_url() as Deprecated’ is closed to new replies.