WordPress.org

Make WordPress Core

Ticket #16905: 16905.2.patch

File 16905.2.patch, 669 bytes (added by hakre, 7 years ago)

Call sanitize title prior remove_accents

  • wp-includes/formatting.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    802802function sanitize_title($title, $fallback_title = '', $context = 'save') {
    803803        $raw_title = $title;
    804804
     805        $title = apply_filters('sanitize_title', $title, $raw_title, $context);
     806
    805807        if ( 'save' == $context )
    806808                $title = remove_accents($title);
    807809
    808         $title = apply_filters('sanitize_title', $title, $raw_title, $context);
    809 
    810810        if ( '' === $title || false === $title )
    811811                $title = $fallback_title;
    812812