Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix php 'deprecated' warning on null parameters.
  • Loading branch information
tools400 authored Mar 4, 2023
commit 00596813d2b9cfb431ae20813e154c5038442c2c
2 changes: 1 addition & 1 deletion src/wp-includes/formatting.php
Original file line number Diff line number Diff line change
Expand Up @@ -2783,7 +2783,7 @@ function trailingslashit( $value ) {
* @return string String without the trailing slashes.
*/
function untrailingslashit( $value ) {
return rtrim( $value, '/\\' );
return rtrim( $value ?? '', '/\\' );
}

/**
Expand Down