Changeset 60288
- Timestamp:
- 06/06/2025 08:29:33 AM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r60264 r60288 2287 2287 $user_nicename = apply_filters( 'pre_user_nicename', $user_nicename ); 2288 2288 2289 if ( mb_strlen( $user_nicename ) > 50 ) { 2289 // Check if the sanitized nicename is empty. 2290 if ( empty( $user_nicename ) ) { 2291 return new WP_Error( 'empty_user_nicename', __( 'Cannot create a user with an empty nicename.' ) ); 2292 } elseif ( mb_strlen( $user_nicename ) > 50 ) { 2290 2293 return new WP_Error( 'user_nicename_too_long', __( 'Nicename may not be longer than 50 characters.' ) ); 2291 2294 }
Note: See TracChangeset
for help on using the changeset viewer.