Changeset 1369048
- Timestamp:
- 03/11/2016 09:55:32 AM (10 years ago)
- Location:
- bulglish-permalinks/trunk
- Files:
-
- 2 edited
-
bulglish-permalinks.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bulglish-permalinks/trunk/bulglish-permalinks.php
r1098480 r1369048 3 3 Plugin Name: Bulglish permalinks 4 4 Plugin URI: http://talkingaboutthis.eu 5 Description: This plugins provides bulglish permalinks for cyrillic titles . Based on the work of Iacovos Constantinou5 Description: This plugins provides bulglish permalinks for cyrillic titles and filenames. Based on the work of Iacovos Constantinou 6 6 Author: Boyan Raichev 7 Version: 1. 2.07 Version: 1.3.0 8 8 Author URI: http://talkingaboutthis.eu/ 9 9 */ … … 54 54 } 55 55 add_filter('sanitize_title', 'bulglish_permalinks_title', 1); 56 57 // now also change filenames! 58 function bulglish_filenames( $file ){ 59 $file['name'] = bulglish_permalinks_title($file['name']); 60 return $file; 61 } 62 add_filter('wp_handle_upload_prefilter', 'bulglish_filenames' ); 56 63 ?> -
bulglish-permalinks/trunk/readme.txt
r1098481 r1369048 4 4 Tags: bulgarian, bulgarian permalink, cyrillic, slugs, transliteration 5 5 Requires at least: 3.0.1 6 Tested up to: 4. 1.07 Stable tag: 1. 2.06 Tested up to: 4.4.0 7 Stable tag: 1.3.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 This plugin converts Bulgarian cyrillic characters in slugs to Latin characters, according to the official rules for transliteration.11 This plugin converts Bulgarian cyrillic characters in slugs and filenames to Latin characters, according to the official rules for transliteration. 12 12 13 13 == Description == 14 14 15 This plugin converts Bulgarian cyrillic characters in slugs to Latin characters, according to the official rules for transliteration.15 This plugin converts Bulgarian cyrillic characters in slugs and filenames to Latin characters, according to the official rules for transliteration. 16 16 17 17 Cyrillic letters in URLs, while supported, are ugly and when copy/pasted around the internet are often encoded (converted to those ugly URLs looking like %DU^ED%…) 18 18 The Plugin based on the work of Iacovos Constantinou for a similar plugin for greek alphabet. 19 20 The plugin automatically converts slugs when a post is created, as well as file names, when a file is uploaded. 19 21 20 22 It will also work for Russian permalinks, as it matches all the letters in the Russian alphabet, although the user should have in mind that there are minor differences in the common transliterations rules in the two languages. … … 37 39 == Changelog == 38 40 41 = 1.3.0 = 42 * Now will auto convert filenames upon upload 43 39 44 = 1.2.0 = 40 45 * Works on front end saving of posts as well … … 49 54 == Upgrade Notice == 50 55 56 = 1.3.0 = 57 Auto converts filenames upon upload 58 51 59 = 1.2.0 = 52 60 Will work on front-end saving of posts as well
Note: See TracChangeset
for help on using the changeset viewer.