Contributors: thebrandonallen
Tags: author, author base, author slug, user nicename, nicename, permalink, permalinks, slug, users, user, role, roles
Requires at least: 3.8.11
Tested up to: 4.3.1
Stable tag: 1.1.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Allows an admin (or capable user) to edit the author slug of a user, and change the author base.
This plugin allows an Admin to change the author slug (a.k.a. - nicename), without having to actually enter the database. You can also change the Author Base (the '/author/' portion of the author URLs). Two new fields will be added to your Dashboard. The "Edit Author Slug" field can be found under Users > Your Profile or Users > Authors & Users (Users > Users in WP 3.0). The "Author Base" field can be found under Settings > Edit Author Slug. This allows you to craft the perfect URL structure for you Author pages. For your convenience, an Author Slug column is added to make it easier to determine if one needs to change the Author Slug.
WordPress default structure
http://example.com/author/username/
Edit Author Slug allows for
http://example.com/ninja/master-ninja/
or using a role-based author base
http://example.com/ida/master-splinter/ (for an Administrator Role)
http://example.com/koga/leonardo/ (for a Subscriber Role)
Development of this plugin takes place on GitHub. Pull requests are always welcome!
- Dutch - props Juliette Reinders Folmer
You can also visit the plugin's homepage at http://brandonallen.me/wordpress/plugins/edit-author-slug/
- Upload
edit-author-slug
folder to your WordPress plugins directory (typically 'wp-content/plugins') - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Users > Your Profile, or Users > All Users > (username), and edit the author slug.
- Click "Update Profile" or "Update User"
- Go to Settings > Edit Author Slug to edit settings
- Click "Save Changes"
Make sure you are an admin, or have been assigned the edit_users
or edit_author_slug
capability.
While I've made every attempt to prevent this, I may have missed a spot or two. First things first, go to Settings > Permalinks and click "Save Changes." You don't need to actually need to make any changes for this to work. Hopefully, this should kick your new Author Slug into gear.
If this doesn't work, make sure you don't have any slug conflicts from other posts/pages/plugins/permalink setting/etc. If you're still experiencing the issue, feel free to post a support request in the forums.
- Fix loading of minified JS in the admin. Props nuyensgert.
- Fix a few minor output escaping issues missed in the 1.1.0 release.
- Added the ability to update all author slugs at once with the "Bulk Update" tool.
- Greatly improved the checks and error messages when manually updating an author slug for a user.
- Further accessibility improvements to match WP 4.3.
- Improved validation of author slugs to better match that of WP.
- Fix potential, although unlikely, persistent XSS vulnerability.
- Prevent debug notice in admin. Props chesio.
- Update heading tags to h1 to match WP 4.3.
- Identical to 1.0.5, which failed to commit properly.
- Add WP_User object as a parameter passed to the
ba_eas_show_user_nicename_options_list
filter - Add Japanese translation files. Props SmokyJp.
- Fixed possible (although unlikely) cache invalidation issue
- Minor code improvements and optimizations.
- Improve upgrade routine for older installs
- Improve output escaping
- Various minor fixes and improvements
I swear I tested this! :(
- Fix custom roles slugs not saving
- A number of localization fixes and improvements
- Role slug improvements
- Temporary, semi work-around for Co-Authors Plus [Automattic/Co-Authors-Plus#204]
- Fix possible syntax error when updating a profile (props Christine https://wordpress.org/support/topic/undefined-property-error-1)
- Added ability to do role-based author bases
- Added ability to use role-based author templates
- Moderate code refactoring
- Various code fixes and improvements
- Add "nickname" as option for auto-update
- First pass at unit test (only checks if the plugin is installed, for now)
- Fixed loading of translation files. Looks in wp-content/plugins/edit-author-slug/languages. If you're running 3.7+ (and you are... aren't you?), it will fall back to wp-content/languages/plugins if a proper localization can't be found in the edit-author-slug folder.
- Fixed instances where the Author Base wouldn't change, or would result in a 404
- Update readme references to plugin settings
- Fix some copy pasta in settings
- Update screenshots
- Quickly caught a few things I missed, so this release was skipped. See 0.9.4 for changes
- Fix issue where any profile information other than the Author Slug could not be updated
- Minor code improvement
- Add 'Settings' link to plugins list table
- Allow Author Slug to be automatically created/updated based on a defined structure
- Switched to using the Settings API, which also means that all options moved to the Settings > Edit Author Slug page
- Various code improvements/optimizations
- Fix a bug that prevented non-admin users from updating their profile
- Drastically improved error handling and feedback for author slug editing.
- Restore duplicate author slug check as old method could alter the slug without any sort of warning.
- Further improve the logic for flushing rewrite rules.
- Introduce ba_eas_can_edit_author_slug() and matching filter to make it even easier to give users the ability to update their own author slug.
- Add message in plugins list warning users of WP less than 3.2 that 0.8 is the last update they'll receive.
- Remove overzealous cap check.
- Fix some unfortunate errors I missed before tagging 0.7.
- Significant code refactoring.
- Added custom capability to give site admins the ability to add author slug access to other roles.
- Improvements/optimizations to code logic.
- Fixed an incorrect textdomain string.
- Removed filter added in 0.6 as it was messy. It's much easier to achieve the same result without the plugin.
- Got rid of wp_die() statement on duplicate author slugs in favor of WP's built-in duplicate author slug method.
- Added Dutch translation - props Juliette Reinders Folmer.
- Don't hard code the languages folder path.
- Improve class check/initialization.
- Some code cleanup.
- More security hardening.
- Added filter to allow for the complete removal of the Author Base (http://brandonallen.org/2010/11/03/how-to-remove-the-author-base-with-edit-author-slug/).
- Flush rewrite rules only when necessary instead of every page load.
- Added 'Author Slug' column to Users > Authors & Users (Users > Users in 3.0) page (props Yonat Sharon for the jumpstart).
- Ended support for the WP 2.8 branch. Most likely still works, but I will not support it.
- Various bug fixes.
- Added ability to change the Author Base.
- Updated documentation.
- Added some extra security via WP esc_* functions.
- Added Belorussian translation, props Marcis G.
- Added Hebrew Translation, props Yonat Sharon.
- Now localization friendly.
- Fixed a bug that prevented updating a user if the author slug did not change.
- Added a check to avoid duplicate slugs.
- Properly sanitize slug before comparison and database insertion.
- Updated plugin URI.
- Update tags to reflect WordPress 2.9.1 compatability.
- Update link to plugin homepage.
- Update tags to reflect WordPress 2.9 compatability.
- Fix version number issues.
- Remove extra debug functions left behind.
- Add screenshot.
- Initial release.
Role-based author bases are here!
Adds ability to change the Author Base (not a required upgrade)
Edit Author Slug can now be localized. You can find edit-author-slug.pot in 'edit-author-slug/languages' to get you started.
Added a check to avoid duplicate duplicate author slugs, and better sanitization.
- Allow Author Slug editing of users from one centralized location