Skip to content

Converts Cyrillic, Georgian, Arabic and Chinese characters in post, term slugs and media file names to Latin characters in WordPress.

License

Notifications You must be signed in to change notification settings

aucor/aucor-url-sanitizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aucor URL Sanitizer

Contributors: Teemu Suoranta

Tags: wordpress, i18n, slug, sanitize

License: GPLv2 or later

Description

Converts Cyrillic, Georgian, Arabic and Chinese characters in post, term slugs and media file names to Latin characters.

This plugins uses parts from following plugins:

The problem

WordPress cannot sanitize all languages correctly which leaves pretty permalink with bare post ID. There are a few separate plugins to handle sanitazing but they won't generally play along nicley and end up often removing parts from other languages.

The solution

This plugins combines the few working slug sanitazing plugins so that they will work together.

If you need only one of above plugins, you can (and probably should) use them instead of this. If you are in need of multiple of these plugins, this is the conflict-free combination for you.

What this plugin sanitizes?

  • Post slug
  • Term slug
  • Filename

These are sanitized with WordPress's filter and done in post save etc.

Notice: There is no bulk sanitizing option right now. If you are in need of it, some of the plugins above have their own solutions so adding the feature here wouldn't be such a big hassle. Send a PR!

What about language X?

Send PR to add other languages to the mix.

Changelog

2.1.1

  • WordPress.org release

2.1

  • Add transliterator_transliterate as last resort to catch-all clean up, props @tnottu

2.0

  • Github release

About

Converts Cyrillic, Georgian, Arabic and Chinese characters in post, term slugs and media file names to Latin characters in WordPress.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages