Changeset 3407220
- Timestamp:
- 12/01/2025 08:58:02 PM (4 months ago)
- Location:
- restrict-usernames-emails-characters/trunk
- Files:
-
- 9 edited
-
classes/classe_chars.php (modified) (2 diffs)
-
classes/classe_val.php (modified) (1 diff)
-
classes/page_nl.php (modified) (1 diff)
-
lang/restrict-usernames-emails-characters-ar.mo (modified) (previous)
-
lang/restrict-usernames-emails-characters-ar.po (modified) (19 diffs)
-
lang/restrict-usernames-emails-characters.pot (modified) (19 diffs)
-
page-setts.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
restrict-usernames-emails-characters.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
restrict-usernames-emails-characters/trunk/classes/classe_chars.php
r3133353 r3407220 76 76 } 77 77 78 function benrueeg_wp_is_valid_utf8( $text ) { 79 if ( function_exists( 'wp_is_valid_utf8' ) ) { 80 return wp_is_valid_utf8( $text ); // new function "wp_is_valid_utf8" in wordpress 6.9 81 } else { 82 return seems_utf8( $text ); 83 } 84 } 85 78 86 function benrueeg_remove_accents( $text, $locale = '' ) { 79 87 if ( ! preg_match( '/[\x80-\xff]/', $text ) ) { … … 81 89 } 82 90 83 if ( seems_utf8( $text ) ) {91 if ( $this->benrueeg_wp_is_valid_utf8 ( $text ) ) { 84 92 85 93 /* -
restrict-usernames-emails-characters/trunk/classes/classe_val.php
r3133353 r3407220 73 73 $list_chars = implode('\\', $list_chars_); 74 74 75 $_login = preg_match( '/[à]/', $list_chars ) ? str_replace("à", " ", $login) : $login;75 $_login = preg_match( '/[à]/', $list_chars ) ? str_replace("à", "9", $login) : $login; 76 76 77 77 if ( preg_match('/^\s+|\s+$| \s+/', $_login ) ) -
restrict-usernames-emails-characters/trunk/classes/page_nl.php
r3133353 r3407220 249 249 250 250 function urlencode_strtolower($title) { 251 if ( seems_utf8( $title ) ) {251 if ( $this->benrueeg_wp_is_valid_utf8 ( $title ) ) { 252 252 if ( function_exists( 'mb_strtolower' ) ) { 253 253 $title = mb_strtolower( $title, 'UTF-8' ); -
restrict-usernames-emails-characters/trunk/lang/restrict-usernames-emails-characters-ar.po
r3133353 r3407220 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2020-07-21 20:06+0000\n" 6 "PO-Revision-Date: 202 4-08-08 09:54+0000\n"6 "PO-Revision-Date: 2025-12-01 20:11+0000\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: العربية\n" … … 25 25 "X-Loco-Version: 2.6.7; wp-6.5.2" 26 26 27 #: restrict-usernames-emails-characters.php:104 427 #: restrict-usernames-emails-characters.php:1043 28 28 msgid "%d were updated and %d failed for %d user(s)" 29 29 msgstr "(%d) تم تحديثه و (%d) فشل تحديثه من مجموع %d عضو" 30 30 31 #: restrict-usernames-emails-characters.php:101 731 #: restrict-usernames-emails-characters.php:1016 32 32 #, php-format 33 33 msgid "%s user were updated for" … … 39 39 msgstr[4] "%s عضوا تم تحديثه من" 40 40 msgstr[5] "%s عضو تم تحديثه من" 41 42 #: page-setts.php:219 43 msgid ""not recommended"" 44 msgstr ""لا يُنصح بهذا الخيار"" 41 45 42 46 #: page-setts.php:826 … … 124 128 125 129 #: restrict-usernames-emails-characters.php:529 126 #: restrict-usernames-emails-characters.php:107 2130 #: restrict-usernames-emails-characters.php:1071 127 131 msgid "" 128 132 "<strong>Core Control:</strong> Sorry, This plugin (Restrict Usernames Emails " … … 262 266 msgstr "جميع اللغات (كل الحروف والأرقام إضافة إلى المعلّمة مثل: é û)" 263 267 264 #: restrict-usernames-emails-characters.php:103 6268 #: restrict-usernames-emails-characters.php:1035 265 269 msgid "All users have been successfully updated" 266 270 msgstr "تم تحديث جميع الأعضاء بنجاح" 267 271 268 272 #: page-setts.php:219 269 msgid "" 270 "Allow this characters (Symbols or characters accented as é û) "no " 271 "recommended"" 272 msgstr "" 273 "السماح باستعمال (الرموز أو الحروف المعلمة مثل é û) التالية "لا يُنصح " 274 "بهذا الخيار"" 273 msgid "Allow this characters (Symbols or characters accented as é û)" 274 msgstr "السماح باستعمال (الرموز أو الحروف المعلمة مثل é û) التالية" 275 275 276 276 #: page-setts.php:831 … … 328 328 msgstr "اختر لغة الحروف المستعملة في اسم المستخدم" 329 329 330 #: restrict-usernames-emails-characters.php:101 5330 #: restrict-usernames-emails-characters.php:1014 331 331 msgid "Continue updating..." 332 332 msgstr "تابع التحديث..." … … 417 417 msgstr "إضافات" 418 418 419 #: restrict-usernames-emails-characters.php:180 6419 #: restrict-usernames-emails-characters.php:1805 420 420 msgid "File deleted successfully" 421 421 msgstr "تم حذف الملف بنجاح" 422 422 423 #: restrict-usernames-emails-characters.php:101 5423 #: restrict-usernames-emails-characters.php:1014 424 424 msgid "Finished" 425 425 msgstr "انتهى" … … 441 441 msgstr "كود hash (حروف لاتينية وأرقام فقط)" 442 442 443 #: restrict-usernames-emails-characters.php:111 9443 #: restrict-usernames-emails-characters.php:1118 444 444 msgid "here" 445 445 msgstr "هنا" 446 446 447 #: restrict-usernames-emails-characters.php:111 2447 #: restrict-usernames-emails-characters.php:1111 448 448 msgid "hide" 449 449 msgstr "" … … 480 480 "فقط) فيصبح على سبيل المثال:" 481 481 482 #: restrict-usernames-emails-characters.php:1 100482 #: restrict-usernames-emails-characters.php:1099 483 483 msgid "" 484 484 "If you choose a language other than the default language "Choose " … … 551 551 "يفصل بينها في رسالة الخطأ بهذا السطر (الهوك):" 552 552 553 #: restrict-usernames-emails-characters.php:111 1553 #: restrict-usernames-emails-characters.php:1110 554 554 msgid "" 555 555 "In this version of the plugin, the method of saving the nicename (author " … … 947 947 msgstr "يرجى التأكد من كتابة اسم المستخدم." 948 948 949 #: restrict-usernames-emails-characters.php:109 1949 #: restrict-usernames-emails-characters.php:1090 950 950 msgid "Please enter a valid language in "Enter another language below"" 951 951 msgstr "الرجاء إدخال لغة صالحة في " أدخل لغة أخرى في الأسفل"" 952 952 953 #: restrict-usernames-emails-characters.php:108 1953 #: restrict-usernames-emails-characters.php:1080 954 954 msgid "Please select a language in "Enter another language below"" 955 955 msgstr "اختر لغة من فضلك في " أدخل لغة أخرى في الأسفل"" … … 960 960 961 961 #: restrict-usernames-emails-characters.php:935 962 #: restrict-usernames-emails-characters.php:117 1962 #: restrict-usernames-emails-characters.php:1170 963 963 msgid "Please upload a valid .json file" 964 964 msgstr "ارفع ملف .json صالح من فضلك" 965 965 966 #: restrict-usernames-emails-characters.php:11 20966 #: restrict-usernames-emails-characters.php:1119 967 967 msgid "Registration is currently closed! open it:" 968 968 msgstr "حاليا التسجيل في الموقع مغلق! يمكن فتحه من:" … … 1017 1017 1018 1018 #. Name of the plugin 1019 #: restrict-usernames-emails-characters.php:11 101019 #: restrict-usernames-emails-characters.php:1109 1020 1020 msgid "Restrict Usernames Emails Characters" 1021 1021 msgstr "" … … 1058 1058 msgstr "إعدادات" 1059 1059 1060 #: restrict-usernames-emails-characters.php:180 11060 #: restrict-usernames-emails-characters.php:1800 1061 1061 msgid "Settings saved successfully" 1062 1062 msgstr "تم حفظ الإعدادات بنجاح" … … 1090 1090 msgstr "اتجاه النص" 1091 1091 1092 #: restrict-usernames-emails-characters.php:181 81092 #: restrict-usernames-emails-characters.php:1817 1093 1093 msgid "The database is being updated, please wait..." 1094 1094 msgstr "جاري تحديث قاعدة البيانات، يرجى الانتظار..." … … 1130 1130 msgstr "يجب تفعيل هذه الإضافة على" 1131 1131 1132 #: restrict-usernames-emails-characters.php:98 81132 #: restrict-usernames-emails-characters.php:987 1133 1133 msgid "There is a newer version, it's recommended to" 1134 1134 msgstr "هناك نسخة أحدث متاحة, يستحسن" … … 1156 1156 msgstr "اسم المستخدم هذا مسجّل مسبقاً. يرجى اختيار آخر." 1157 1157 1158 #: restrict-usernames-emails-characters.php:164 2classes/classe_mubp.php:1241158 #: restrict-usernames-emails-characters.php:1641 classes/classe_mubp.php:124 1159 1159 #: classes/classe_mubp.php:124 1160 1160 msgid "" … … 1186 1186 msgstr "تحديث جميع الأعضاء دُفعة واحدة أو على دُفعات" 1187 1187 1188 #: restrict-usernames-emails-characters.php:98 81188 #: restrict-usernames-emails-characters.php:987 1189 1189 msgid "update now" 1190 1190 msgstr "التحديث الآن" 1191 1191 1192 #: restrict-usernames-emails-characters.php:105 21192 #: restrict-usernames-emails-characters.php:1051 1193 1193 msgid "Updating all users failed" 1194 1194 msgstr "فشل تحديث جميع الأعضاء" … … 1210 1210 msgstr "مع اللاتينية" 1211 1211 1212 #: restrict-usernames-emails-characters.php:98 81212 #: restrict-usernames-emails-characters.php:987 1213 1213 msgid "You are using Version" 1214 1214 msgstr "أنت تستخدم النسخة" -
restrict-usernames-emails-characters/trunk/lang/restrict-usernames-emails-characters.pot
r3133353 r3407220 4 4 "Project-Id-Version: Restrict Usernames Emails Characters\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 202 4-08-08 09:55+0000\n"6 "POT-Creation-Date: 2025-12-01 20:16+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 14 14 "Content-Transfer-Encoding: 8bit\n" 15 15 "X-Generator: Loco https://localise.biz/\n" 16 "X-Loco-Version: 2. 6.11; wp-6.6.1\n"16 "X-Loco-Version: 2.8.0; wp-6.9-RC3-61318; php-8.5.0\n" 17 17 "X-Domain: restrict-usernames-emails-characters" 18 18 19 #: restrict-usernames-emails-characters.php:104 419 #: restrict-usernames-emails-characters.php:1043 20 20 msgid "%d were updated and %d failed for %d user(s)" 21 21 msgstr "" 22 22 23 #: restrict-usernames-emails-characters.php:101 723 #: restrict-usernames-emails-characters.php:1016 24 24 #, php-format 25 25 msgid "%s user were updated for" … … 27 27 msgstr[0] "" 28 28 msgstr[1] "" 29 30 #: page-setts.php:219 31 msgid ""not recommended"" 32 msgstr "" 29 33 30 34 #: page-setts.php:826 … … 84 88 85 89 #: restrict-usernames-emails-characters.php:529 86 #: restrict-usernames-emails-characters.php:107 290 #: restrict-usernames-emails-characters.php:1071 87 91 msgid "" 88 92 "<strong>Core Control:</strong> Sorry, This plugin (Restrict Usernames Emails " … … 203 207 msgstr "" 204 208 205 #: restrict-usernames-emails-characters.php:103 6209 #: restrict-usernames-emails-characters.php:1035 206 210 msgid "All users have been successfully updated" 207 211 msgstr "" 208 212 209 213 #: page-setts.php:219 210 msgid "" 211 "Allow this characters (Symbols or characters accented as é û) "no " 212 "recommended"" 214 msgid "Allow this characters (Symbols or characters accented as é û)" 213 215 msgstr "" 214 216 … … 262 264 msgstr "" 263 265 264 #: restrict-usernames-emails-characters.php:101 5266 #: restrict-usernames-emails-characters.php:1014 265 267 msgid "Continue updating..." 266 268 msgstr "" … … 346 348 msgstr "" 347 349 348 #: restrict-usernames-emails-characters.php:180 6350 #: restrict-usernames-emails-characters.php:1805 349 351 msgid "File deleted successfully" 350 352 msgstr "" 351 353 352 #: restrict-usernames-emails-characters.php:101 5354 #: restrict-usernames-emails-characters.php:1014 353 355 msgid "Finished" 354 356 msgstr "" … … 370 372 msgstr "" 371 373 372 #: restrict-usernames-emails-characters.php:111 9374 #: restrict-usernames-emails-characters.php:1118 373 375 msgid "here" 374 376 msgstr "" 375 377 376 #: restrict-usernames-emails-characters.php:111 2378 #: restrict-usernames-emails-characters.php:1111 377 379 msgid "hide" 378 380 msgstr "" … … 406 408 msgstr "" 407 409 408 #: restrict-usernames-emails-characters.php:1 100410 #: restrict-usernames-emails-characters.php:1099 409 411 msgid "" 410 412 "If you choose a language other than the default language "Choose " … … 461 463 msgstr "" 462 464 463 #: restrict-usernames-emails-characters.php:111 1465 #: restrict-usernames-emails-characters.php:1110 464 466 msgid "" 465 467 "In this version of the plugin, the method of saving the nicename (author " … … 833 835 msgstr "" 834 836 835 #: restrict-usernames-emails-characters.php:109 1837 #: restrict-usernames-emails-characters.php:1090 836 838 msgid "Please enter a valid language in "Enter another language below"" 837 839 msgstr "" 838 840 839 #: restrict-usernames-emails-characters.php:108 1841 #: restrict-usernames-emails-characters.php:1080 840 842 msgid "Please select a language in "Enter another language below"" 841 843 msgstr "" … … 846 848 847 849 #: restrict-usernames-emails-characters.php:935 848 #: restrict-usernames-emails-characters.php:117 1850 #: restrict-usernames-emails-characters.php:1170 849 851 msgid "Please upload a valid .json file" 850 852 msgstr "" 851 853 852 #: restrict-usernames-emails-characters.php:11 20854 #: restrict-usernames-emails-characters.php:1119 853 855 msgid "Registration is currently closed! open it:" 854 856 msgstr "" … … 903 905 904 906 #. Name of the plugin 905 #: restrict-usernames-emails-characters.php:11 10907 #: restrict-usernames-emails-characters.php:1109 906 908 msgid "Restrict Usernames Emails Characters" 907 909 msgstr "" … … 944 946 msgstr "" 945 947 946 #: restrict-usernames-emails-characters.php:180 1948 #: restrict-usernames-emails-characters.php:1800 947 949 msgid "Settings saved successfully" 948 950 msgstr "" … … 972 974 msgstr "" 973 975 974 #: restrict-usernames-emails-characters.php:181 8976 #: restrict-usernames-emails-characters.php:1817 975 977 msgid "The database is being updated, please wait..." 976 978 msgstr "" … … 1008 1010 msgstr "" 1009 1011 1010 #: restrict-usernames-emails-characters.php:98 81012 #: restrict-usernames-emails-characters.php:987 1011 1013 msgid "There is a newer version, it's recommended to" 1012 1014 msgstr "" … … 1033 1035 msgstr "" 1034 1036 1035 #: restrict-usernames-emails-characters.php:164 2classes/classe_mubp.php:1241037 #: restrict-usernames-emails-characters.php:1641 classes/classe_mubp.php:124 1036 1038 #: classes/classe_mubp.php:124 1037 1039 msgid "" … … 1060 1062 msgstr "" 1061 1063 1062 #: restrict-usernames-emails-characters.php:98 81064 #: restrict-usernames-emails-characters.php:987 1063 1065 msgid "update now" 1064 1066 msgstr "" 1065 1067 1066 #: restrict-usernames-emails-characters.php:105 21068 #: restrict-usernames-emails-characters.php:1051 1067 1069 msgid "Updating all users failed" 1068 1070 msgstr "" … … 1084 1086 msgstr "" 1085 1087 1086 #: restrict-usernames-emails-characters.php:98 81088 #: restrict-usernames-emails-characters.php:987 1087 1089 msgid "You are using Version" 1088 1090 msgstr "" -
restrict-usernames-emails-characters/trunk/page-setts.php
r3133353 r3407220 217 217 array( 218 218 'uid' => 'allow_spc_cars', 219 'label' => __( 'Allow this characters (Symbols or characters accented as é û) "no recommended"','restrict-usernames-emails-characters' ),219 'label' => __( 'Allow this characters (Symbols or characters accented as é û)','restrict-usernames-emails-characters' ) . ' <span style="color:red;">' . __( '"not recommended"','restrict-usernames-emails-characters' ) . '</span>', 220 220 'label-em' => _x( '<span style="color:red; font-style:normal;">The following symbols <span style="background:#e9cd7a;color:#343414;padding:0 4px;">' " \ < ></span> have been blocked<br />Because allowing these symbols can cause problems when the registration</span><br />Place each character in one line, for example: <br />(<br />+<br />é', 'label_settings_field', 'restrict-usernames-emails-characters' ) . 221 221 '<div class="tri2-BENrueeg_RUE"></div>', -
restrict-usernames-emails-characters/trunk/readme.txt
r3186363 r3407220 3 3 Tags: restrict user, author slug, registration, anti-spam, security 4 4 Requires at least: 3.0 5 Tested up to: 6. 75 Tested up to: 6.9 6 6 Requires PHP: 5.3.19 7 Stable tag: 4.1. 17 Stable tag: 4.1.2 8 8 License: GPLv2 or later 9 9 … … 80 80 == Changelog == 81 81 82 = 4.1.2 = 83 * Tested up to wordpress 6.9 84 * Tested up to php 8.5 85 * Deprecated "seems_utf8" function in wordpress 6.9 86 * Fix: "Allow this characters (Symbols or characters accented ...)" option. 82 87 = 4.1.1 = 83 88 * Tested up to wordpress 6.7 -
restrict-usernames-emails-characters/trunk/restrict-usernames-emails-characters.php
r3186363 r3407220 5 5 * Plugin URI: https://benaceur-php.com/?p=2268 6 6 * Description: Restrict the usernames in registration, email, characters and symbols or email from specific domain names or language ... 7 * Version: 4.1. 17 * Version: 4.1.2 8 8 * Author: benaceur 9 9 * Text Domain: restrict-usernames-emails-characters … … 977 977 978 978 function VerPlugUp(){ 979 $enable = true; 980 if (apply_filters( 'benrueeg_rue_filter_msg_old_ver_plug', $enable ) === false) return; 979 if ( !apply_filters( 'benrueeg_rue_filter_msg_old_ver_plug', true ) ) return; 981 980 if ( !current_user_can(apply_filters( 'benrueeg_rue_filter_mu_cap', 'update_plugins' ))) return; 982 981
Note: See TracChangeset
for help on using the changeset viewer.