WordPress.org

Make WordPress Core

Ticket #10497: safemode-mkdir.diff

File safemode-mkdir.diff, 479 bytes (added by remi, 6 years ago)
  • wp-admin/includes/class-wp-filesystem-direct.php

     
    206206        } 
    207207 
    208208        function mkdir($path, $chmod = false, $chown = false, $chgrp = false){ 
     209                $path = untrailingslashit($path); 
    209210                if ( ! @mkdir($path) ) 
    210211                        return false; 
    211212                $this->chmod($path, $chmod);