Changeset 552750
- Timestamp:
- 06/04/2012 06:19:59 AM (14 years ago)
- Location:
- network-username-restrictions-override/trunk
- Files:
-
- 2 edited
-
network-username-restrictions-override.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
network-username-restrictions-override/trunk/network-username-restrictions-override.php
r552749 r552750 10 10 11 11 class NetworkUsernameRestrictionsOverridePlugin { 12 var $db_version = 1;12 var $db_version = 2; 13 13 var $option_name = 'network_username_restrictions_override_options'; 14 14 var $options; … … 17 17 'allow_numeric' => false, 18 18 'allow_hyphens' => false, 19 'allow_periods' => false, 19 20 'allow_underscores' => false, 20 21 'allow_uppercase' => false, … … 75 76 if ($this->options['allow_hyphens']) $allowed_characters .= '-'; 76 77 if ($this->options['allow_underscores']) $allowed_characters .= '_'; 78 if ($this->options['allow_periods']) $allowed_characters .= '.'; 77 79 if ($this->options['allow_uppercase']) $allowed_characters .= 'A-Z'; 78 80 … … 197 199 <label><input type="checkbox" id="allow_hyphens" name="network_username_restrictions_override_options[allow_hyphens]" value="1"<?php if ($this->options['allow_hyphens']): ?> checked="checked"<?php endif; ?> /> Allow hyphens</label><br /> 198 200 <label><input type="checkbox" id="allow_underscores" name="network_username_restrictions_override_options[allow_underscores]" value="1"<?php if ($this->options['allow_underscores']): ?> checked="checked"<?php endif; ?> /> Allow underscores</label><br /> 201 <label><input type="checkbox" id="allow_periods" name="network_username_restrictions_override_options[allow_periods]" value="1"<?php if ($this->options['allow_periods']): ?> checked="checked"<?php endif; ?> /> Allow periods</label><br /> 199 202 <label><input type="checkbox" id="allow_uppercase" name="network_username_restrictions_override_options[allow_uppercase]" value="1"<?php if ($this->options['allow_uppercase']): ?> checked="checked"<?php endif; ?> /> Allow uppercase letters</label><br /> 200 203 Note: WordPress converts usernames to lowercase. This option simply makes data entry easier. … … 220 223 'allow_hyphens', 221 224 'allow_underscores', 225 'allow_periods', 222 226 'allow_uppercase', 223 227 ); -
network-username-restrictions-override/trunk/readme.txt
r552749 r552750 38 38 Unfortunately, the WordPress code for adding users forces usernames to lowercase without offering an option to configure it via a plugin. 39 39 40 = I have site URLs based on the username. Why don't some of them load? = 41 42 You'll have to update the regular expressions in your `.htaccess` file if you use email addresses or periods in usernames. These are not provided by default, and this plugin will not edit your `.htaccess` file automatically due to the rick involved. 43 40 44 == Screenshots == 41 45 … … 47 51 * Remove use of call-time pass by reference to avoid warnings on PHP 5.3 and newer 48 52 * Secondary username length check no longer causes an error when adding a username longer than the configured minimum 53 * Add support for periods in usernames 49 54 50 55 = 1.1 =
Note: See TracChangeset
for help on using the changeset viewer.