Changeset 1389474
- Timestamp:
- 04/07/2016 03:01:34 PM (10 years ago)
- Location:
- nicer-permalinks-for-vietnamese
- Files:
-
- 3 added
- 2 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/np4v.php (added)
-
tags/1.0.1/readme.txt (added)
-
trunk/np4v.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nicer-permalinks-for-vietnamese/trunk/np4v.php
r27174 r1389474 2 2 /* 3 3 Plugin Name: Nicer permalinks for Vietnamese 4 Plugin URI: http ://onetruebrace.com/nicer-permalinks-for-vietnamese5 Description: A simple plugin to remove Vietnamese accents from permalinks4 Plugin URI: https://wordpress.org/plugins/nicer-permalinks-for-vietnamese/ 5 Description: A simple plugin to remove Vietnamese diacritics from permalinks 6 6 Author: Quang Anh Do 7 Version: 1.0 8 Author URI: http:// onetruebrace.com7 Version: 1.0.1 8 Author URI: http://anh.lv 9 9 */ 10 10 11 function qad_remove_accents($string) {11 function anh_remove_diacritics($string) { 12 12 $trans = array( 13 13 'à'=>'a','á'=>'a','ả'=>'a','ã'=>'a','ạ'=>'a', … … 40 40 } 41 41 42 add_filter('sanitize_title', ' qad_remove_accents', 1);42 add_filter('sanitize_title', 'anh_remove_diacritics', 1); 43 43 44 44 ?> -
nicer-permalinks-for-vietnamese/trunk/readme.txt
r27174 r1389474 1 1 === Plugin Name === 2 2 Contributors: quanganhdo 3 Donate link: http:// onetruebrace.com/4 Tags: vietnamese, permalink 3 Donate link: http://anh.lv 4 Tags: vietnamese, permalink, diacritic 5 5 Requires at least: 2.0 6 Tested up to: 2.3.16 Tested up to: 4.4.2 7 7 Stable tag: 1.0 8 License: GPLv2 or later 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 8 10 9 11 Remove ugly characters like %xx from your permalink … … 17 19 1. Upload `np4v.php` to the `/wp-content/plugins/` directory 18 20 1. Activate the plugin through the 'Plugins' menu in WordPress 19 20 More Info: [Click here to read my blog post](http://onetruebrace.com/nicer-permalinks-for-vietnamese np4v)
Note: See TracChangeset
for help on using the changeset viewer.