wp-includes/formatting.php:2818Removes trailing forward slashes and backslashes if they exist.
$valuestringfunction untrailingslashit( $value ) { return rtrim( $value, '/\\' );}Introduced in 2.2.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$value retyped from untyped to string.verified against sourcesrc/wp-includes/formatting.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.