Make WordPress Core

Ticket #20778: 20778.2.patch

File 20778.2.patch, 493 bytes (added by SergeyBiryukov, 12 years ago)
  • wp-includes/functions.php

     
    14041404        if ( function_exists('sys_get_temp_dir') ) {
    14051405                $temp = sys_get_temp_dir();
    14061406                if ( @is_dir( $temp ) && ( $is_win ? win_is_writable( $temp ) : @is_writable( $temp ) ) ) {
    1407                         return trailingslashit( $temp );
     1407                        return trailingslashit( rtrim( $temp, '\\' ) );
    14081408                }
    14091409        }
    14101410