rtrim() php 8.1 warning in wp-includes/formatting.php fixing
-
function untrailingslashit( $string ) { $string = !empty($string) ? rtrim( $string, '/\\' ) : $string; return $string; }
instead
function untrailingslashit( $string ) { return rtrim( $string, '/\\' ); }
to stop the warnings. Please, add that in the next version. Tks! ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘rtrim() php 8.1 warning in wp-includes/formatting.php fixing’ is closed to new replies.