WordPress.org

Make WordPress Core

Ticket #33924: 33924.patch

File 33924.patch, 480 bytes (added by juliobox, 4 years ago)
  • formatting.php

     
    15981598        $sanitized = preg_replace( '|%[a-fA-F0-9][a-fA-F0-9]|', '', $class );
    15991599
    16001600        //Limit to A-Z,a-z,0-9,_,-
    1601         $sanitized = preg_replace( '/[^A-Za-z0-9_-]/', '', $sanitized );
     1601        $sanitized = preg_replace( '/[^A-Za-z0-9@_-]/', '', $sanitized );
    16021602
    16031603        if ( '' == $sanitized )
    16041604                $sanitized = $fallback;