WordPress.org

Make WordPress Core

Ticket #47539: formatting.php.diff

File formatting.php.diff, 582 bytes (added by mt8.biz, 5 months ago)
  • wp-includes/formatting.php

     
    20112011        $filename      = str_replace( $special_chars, '', $filename );
    20122012        $filename      = str_replace( array( '%20', '+' ), '-', $filename );
    20132013        $filename      = preg_replace( '/[\r\n\t -]+/', '-', $filename );
     2014        $filename      = preg_replace( '/[\x00-\x1F]/', '', $filename );
    20142015        $filename      = trim( $filename, '.-_' );
    20152016
    20162017        if ( false === strpos( $filename, '.' ) ) {