Make WordPress Core

Ticket #56485: 56485.patch

File 56485.patch, 484 bytes (added by hiren1094, 18 months ago)

Patch Added

  • 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 ) { 
    27792779 * @return string String without the trailing slashes.
    27802780 */
    27812781function untrailingslashit( $string ) {
    2782         return rtrim( $string, '/\\' );
     2782        if ( ! empty( $string ) ) {
     2783                $string = rtrim( $string, '/\\' );
     2784        }
     2785        return $string;
    27832786}
    27842787
    27852788/**