You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bulk user generation always assigns “Subscriber” role regardless of selected role #216
When generating users in bulk with FakerPress, the generated users are always assigned the Subscriber role, regardless of the role selected during bulk user creation.
Changing the default new user role from WordPress Dashboard > Settings > General also does not change the result. Generated users still receive the Subscriber role.
Expected behavior:
FakerPress should assign the selected role to generated users.
If a specific role is selected during bulk user creation, generated users should use that selected role.
Actual behavior:
Generated users are always created with the Subscriber role.
Steps to reproduce
Go to WordPress Dashboard > FakerPress > Users.
Select any user role other than Subscriber.
Generate users in bulk.
Go to WordPress Dashboard > Users.
Check the roles of the generated users.
Notice that all generated users are assigned the Subscriber role.
Optional check:
Go to WordPress Dashboard > Settings > General.
Change the New User Default Role to another role.
Generate users again with FakerPress.
Check the generated users’ roles.
Notice that the users are still assigned the Subscriber role.
Activity
fix(users): honour selected role on bulk user generation (bordoni#229)