Open garretthyder opened 4 years ago
If WP core were to ever remove this function, the compat should still kick in. As of now, the @deprecated
attribute is solely for the human and documentation tool purposes, so it shouldn't trigger any warnings or errors from the PHP engine.
I think a sensible approach would be to call wp_slash
within the compat wp_slash_strings_only
function if the site is running WP >= 5.5. Given the relatively simpleness of the compat, I'd say that it's OK to leave the compat function declaration as-is as well.
Coming from core#50635 "the plugin could probably be updated to call wp_slash() on WP 5.5+, and wp_slash_strings_only() on older versions."
Relevant thread;
Opening this ticket to look into addressing the deprecation.