Ticket #56485: 56485.patch
| File 56485.patch, 484 bytes (added by , 3 years ago) |
|---|
-
src/wp-includes/formatting.php
diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 8d41efffdc..210301e250 100644
a b function trailingslashit( $string ) { 2779 2779 * @return string String without the trailing slashes. 2780 2780 */ 2781 2781 function untrailingslashit( $string ) { 2782 return rtrim( $string, '/\\' ); 2782 if ( ! empty( $string ) ) { 2783 $string = rtrim( $string, '/\\' ); 2784 } 2785 return $string; 2783 2786 } 2784 2787 2785 2788 /**