Changeset 3445244
- Timestamp:
- 01/23/2026 01:31:00 AM (2 months ago)
- Location:
- so-pinyin-slugs
- Files:
-
- 25 added
- 4 edited
-
tags/2.3.7 (added)
-
tags/2.3.7/README.md (added)
-
tags/2.3.7/admin (added)
-
tags/2.3.7/admin/settings.php (added)
-
tags/2.3.7/assets (added)
-
tags/2.3.7/assets/screenshot-1.jpg (added)
-
tags/2.3.7/assets/screenshot-2.jpg (added)
-
tags/2.3.7/assets/screenshot-3.png (added)
-
tags/2.3.7/assets/wpml-ready-badge.png (added)
-
tags/2.3.7/css (added)
-
tags/2.3.7/css/settings.css (added)
-
tags/2.3.7/images (added)
-
tags/2.3.7/images/pieterbos.jpg (added)
-
tags/2.3.7/inc (added)
-
tags/2.3.7/inc/dictionary.php (added)
-
tags/2.3.7/inc/functions.php (added)
-
tags/2.3.7/languages (added)
-
tags/2.3.7/languages/so-pinyin-slugs-nl_NL.mo (added)
-
tags/2.3.7/languages/so-pinyin-slugs-nl_NL.po (added)
-
tags/2.3.7/languages/so-pinyin-slugs-zh_CN.mo (added)
-
tags/2.3.7/languages/so-pinyin-slugs-zh_CN.po (added)
-
tags/2.3.7/languages/so-pinyin-slugs.po (added)
-
tags/2.3.7/languages/so-pinyin-slugs.pot (added)
-
tags/2.3.7/readme.txt (added)
-
tags/2.3.7/so-pinyin-slugs.php (added)
-
trunk/README.md (modified) (2 diffs)
-
trunk/inc/functions.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/so-pinyin-slugs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
so-pinyin-slugs/trunk/README.md
r3437363 r3445244 3 3 [](https://wordpress.org/plugins/so-pinyin-slugs) [](https://plugintests.com/plugins/so-pinyin-slugs/latest) [](https://plugintests.com/plugins/so-pinyin-slugs/latest) 4 4 5 ###### Last updated on April 27, 20256 ###### tested up to WP 6. 85 ###### Last updated on January 23, 2026 6 ###### tested up to WP 6.9 7 7 ###### Authors: [Pieter Bos](https://github.com/senlin) 8 8 ###### [Stable Version](https://wordpress.org/plugins/so-pinyin-slugs) (via WordPress Plugins Repository) … … 75 75 76 76 ## Changelog 77 78 ### 2.3.7 79 80 * date: January 23, 2026 81 * fix PHP 8+ warning by aligning pinyin dictionary global variable name [issue 31](https://github.com/senlin/pinyin-slugs/issues/31) 77 82 78 83 ### 2.3.6 -
so-pinyin-slugs/trunk/inc/functions.php
r3437363 r3445244 8 8 * since version 2.0.0 9 9 * @modified 2.3.2 10 * @modified 2.3.7 10 11 */ 11 12 … … 15 16 $strTitle = sanitize_text_field( $strTitle ); // Sanitizing and Validating Input ($strTitle) 16 17 // Load Chinese character dictionary 17 global $ dictPinyin;18 global $sops_dictPinyin; 18 19 19 20 $strRet = ''; … … 48 49 $fullChar = substr( $strTitle, $i, 3 ); $i+=2; 49 50 //Find spelling in the dictionary; if it cannotfind the character, it will be ignored 50 foreach ( $dictPinyin as $pinyin=>$val ) { 51 if ( strpos( $val, $fullChar ) !== false ) { 52 $strRet .= $pinyin; 53 break; 54 } 55 } 51 if ( ! empty( $sops_dictPinyin ) && is_array( $sops_dictPinyin ) ) { 52 foreach ( $sops_dictPinyin as $pinyin=>$val ) { 53 if ( strpos( $val, $fullChar ) !== false ) { 54 $strRet .= $pinyin; 55 break; 56 } 57 } 58 } 56 59 } else { 57 60 /** -
so-pinyin-slugs/trunk/readme.txt
r3437363 r3445244 4 4 Requires at least: 4.6 5 5 Tested up to: 6.9 6 Stable tag: 2.3. 66 Stable tag: 2.3.7 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 79 79 80 80 == Changelog == 81 82 = 2.3.7 = 83 84 * date: January 23, 2026 85 * fix PHP 8+ warning by aligning pinyin dictionary global variable name [issue 31](https://github.com/senlin/pinyin-slugs/issues/31) 81 86 82 87 = 2.3.6 = -
so-pinyin-slugs/trunk/so-pinyin-slugs.php
r3437363 r3445244 5 5 Description: Transforms Simplified or Traditional Chinese character titles into Pinyin to create a permalink friendly slug. 6 6 Author: SO WP 7 Version: 2.3. 67 Version: 2.3.7 8 8 Author URI: https://so-wp.com 9 9 License: GPL v2 or later … … 84 84 85 85 /* Set the version number of the plugin. */ 86 define( 'SOPS_VERSION', '2.3. 6' );86 define( 'SOPS_VERSION', '2.3.7' ); 87 87 88 88 /* Set constant path to the plugin directory. */
Note: See TracChangeset
for help on using the changeset viewer.