WordPress.org

Make WordPress Core

Ticket #10823: 10823.diff

File 10823.diff, 532 bytes (added by solarissmoke, 9 years ago)
  • wp-includes/formatting.php

     
    845845        }
    846846
    847847        $title = strtolower($title);
    848         $title = preg_replace('/&.+?;/', '', $title); // kill entities
     848        $title = preg_replace('/&[^\s]+?;/', '', $title); // kill entities
    849849        $title = str_replace('.', '-', $title);
    850850        $title = preg_replace('/[^%a-z0-9 _-]/', '', $title);
    851851        $title = preg_replace('/\s+/', '-', $title);