{"push_id":793584971,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"0adb6877b22667420c5260a61e07be71abef5c11","before":"2d59d18e3a14df8d96ed240b7af3bd7546f1a3c0","commits":[{"sha":"0adb6877b22667420c5260a61e07be71abef5c11","author":{"email":"e24dece950db3cee45a12cd879cca9ac3cd87c15@git.wordpress.org","name":"Boone Gorges"},"message":"Improve validation of `user_login` and `user_nicename` length.\n\nThe `user_login` field only allows 60 characters, and `user_nicename` allows\n50. However, there are no protections in the interface, and few in the code,\nthat prevent the creation of users with values in excess of these limits. Prior\nto recent changes in `$wpdb`, users were generally created anyway, MySQL\nhaving performed the necessary truncation. More recently, the `INSERT`s and\n`UPDATE`s simply fail, with no real feedback on the nature of the failure.\n\nThis changeset addresses the issue in a number of ways:\n* On the user-new.php and network/user-new.php panels, don't allow input in excess of the maximum field length.\n* In `wp_insert_user()`, throw an error if the value provided for `'user_login'` or `'user_nicename'` exceeds the maximum field length.\n* In `wp_insert_user()`, when using `'user_login'` to generate a default value for `'user_nicename'`, ensure that the nicename is properly truncated, even when suffixed for uniqueness (username-2, etc).\n\nProps dipesh.kakadiya, utkarshpatel, tommarshall, boonebgorges.\nFixes #33793.\n\ngit-svn-id: https://develop.svn.wordpress.org/trunk@34218 602fd350-edb4-49c9-b593-d223f7449a82","distinct":true,"url":"https://api.github.com/repos/aaronjorbin/develop.wordpress/commits/0adb6877b22667420c5260a61e07be71abef5c11"}]}