Make WordPress Core

Ticket #15248: allow-accents-in-slugs.php

File allow-accents-in-slugs.php, 472 bytes (added by SergeyBiryukov, 13 years ago)

Allows to keep accented characters in post and term slugs.

Line 
1<?php
2/*
3Plugin Name: Allow Accents in Slugs
4Plugin URI: http://core.trac.wordpress.org/ticket/15248
5Description: Allows to keep accented characters in post and term slugs.
6Author: Sergey Biryukov
7Author URI: http://profiles.wordpress.org/sergeybiryukov/
8Version: 0.1
9*/ 
10
11function aas_restore_raw_title($title, $raw_title, $context) {
12    return ( $context == 'save' ) ? $raw_title : $title;
13}
14add_filter('sanitize_title', 'aas_restore_raw_title', 9, 3);
15?>