v1.4.0
Administrators can now choose where members land after they sign in, and the default Member and Non-Member roles get keys that role editors can save. Neither change does anything on an existing site until someone switches it on.
Adds
- [ADMIN] A Login Landing Page setting under General Settings. Every member who signs in through the AMS is sent to that page, instead of back to wherever their sign-in started. Roles can have a page of their own, so members and non-members can land in different places; a member holding several listed roles goes to the first one. Leave it blank and nothing changes. A page on another site is used only when WordPress is allowed to redirect there, so a typo cannot send members off to someone else's site. The
amsc_login_landing_urlfilter can make exceptions, for example letting administrators return to where they came from. wp amsc roles normalizemoves a site from the oldMemberandNon-Memberrole keys to lowercase ones. It keeps each role's capabilities and display name, moves every user who holds it, and rewrites the role mappings, the SSO role and the landing pages that point at it.--dry-runshows what would change without writing anything, and the command warns if any user is left on the old role.
Changes
- New sites create the default roles as
memberandnon-member, still labelled "Member" and "Non-Member". Role editors such as the Members plugin lowercase a role's key when they save it, so the old mixed-case keys could be seen there but never saved. Sites that already have the mixed-case roles keep granting them until an administrator runs the command above.