Changeset 3076504
- Timestamp:
- 04/24/2024 01:53:08 PM (21 months ago)
- Location:
- network-username-restrictions-override/trunk
- Files:
-
- 2 edited
-
network-username-restrictions-override.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
network-username-restrictions-override/trunk/network-username-restrictions-override.php
r560903 r3076504 2 2 /* 3 3 Plugin Name: Network Username Restrictions Override 4 Version: 1. 25 Plugin URI: http ://danieltwc.com/2011/network-username-restrictions-override-1-0/4 Version: 1.3 5 Plugin URI: https://danieltwc.com/2011/network-username-restrictions-override-1-0/ 6 6 Description: Override some of the built-in restrictions in WordPress network usernames. Similar to the <a href="http://wordpress.org/extend/plugins/wpmu-blog-name-restrictions-override/">Blog Name Restrictions Override</a> plugin. 7 7 Author: Daniel Westermann-Clark 8 Author URI: http ://danieltwc.com/8 Author URI: https://danieltwc.com/ 9 9 */ 10 10 … … 23 23 ); 24 24 25 function NetworkUsernameRestrictionsOverridePlugin() {25 function __construct() { 26 26 add_action('init', array($this, 'init')); 27 27 } … … 64 64 if ($code == 'user_name') { 65 65 foreach ($messages as $message) { 66 if ($message == __(' Only lowercase letters (a-z) and numbers are allowed.')) {66 if ($message == __('Usernames can only contain lowercase letters (a-z) and numbers.')) { 67 67 // Check if we allow email addresses; otherwise, check against character overrides 68 68 -
network-username-restrictions-override/trunk/readme.txt
r560903 r3076504 3 3 Tags: admin, authentication, network, wpmu, multisite 4 4 Requires at least: 3.4 5 Tested up to: 3.46 Stable tag: 1. 25 Tested up to: 6.5.2 6 Stable tag: 1.3 7 7 8 8 Override restrictions on WordPress network usernames. … … 48 48 == Changelog == 49 49 50 = 1.3 51 * Add PHP 7/8 compatibility by updating constructor to use __construct 52 * Update username check to match current WordPress error messages 53 50 54 = 1.2 = 51 55 * Remove use of call-time pass by reference to avoid warnings on PHP 5.3 and newer
Note: See TracChangeset
for help on using the changeset viewer.