Version Description
- Release date: 2021-08-07
- Bumps "Tested up to" version to 5.8
- Improves string translations and adds some missing strings that couldn't, previously be translated. Props @alexclassroom
Download this release
Release Info
Developer | thebrandonallen |
Plugin | Edit Author Slug |
Version | 1.8.3 |
Comparing to | |
See all releases |
Code changes from version 1.8.2 to 1.8.3
- CHANGELOG.md +5 -0
- README.md +155 -150
- edit-author-slug.php +13 -9
- includes/admin.php +20 -6
- js/edit-author-slug.min.js +1 -1
- languages/edit-author-slug.pot +43 -17
- readme.txt +155 -150
CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
5 |
|
6 |
## [Unreleased]
|
7 |
|
|
|
|
|
|
|
|
|
|
|
8 |
## [1.8.2](https://github.com/thebrandonallen/edit-author-slug/tree/1.8.2) - 2021-06-01
|
9 |
### Changed
|
10 |
* Bumps "Tested up to" version to 5.7
|
5 |
|
6 |
## [Unreleased]
|
7 |
|
8 |
+
## [1.8.3](https://github.com/thebrandonallen/edit-author-slug/tree/1.8.3) - 2021-08-07
|
9 |
+
### Changed
|
10 |
+
* Bumps "Tested up to" version to 5.8
|
11 |
+
* Improves string translations and adds some missing strings that couldn't, previously be translated. Props @alexclassroom
|
12 |
+
|
13 |
## [1.8.2](https://github.com/thebrandonallen/edit-author-slug/tree/1.8.2) - 2021-06-01
|
14 |
### Changed
|
15 |
* Bumps "Tested up to" version to 5.7
|
README.md
CHANGED
@@ -1,150 +1,155 @@
|
|
1 |
-
# Edit Author Slug [![Build Status](https://travis-ci.org/thebrandonallen/edit-author-slug.svg?branch=master)](https://travis-ci.org/thebrandonallen/edit-author-slug) #
|
2 |
-
**Contributors:** [thebrandonallen](https://profiles.wordpress.org/thebrandonallen)
|
3 |
-
**Tags:** author, author base, author slug, user nicename, nicename, permalink, permalinks, slug, users, user, role, roles
|
4 |
-
**Requires at least:** 4.9
|
5 |
-
**Tested up to:** 5.
|
6 |
-
**Requires PHP:** 5.6.20
|
7 |
-
**Stable tag:** 1.8.
|
8 |
-
**License:** GPLv2 or later
|
9 |
-
**License URI:** https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
10 |
-
|
11 |
-
Allows an admin (or capable user) to edit the author slug of a user, and change the author base.
|
12 |
-
|
13 |
-
## Description ##
|
14 |
-
|
15 |
-
This plugin allows full control of your user permalinks, allowing you to change both the author base (the '/author/' portion of the author URLs), and the author slug (defaults to the username of the author). You can set the author base globally, or you can set it to be user-specific based on a user's role. You now have the power to craft the perfect URL structure for you Author pages.
|
16 |
-
|
17 |
-
WordPress default structure *http://example.com/author/username/*.
|
18 |
-
|
19 |
-
Edit Author Slug allows for *http://example.com/ninja/master-ninja/*.
|
20 |
-
|
21 |
-
Using a role-based author base would allow for *http://example.com/ida/master-splinter/* (for an Administrator Role), or *http://example.com/koga/leonardo/* (for a Subscriber Role).
|
22 |
-
|
23 |
-
Development of this plugin takes place on [GitHub](https://github.com/thebrandonallen/edit-author-slug/ "Edit Author Slug on Github"). Pull requests are always welcome!
|
24 |
-
|
25 |
-
Translations should be submitted to [Translate WordPress](https://translate.wordpress.org/projects/wp-plugins/edit-author-slug).
|
26 |
-
|
27 |
-
## Installation ##
|
28 |
-
|
29 |
-
1. Upload `edit-author-slug` folder to your WordPress plugins directory (typically 'wp-content/plugins')
|
30 |
-
2. Activate the plugin through the 'Plugins' menu in WordPress
|
31 |
-
3. Go to Users > Your Profile, or Users > All Users > (username), and edit the author slug.
|
32 |
-
4. Click "Update Profile" or "Update User"
|
33 |
-
5. Go to Settings > Edit Author Slug to edit settings
|
34 |
-
6. Click "Save Changes"
|
35 |
-
|
36 |
-
## Screenshots ##
|
37 |
-
|
38 |
-
1. Settings
|
39 |
-
2. Individual user author slug
|
40 |
-
|
41 |
-
## Frequently Asked Questions ##
|
42 |
-
|
43 |
-
### What is an author slug? ###
|
44 |
-
|
45 |
-
On standard WordPress installs, it's the final part of an author permalink.
|
46 |
-
e.g. - https://example.com/author/author-slug/
|
47 |
-
|
48 |
-
In relation to WordPress internals, the author slug is the same as the `user_nicename` field found in a `WP_User` object, or the users table in the database.
|
49 |
-
|
50 |
-
### Will my changes persist if I deactivate or delete the Edit Author Slug plugin? ###
|
51 |
-
|
52 |
-
It depends.
|
53 |
-
|
54 |
-
Changing a user's author slug is permanent, as this changes the user's `user_nicename` field in the database.
|
55 |
-
|
56 |
-
If you've changed the author base, deactivating or deleting the plugin will revert your author base back to `author`.
|
57 |
-
|
58 |
-
### Why can't I edit my Author Slug? ###
|
59 |
-
|
60 |
-
Make sure you are an admin, or have been assigned the `edit_users` capability.
|
61 |
-
|
62 |
-
### Why isn't my new Author Slug working? ###
|
63 |
-
|
64 |
-
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.
|
65 |
-
|
66 |
-
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.
|
67 |
-
|
68 |
-
## Changelog ##
|
69 |
-
|
70 |
-
### 1.8.
|
71 |
-
* Release date: 2021-
|
72 |
-
* Bumps "Tested up to" version to 5.
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
*
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
*
|
81 |
-
*
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
*
|
86 |
-
*
|
87 |
-
*
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
*
|
92 |
-
*
|
93 |
-
*
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
*
|
98 |
-
*
|
99 |
-
*
|
100 |
-
|
101 |
-
|
102 |
-
*
|
103 |
-
|
104 |
-
|
105 |
-
*
|
106 |
-
*
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
*
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
*
|
115 |
-
*
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
*
|
120 |
-
*
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
*
|
125 |
-
*
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
*
|
131 |
-
*
|
132 |
-
*
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
*
|
137 |
-
*
|
138 |
-
*
|
139 |
-
|
140 |
-
### 1.2.
|
141 |
-
* Release date: 2016-02-
|
142 |
-
*
|
143 |
-
*
|
144 |
-
|
145 |
-
|
146 |
-
*
|
147 |
-
*
|
148 |
-
|
149 |
-
|
150 |
-
*
|
|
|
|
|
|
|
|
|
|
1 |
+
# Edit Author Slug [![Build Status](https://travis-ci.org/thebrandonallen/edit-author-slug.svg?branch=master)](https://travis-ci.org/thebrandonallen/edit-author-slug) #
|
2 |
+
**Contributors:** [thebrandonallen](https://profiles.wordpress.org/thebrandonallen)
|
3 |
+
**Tags:** author, author base, author slug, user nicename, nicename, permalink, permalinks, slug, users, user, role, roles
|
4 |
+
**Requires at least:** 4.9
|
5 |
+
**Tested up to:** 5.8
|
6 |
+
**Requires PHP:** 5.6.20
|
7 |
+
**Stable tag:** 1.8.3
|
8 |
+
**License:** GPLv2 or later
|
9 |
+
**License URI:** https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
10 |
+
|
11 |
+
Allows an admin (or capable user) to edit the author slug of a user, and change the author base.
|
12 |
+
|
13 |
+
## Description ##
|
14 |
+
|
15 |
+
This plugin allows full control of your user permalinks, allowing you to change both the author base (the '/author/' portion of the author URLs), and the author slug (defaults to the username of the author). You can set the author base globally, or you can set it to be user-specific based on a user's role. You now have the power to craft the perfect URL structure for you Author pages.
|
16 |
+
|
17 |
+
WordPress default structure *http://example.com/author/username/*.
|
18 |
+
|
19 |
+
Edit Author Slug allows for *http://example.com/ninja/master-ninja/*.
|
20 |
+
|
21 |
+
Using a role-based author base would allow for *http://example.com/ida/master-splinter/* (for an Administrator Role), or *http://example.com/koga/leonardo/* (for a Subscriber Role).
|
22 |
+
|
23 |
+
Development of this plugin takes place on [GitHub](https://github.com/thebrandonallen/edit-author-slug/ "Edit Author Slug on Github"). Pull requests are always welcome!
|
24 |
+
|
25 |
+
Translations should be submitted to [Translate WordPress](https://translate.wordpress.org/projects/wp-plugins/edit-author-slug).
|
26 |
+
|
27 |
+
## Installation ##
|
28 |
+
|
29 |
+
1. Upload `edit-author-slug` folder to your WordPress plugins directory (typically 'wp-content/plugins')
|
30 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress
|
31 |
+
3. Go to Users > Your Profile, or Users > All Users > (username), and edit the author slug.
|
32 |
+
4. Click "Update Profile" or "Update User"
|
33 |
+
5. Go to Settings > Edit Author Slug to edit settings
|
34 |
+
6. Click "Save Changes"
|
35 |
+
|
36 |
+
## Screenshots ##
|
37 |
+
|
38 |
+
1. Settings
|
39 |
+
2. Individual user author slug
|
40 |
+
|
41 |
+
## Frequently Asked Questions ##
|
42 |
+
|
43 |
+
### What is an author slug? ###
|
44 |
+
|
45 |
+
On standard WordPress installs, it's the final part of an author permalink.
|
46 |
+
e.g. - https://example.com/author/author-slug/
|
47 |
+
|
48 |
+
In relation to WordPress internals, the author slug is the same as the `user_nicename` field found in a `WP_User` object, or the users table in the database.
|
49 |
+
|
50 |
+
### Will my changes persist if I deactivate or delete the Edit Author Slug plugin? ###
|
51 |
+
|
52 |
+
It depends.
|
53 |
+
|
54 |
+
Changing a user's author slug is permanent, as this changes the user's `user_nicename` field in the database.
|
55 |
+
|
56 |
+
If you've changed the author base, deactivating or deleting the plugin will revert your author base back to `author`.
|
57 |
+
|
58 |
+
### Why can't I edit my Author Slug? ###
|
59 |
+
|
60 |
+
Make sure you are an admin, or have been assigned the `edit_users` capability.
|
61 |
+
|
62 |
+
### Why isn't my new Author Slug working? ###
|
63 |
+
|
64 |
+
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.
|
65 |
+
|
66 |
+
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.
|
67 |
+
|
68 |
+
## Changelog ##
|
69 |
+
|
70 |
+
### 1.8.3 ###
|
71 |
+
* Release date: 2021-08-07
|
72 |
+
* Bumps "Tested up to" version to 5.8
|
73 |
+
* Improves string translations and adds some missing strings that couldn't, previously be translated. Props @alexclassroom
|
74 |
+
|
75 |
+
### 1.8.2 ###
|
76 |
+
* Release date: 2021-06-01
|
77 |
+
* Bumps "Tested up to" version to 5.7
|
78 |
+
|
79 |
+
### 1.8.1 ###
|
80 |
+
* Release date: 2020-12-14
|
81 |
+
* Corrects settings page notice link to actually link to the current user's profile page.
|
82 |
+
|
83 |
+
### 1.8.0 ###
|
84 |
+
* Release date: 2020-12-14
|
85 |
+
* Bumps "Tested up to" version to 5.6
|
86 |
+
* Adds a notice to the settings page reminding you that you can edit your author slug on your profile page.
|
87 |
+
* Drops support for IE 10 on the settings page.
|
88 |
+
|
89 |
+
### 1.7.0 ###
|
90 |
+
* Release date: 2020-06-07
|
91 |
+
* Bumps the minimum required version to WordPress 4.9.
|
92 |
+
* Bumps "Tested up to" version to 5.4.1
|
93 |
+
* Fixes an error that may occur with some install of iThemes Security
|
94 |
+
|
95 |
+
### 1.6.1 ###
|
96 |
+
* Release date: 2019-09-05
|
97 |
+
* Removes pre-WP 4.5 cache busting. The minimum version has been 4.7 for quite some time, and, as of WP 4.5, the cache busting was redundant.
|
98 |
+
* Don't show the options page if `ba_eas_can_edit_author_slug()` returns `false`.
|
99 |
+
* Bumps "Tested up to" version to 5.2.3
|
100 |
+
|
101 |
+
### 1.6.0 ###
|
102 |
+
* Release date: 2018-10-11
|
103 |
+
* Minimum required WordPress version is now 4.7
|
104 |
+
* Settings page JS no longer depends on jQuery (switched to plain js)
|
105 |
+
* Add compatibility for iThemes Force Unique Nickname WordPress Tweak
|
106 |
+
* Add a hash string as an author slug option
|
107 |
+
* Minimum PHP version has been bumped to 5.3. This is a soft bump, meaning, the plugin should still run on PHP 5.2. However, PHP 5.2 is no longer, officially, supported.
|
108 |
+
|
109 |
+
### 1.5.2 ###
|
110 |
+
* Release date: 2017-06-21
|
111 |
+
* Fixed a regression where those using the default author based couldn't remove front unless they were also using role-based author bases. Props @thatherton.
|
112 |
+
|
113 |
+
### 1.5.1 ###
|
114 |
+
* Release date: 2017-06-02
|
115 |
+
* Fix PHP notice when manually updating a user profile. Props @mydigitalsauce.
|
116 |
+
|
117 |
+
### 1.5.0 ###
|
118 |
+
* Release date: 2017-05-30
|
119 |
+
* Bumped minimum required WordPress version to 4.4.
|
120 |
+
* Refactored bulk upgrading again. The original fix made things better, but not as good as it could be. This new refactoring drastically improves performance and memory usage.
|
121 |
+
* This release is primarily an under-the-hood release with a number of optimizations and performance improvements.
|
122 |
+
|
123 |
+
### 1.4.1 ###
|
124 |
+
* Release date: 2017-04-24
|
125 |
+
* Fix failing string replacement in bulk update message.
|
126 |
+
|
127 |
+
### 1.4.0 ###
|
128 |
+
* Release date: 2017-04-04
|
129 |
+
* Lots of code cleanup to better adhere to WordPress Coding Standards.
|
130 |
+
* Improved performance of `ba_eas_sanitize_author_base()` by preventing unnecessary processing.
|
131 |
+
* Fixed an issue where the demo author permalink URL could have a double slash.
|
132 |
+
* Improvements to bulk update for sites with a large user base.
|
133 |
+
|
134 |
+
### 1.3.0 ###
|
135 |
+
* Release date: 2017-01-25
|
136 |
+
* Fix a potential bug where a sanitized author base could end up with double forward slashes.
|
137 |
+
* Introduce the `%ba_eas_author_role%` permalink structure tag. This can be used to customize role-based author bases.
|
138 |
+
* Bonus: All alternative facts are now free!
|
139 |
+
|
140 |
+
### 1.2.1 ###
|
141 |
+
* Release date: 2016-02-29
|
142 |
+
* Fixed stupid error where the default user nicename wasn't being properly retrieved from the database. Sorry about that :(
|
143 |
+
* Unfortunately, some unicorns were lost during the development of this release, but they are a resilient creature.
|
144 |
+
|
145 |
+
### 1.2.0 ###
|
146 |
+
* Release date: 2016-02-01
|
147 |
+
* Added the ability to use forward slashes in the author base.
|
148 |
+
* Improved display on the settings page, and storing, of role slugs.
|
149 |
+
* Packaged translations are now removed. Anyone interested in translating the plugin should do so at [Translate WordPress](https://translate.wordpress.org/projects/wp-plugins/edit-author-slug).
|
150 |
+
* EXPERIMENTAL: Added the ability to set the author slug to a user's numeric user id. While I have tested this, I can't be sure that no one's site will implode. If all goes well, the experimental tag will be removed in the next major release (or two).
|
151 |
+
* Added ability to remove the front portion of author links.
|
152 |
+
* Accessibility improvements to the settings page.
|
153 |
+
|
154 |
+
### Full Changelog ###
|
155 |
+
* https://github.com/thebrandonallen/edit-author-slug/blob/master/CHANGELOG.md
|
edit-author-slug.php
CHANGED
@@ -1,13 +1,17 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Plugin Name:
|
4 |
-
* Plugin URI:
|
5 |
-
* Description:
|
6 |
-
* Author:
|
7 |
-
* Author URI:
|
8 |
-
* Text Domain:
|
9 |
-
* Domain Path:
|
10 |
-
* Version:
|
|
|
|
|
|
|
|
|
11 |
*
|
12 |
* Copyright (C) 2009-2021 Brandon Allen (https://github.com/thebrandonallen)
|
13 |
*
|
@@ -28,7 +32,7 @@
|
|
28 |
* @package Edit_Author_Slug
|
29 |
* @subpackage Main
|
30 |
* @author Brandon Allen
|
31 |
-
* @version 1.8.
|
32 |
*/
|
33 |
|
34 |
// Exit if accessed directly.
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Plugin Name: Edit Author Slug
|
4 |
+
* Plugin URI: https://github.com/thebrandonallen/edit-author-slug/
|
5 |
+
* Description: Allows an Admin (or capable user) to edit the author slug of a user, and change the Author Base. <em>i.e. - (WordPress default structure) http://example.com/author/username/ (Plugin allows) http://example.com/ninja/master-ninja/</em>
|
6 |
+
* Author: Brandon Allen
|
7 |
+
* Author URI: https://github.com/thebrandonallen/
|
8 |
+
* Text Domain: edit-author-slug
|
9 |
+
* Domain Path: /languages
|
10 |
+
* Version: 1.8.3
|
11 |
+
* Requires at least: 4.9
|
12 |
+
* Requires PHP: 5.6
|
13 |
+
* License: GPLv2 or later
|
14 |
+
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
15 |
*
|
16 |
* Copyright (C) 2009-2021 Brandon Allen (https://github.com/thebrandonallen)
|
17 |
*
|
32 |
* @package Edit_Author_Slug
|
33 |
* @subpackage Main
|
34 |
* @author Brandon Allen
|
35 |
+
* @version 1.8.3
|
36 |
*/
|
37 |
|
38 |
// Exit if accessed directly.
|
includes/admin.php
CHANGED
@@ -70,7 +70,7 @@ function ba_eas_show_user_nicename( $user ) {
|
|
70 |
$checked = true;
|
71 |
?>
|
72 |
|
73 |
-
<h2><?php
|
74 |
<p><?php esc_html_e( 'Choose an Author Slug based on the above profile information, or create your own.', 'edit-author-slug' ); ?> <br /><span class="description"><?php esc_html_e( "ie. - 'user-name', 'firstname-lastname', or 'master-ninja'", 'edit-author-slug' ); ?></span></p>
|
75 |
<table class="form-table">
|
76 |
<tbody><tr>
|
@@ -407,7 +407,7 @@ function ba_eas_add_settings_menu() {
|
|
407 |
if ( ba_eas_can_edit_author_slug() ) {
|
408 |
add_options_page(
|
409 |
__( 'Edit Author Slug Settings', 'edit-author-slug' ),
|
410 |
-
|
411 |
'edit_users',
|
412 |
'edit-author-slug',
|
413 |
'ba_eas_settings_page_html'
|
@@ -428,7 +428,7 @@ function ba_eas_settings_page_html() {
|
|
428 |
<h1 id="edit-author-slug"><?php esc_html_e( 'Edit Author Slug Settings', 'edit-author-slug' ); ?></h1>
|
429 |
|
430 |
<div class="notice notice-large">
|
431 |
-
<a href="<?php echo esc_url( get_edit_profile_url() ); ?>"
|
432 |
</div>
|
433 |
|
434 |
<form action="options.php" method="post">
|
@@ -612,7 +612,7 @@ function ba_eas_admin_setting_callback_author_base() {
|
|
612 |
<br />
|
613 |
<em><?php esc_html_e( "Defaults to 'author'", 'edit-author-slug' ); ?></em>
|
614 |
<br /><br />
|
615 |
-
<strong
|
616 |
<em>
|
617 |
<?php
|
618 |
echo sprintf(
|
@@ -812,7 +812,14 @@ function ba_eas_admin_setting_callback_default_user_nicename() {
|
|
812 |
|
813 |
<?php if ( ba_eas()->is_itsec_force_unique_nickname() ) : ?>
|
814 |
<div class="eas-author-slug-select-error<?php echo esc_attr( $class ); ?>" style="background: #fff; border-left: 4px solid #fff; border-left-color: #dc3232; box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); margin: 10px 15px 2px 0; padding: 5px 12px 5px;">
|
815 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
816 |
</div>
|
817 |
<?php endif; ?>
|
818 |
|
@@ -883,7 +890,14 @@ function ba_eas_admin_setting_callback_bulk_update_structure() {
|
|
883 |
|
884 |
<?php if ( ba_eas()->is_itsec_force_unique_nickname() ) : ?>
|
885 |
<div class="eas-author-slug-select-error<?php echo esc_attr( $class ); ?>" style="background: #fff; border-left: 4px solid #fff; border-left-color: #dc3232; box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); margin: 10px 15px 2px 0; padding: 5px 12px 5px;">
|
886 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
887 |
</div>
|
888 |
<?php endif; ?>
|
889 |
|
70 |
$checked = true;
|
71 |
?>
|
72 |
|
73 |
+
<h2><?php echo esc_html_x( 'Edit Author Slug', 'Plugin settings page heading', 'edit-author-slug' ); ?></h2>
|
74 |
<p><?php esc_html_e( 'Choose an Author Slug based on the above profile information, or create your own.', 'edit-author-slug' ); ?> <br /><span class="description"><?php esc_html_e( "ie. - 'user-name', 'firstname-lastname', or 'master-ninja'", 'edit-author-slug' ); ?></span></p>
|
75 |
<table class="form-table">
|
76 |
<tbody><tr>
|
407 |
if ( ba_eas_can_edit_author_slug() ) {
|
408 |
add_options_page(
|
409 |
__( 'Edit Author Slug Settings', 'edit-author-slug' ),
|
410 |
+
_x( 'Edit Author Slug', 'Settings menu item', 'edit-author-slug' ),
|
411 |
'edit_users',
|
412 |
'edit-author-slug',
|
413 |
'ba_eas_settings_page_html'
|
428 |
<h1 id="edit-author-slug"><?php esc_html_e( 'Edit Author Slug Settings', 'edit-author-slug' ); ?></h1>
|
429 |
|
430 |
<div class="notice notice-large">
|
431 |
+
<a href="<?php echo esc_url( get_edit_profile_url() ); ?>"><?php esc_html_e( 'You can customize your own author slug by visiting your profile page. ', 'edit-author-slug' ); ?></a><?php esc_html_e( 'This also applies to other users.', 'edit-author-slug' ); ?>
|
432 |
</div>
|
433 |
|
434 |
<form action="options.php" method="post">
|
612 |
<br />
|
613 |
<em><?php esc_html_e( "Defaults to 'author'", 'edit-author-slug' ); ?></em>
|
614 |
<br /><br />
|
615 |
+
<strong><?php esc_html_e( 'Demo:', 'edit-author-slug' ); ?></strong>
|
616 |
<em>
|
617 |
<?php
|
618 |
echo sprintf(
|
812 |
|
813 |
<?php if ( ba_eas()->is_itsec_force_unique_nickname() ) : ?>
|
814 |
<div class="eas-author-slug-select-error<?php echo esc_attr( $class ); ?>" style="background: #fff; border-left: 4px solid #fff; border-left-color: #dc3232; box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); margin: 10px 15px 2px 0; padding: 5px 12px 5px;">
|
815 |
+
<?php
|
816 |
+
printf(
|
817 |
+
/* translators: 1: <code>username</code>, 2: <code>username</code> */
|
818 |
+
esc_html__( 'Your iThemes settings suggest you don\'t want the %1$s being used as an author slug. Leaving it set to %2$s will still work, but you may wish to change to something different.', 'edit-author-slug' ),
|
819 |
+
'<code>username</code>',
|
820 |
+
'<code>username</code>'
|
821 |
+
);
|
822 |
+
?>
|
823 |
</div>
|
824 |
<?php endif; ?>
|
825 |
|
890 |
|
891 |
<?php if ( ba_eas()->is_itsec_force_unique_nickname() ) : ?>
|
892 |
<div class="eas-author-slug-select-error<?php echo esc_attr( $class ); ?>" style="background: #fff; border-left: 4px solid #fff; border-left-color: #dc3232; box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); margin: 10px 15px 2px 0; padding: 5px 12px 5px;">
|
893 |
+
<?php
|
894 |
+
printf(
|
895 |
+
/* translators: 1: <code>username</code>, 2: <code>username</code> */
|
896 |
+
esc_html__( 'Your iThemes settings suggest you don\'t want the %1$s being used as an author slug. Leaving it set to %2$s will still work, but you may wish to change to something different.', 'edit-author-slug' ),
|
897 |
+
'<code>username</code>',
|
898 |
+
'<code>username</code>'
|
899 |
+
);
|
900 |
+
?>
|
901 |
</div>
|
902 |
<?php endif; ?>
|
903 |
|
js/edit-author-slug.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
/*! edit-author-slug - v1.8.
|
2 |
(function(){const e=function(e){if(e&&Object.prototype.hasOwnProperty.call(e,"classList")){e.classList.toggle("hidden")}};document.addEventListener("DOMContentLoaded",(function(){const t=document.querySelector('input[name="ba_eas_author_slug_custom"]');const n=document.querySelector(".eas-demo-author-base-front");const c=document.querySelector('input[name="_ba_eas_remove_front"]');if(c){if(c.checked){e(n)}c.addEventListener("click",(function(){e(n)}))}document.querySelectorAll('input[class="eas-checkbox"]').forEach((function(t){const n=t.parentNode.parentNode.nextElementSibling;if(!t.checked){e(n)}t.addEventListener("click",(function(){e(n)}))}));document.querySelectorAll('input[name="ba_eas_author_slug"]').forEach((function(e){e.addEventListener("click",(function(){if(!e.classList.contains("eas-author-slug-custom-radio")){t.value=e.value}}))}));if(t){t.addEventListener("focus",(function(){document.querySelector(".eas-author-slug-custom-radio").checked="checked"}))}document.querySelectorAll("select").forEach((function(t){t.addEventListener("change",(function(t){const n=t.target.nextElementSibling;if(n&&n.classList.contains("eas-author-slug-select-error")){e(n)}}))}))}))})();
|
1 |
+
/*! edit-author-slug - v1.8.3 - 2021-08-07 10:33:30 PM UTC - https://github.com/thebrandonallen/edit-author-slug/ */
|
2 |
(function(){const e=function(e){if(e&&Object.prototype.hasOwnProperty.call(e,"classList")){e.classList.toggle("hidden")}};document.addEventListener("DOMContentLoaded",(function(){const t=document.querySelector('input[name="ba_eas_author_slug_custom"]');const n=document.querySelector(".eas-demo-author-base-front");const c=document.querySelector('input[name="_ba_eas_remove_front"]');if(c){if(c.checked){e(n)}c.addEventListener("click",(function(){e(n)}))}document.querySelectorAll('input[class="eas-checkbox"]').forEach((function(t){const n=t.parentNode.parentNode.nextElementSibling;if(!t.checked){e(n)}t.addEventListener("click",(function(){e(n)}))}));document.querySelectorAll('input[name="ba_eas_author_slug"]').forEach((function(e){e.addEventListener("click",(function(){if(!e.classList.contains("eas-author-slug-custom-radio")){t.value=e.value}}))}));if(t){t.addEventListener("focus",(function(){document.querySelector(".eas-author-slug-custom-radio").checked="checked"}))}document.querySelectorAll("select").forEach((function(t){t.addEventListener("change",(function(t){const n=t.target.nextElementSibling;if(n&&n.classList.contains("eas-author-slug-select-error")){e(n)}}))}))}))})();
|
languages/edit-author-slug.pot
CHANGED
@@ -3,22 +3,20 @@
|
|
3 |
# Submit translations to https://translate.wordpress.org/projects/wp-plugins/edit-author-slug.
|
4 |
msgid ""
|
5 |
msgstr ""
|
6 |
-
"Project-Id-Version: Edit Author Slug 1.8.
|
7 |
"Report-Msgid-Bugs-To: https://github.com/thebrandonallen/edit-author-slug/issues\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"POT-Creation-Date: 2021-
|
14 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
15 |
"X-Generator: WP-CLI 2.5.0\n"
|
16 |
"X-Poedit-KeywordsList: __:1,2d;_e:1,2d;_x:1,2c,3d;_n:1,2,4d;_ex:1,2c,3d;_nx:1,2,4c,5d;esc_attr__:1,2d;esc_attr_e:1,2d;esc_attr_x:1,2c,3d;esc_html__:1,2d;esc_html_e:1,2d;esc_html_x:1,2c,3d;_n_noop:1,2,3d;_nx_noop:1,2,3c,4d\n"
|
17 |
"X-Domain: edit-author-slug\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
20 |
-
#: includes/admin.php:73
|
21 |
-
#: includes/admin.php:410
|
22 |
msgid "Edit Author Slug"
|
23 |
msgstr ""
|
24 |
|
@@ -38,6 +36,11 @@ msgstr ""
|
|
38 |
msgid "https://github.com/thebrandonallen/"
|
39 |
msgstr ""
|
40 |
|
|
|
|
|
|
|
|
|
|
|
41 |
#: includes/admin.php:74
|
42 |
msgid "Choose an Author Slug based on the above profile information, or create your own."
|
43 |
msgstr ""
|
@@ -94,6 +97,19 @@ msgstr ""
|
|
94 |
msgid "Edit Author Slug Settings"
|
95 |
msgstr ""
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
#: includes/admin.php:456
|
98 |
#: includes/admin.php:464
|
99 |
msgid "Author Base"
|
@@ -148,6 +164,10 @@ msgstr ""
|
|
148 |
msgid "Defaults to 'author'"
|
149 |
msgstr ""
|
150 |
|
|
|
|
|
|
|
|
|
151 |
#: includes/admin.php:643
|
152 |
msgid "Remove the \"front\" portion of the author permalink structure."
|
153 |
msgstr ""
|
@@ -169,63 +189,69 @@ msgstr ""
|
|
169 |
msgid "Default author slug options"
|
170 |
msgstr ""
|
171 |
|
172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
msgid "Update all users at once based on the specified Author Slug structure."
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: includes/admin.php:
|
177 |
msgid "Update all users according to the below Author Slug setting. This will only be run after clicking \"Save Changes\"."
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: includes/admin.php:
|
181 |
msgid "Default bulk update author slug options"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: includes/admin.php:
|
185 |
msgid "Settings"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: includes/admin.php:
|
189 |
#: tests/test-admin.php:1112
|
190 |
msgid "username (Default)"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: includes/admin.php:
|
194 |
#: tests/test-admin.php:1113
|
195 |
msgid "nickname"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: includes/admin.php:
|
199 |
#: tests/test-admin.php:1114
|
200 |
msgid "displayname"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: includes/admin.php:
|
204 |
#: tests/test-admin.php:1115
|
205 |
msgid "firstname"
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: includes/admin.php:
|
209 |
#: tests/test-admin.php:1116
|
210 |
msgid "lastname"
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: includes/admin.php:
|
214 |
#: tests/test-admin.php:1117
|
215 |
msgid "firstname-lastname"
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: includes/admin.php:
|
219 |
#: tests/test-admin.php:1118
|
220 |
msgid "lastname-firstname"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: includes/admin.php:
|
224 |
#: tests/test-admin.php:1119
|
225 |
msgid "userid"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: includes/admin.php:
|
229 |
#: tests/test-admin.php:1120
|
230 |
msgid "hash"
|
231 |
msgstr ""
|
3 |
# Submit translations to https://translate.wordpress.org/projects/wp-plugins/edit-author-slug.
|
4 |
msgid ""
|
5 |
msgstr ""
|
6 |
+
"Project-Id-Version: Edit Author Slug 1.8.3\n"
|
7 |
"Report-Msgid-Bugs-To: https://github.com/thebrandonallen/edit-author-slug/issues\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"POT-Creation-Date: 2021-08-07T22:33:31+00:00\n"
|
14 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
15 |
"X-Generator: WP-CLI 2.5.0\n"
|
16 |
"X-Poedit-KeywordsList: __:1,2d;_e:1,2d;_x:1,2c,3d;_n:1,2,4d;_ex:1,2c,3d;_nx:1,2,4c,5d;esc_attr__:1,2d;esc_attr_e:1,2d;esc_attr_x:1,2c,3d;esc_html__:1,2d;esc_html_e:1,2d;esc_html_x:1,2c,3d;_n_noop:1,2,3d;_nx_noop:1,2,3c,4d\n"
|
17 |
"X-Domain: edit-author-slug\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
|
|
|
|
20 |
msgid "Edit Author Slug"
|
21 |
msgstr ""
|
22 |
|
36 |
msgid "https://github.com/thebrandonallen/"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: includes/admin.php:73
|
40 |
+
msgctxt "Plugin settings page heading"
|
41 |
+
msgid "Edit Author Slug"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
#: includes/admin.php:74
|
45 |
msgid "Choose an Author Slug based on the above profile information, or create your own."
|
46 |
msgstr ""
|
97 |
msgid "Edit Author Slug Settings"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: includes/admin.php:410
|
101 |
+
msgctxt "Settings menu item"
|
102 |
+
msgid "Edit Author Slug"
|
103 |
+
msgstr ""
|
104 |
+
|
105 |
+
#: includes/admin.php:431
|
106 |
+
msgid "You can customize your own author slug by visiting your profile page. "
|
107 |
+
msgstr ""
|
108 |
+
|
109 |
+
#: includes/admin.php:431
|
110 |
+
msgid "This also applies to other users."
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
#: includes/admin.php:456
|
114 |
#: includes/admin.php:464
|
115 |
msgid "Author Base"
|
164 |
msgid "Defaults to 'author'"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: includes/admin.php:615
|
168 |
+
msgid "Demo:"
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
#: includes/admin.php:643
|
172 |
msgid "Remove the \"front\" portion of the author permalink structure."
|
173 |
msgstr ""
|
189 |
msgid "Default author slug options"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#. translators: 1: <code>username</code>, 2: <code>username</code>
|
193 |
+
#: includes/admin.php:818
|
194 |
+
#: includes/admin.php:896
|
195 |
+
msgid "Your iThemes settings suggest you don't want the %1$s being used as an author slug. Leaving it set to %2$s will still work, but you may wish to change to something different."
|
196 |
+
msgstr ""
|
197 |
+
|
198 |
+
#: includes/admin.php:839
|
199 |
msgid "Update all users at once based on the specified Author Slug structure."
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: includes/admin.php:856
|
203 |
msgid "Update all users according to the below Author Slug setting. This will only be run after clicking \"Save Changes\"."
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: includes/admin.php:884
|
207 |
msgid "Default bulk update author slug options"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: includes/admin.php:928
|
211 |
msgid "Settings"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: includes/admin.php:955
|
215 |
#: tests/test-admin.php:1112
|
216 |
msgid "username (Default)"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: includes/admin.php:956
|
220 |
#: tests/test-admin.php:1113
|
221 |
msgid "nickname"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: includes/admin.php:957
|
225 |
#: tests/test-admin.php:1114
|
226 |
msgid "displayname"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: includes/admin.php:958
|
230 |
#: tests/test-admin.php:1115
|
231 |
msgid "firstname"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: includes/admin.php:959
|
235 |
#: tests/test-admin.php:1116
|
236 |
msgid "lastname"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: includes/admin.php:960
|
240 |
#: tests/test-admin.php:1117
|
241 |
msgid "firstname-lastname"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: includes/admin.php:961
|
245 |
#: tests/test-admin.php:1118
|
246 |
msgid "lastname-firstname"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: includes/admin.php:962
|
250 |
#: tests/test-admin.php:1119
|
251 |
msgid "userid"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: includes/admin.php:963
|
255 |
#: tests/test-admin.php:1120
|
256 |
msgid "hash"
|
257 |
msgstr ""
|
readme.txt
CHANGED
@@ -1,150 +1,155 @@
|
|
1 |
-
=== Edit Author Slug ===
|
2 |
-
Contributors: thebrandonallen
|
3 |
-
Tags: author, author base, author slug, user nicename, nicename, permalink, permalinks, slug, users, user, role, roles
|
4 |
-
Requires at least: 4.9
|
5 |
-
Tested up to: 5.
|
6 |
-
Requires PHP: 5.6.20
|
7 |
-
Stable tag: 1.8.
|
8 |
-
License: GPLv2 or later
|
9 |
-
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
10 |
-
|
11 |
-
Allows an admin (or capable user) to edit the author slug of a user, and change the author base.
|
12 |
-
|
13 |
-
== Description ==
|
14 |
-
|
15 |
-
This plugin allows full control of your user permalinks, allowing you to change both the author base (the '/author/' portion of the author URLs), and the author slug (defaults to the username of the author). You can set the author base globally, or you can set it to be user-specific based on a user's role. You now have the power to craft the perfect URL structure for you Author pages.
|
16 |
-
|
17 |
-
WordPress default structure *http://example.com/author/username/*.
|
18 |
-
|
19 |
-
Edit Author Slug allows for *http://example.com/ninja/master-ninja/*.
|
20 |
-
|
21 |
-
Using a role-based author base would allow for *http://example.com/ida/master-splinter/* (for an Administrator Role), or *http://example.com/koga/leonardo/* (for a Subscriber Role).
|
22 |
-
|
23 |
-
Development of this plugin takes place on [GitHub](https://github.com/thebrandonallen/edit-author-slug/ "Edit Author Slug on Github"). Pull requests are always welcome!
|
24 |
-
|
25 |
-
Translations should be submitted to [Translate WordPress](https://translate.wordpress.org/projects/wp-plugins/edit-author-slug).
|
26 |
-
|
27 |
-
== Installation ==
|
28 |
-
|
29 |
-
1. Upload `edit-author-slug` folder to your WordPress plugins directory (typically 'wp-content/plugins')
|
30 |
-
2. Activate the plugin through the 'Plugins' menu in WordPress
|
31 |
-
3. Go to Users > Your Profile, or Users > All Users > (username), and edit the author slug.
|
32 |
-
4. Click "Update Profile" or "Update User"
|
33 |
-
5. Go to Settings > Edit Author Slug to edit settings
|
34 |
-
6. Click "Save Changes"
|
35 |
-
|
36 |
-
== Screenshots ==
|
37 |
-
|
38 |
-
1. Settings
|
39 |
-
2. Individual user author slug
|
40 |
-
|
41 |
-
== Frequently Asked Questions ==
|
42 |
-
|
43 |
-
= What is an author slug? =
|
44 |
-
|
45 |
-
On standard WordPress installs, it's the final part of an author permalink.
|
46 |
-
e.g. - https://example.com/author/author-slug/
|
47 |
-
|
48 |
-
In relation to WordPress internals, the author slug is the same as the `user_nicename` field found in a `WP_User` object, or the users table in the database.
|
49 |
-
|
50 |
-
= Will my changes persist if I deactivate or delete the Edit Author Slug plugin? =
|
51 |
-
|
52 |
-
It depends.
|
53 |
-
|
54 |
-
Changing a user's author slug is permanent, as this changes the user's `user_nicename` field in the database.
|
55 |
-
|
56 |
-
If you've changed the author base, deactivating or deleting the plugin will revert your author base back to `author`.
|
57 |
-
|
58 |
-
= Why can't I edit my Author Slug? =
|
59 |
-
|
60 |
-
Make sure you are an admin, or have been assigned the `edit_users` capability.
|
61 |
-
|
62 |
-
= Why isn't my new Author Slug working? =
|
63 |
-
|
64 |
-
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.
|
65 |
-
|
66 |
-
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.
|
67 |
-
|
68 |
-
== Changelog ==
|
69 |
-
|
70 |
-
= 1.8.
|
71 |
-
* Release date: 2021-
|
72 |
-
* Bumps "Tested up to" version to 5.
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
*
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
*
|
81 |
-
*
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
*
|
86 |
-
*
|
87 |
-
*
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
*
|
92 |
-
*
|
93 |
-
*
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
*
|
98 |
-
*
|
99 |
-
*
|
100 |
-
|
101 |
-
|
102 |
-
*
|
103 |
-
|
104 |
-
|
105 |
-
*
|
106 |
-
*
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
*
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
*
|
115 |
-
*
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
*
|
120 |
-
*
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
*
|
125 |
-
*
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
*
|
131 |
-
*
|
132 |
-
*
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
*
|
137 |
-
*
|
138 |
-
*
|
139 |
-
|
140 |
-
= 1.2.
|
141 |
-
* Release date: 2016-02-
|
142 |
-
*
|
143 |
-
*
|
144 |
-
|
145 |
-
|
146 |
-
*
|
147 |
-
*
|
148 |
-
|
149 |
-
|
150 |
-
*
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Edit Author Slug ===
|
2 |
+
Contributors: thebrandonallen
|
3 |
+
Tags: author, author base, author slug, user nicename, nicename, permalink, permalinks, slug, users, user, role, roles
|
4 |
+
Requires at least: 4.9
|
5 |
+
Tested up to: 5.8
|
6 |
+
Requires PHP: 5.6.20
|
7 |
+
Stable tag: 1.8.3
|
8 |
+
License: GPLv2 or later
|
9 |
+
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
10 |
+
|
11 |
+
Allows an admin (or capable user) to edit the author slug of a user, and change the author base.
|
12 |
+
|
13 |
+
== Description ==
|
14 |
+
|
15 |
+
This plugin allows full control of your user permalinks, allowing you to change both the author base (the '/author/' portion of the author URLs), and the author slug (defaults to the username of the author). You can set the author base globally, or you can set it to be user-specific based on a user's role. You now have the power to craft the perfect URL structure for you Author pages.
|
16 |
+
|
17 |
+
WordPress default structure *http://example.com/author/username/*.
|
18 |
+
|
19 |
+
Edit Author Slug allows for *http://example.com/ninja/master-ninja/*.
|
20 |
+
|
21 |
+
Using a role-based author base would allow for *http://example.com/ida/master-splinter/* (for an Administrator Role), or *http://example.com/koga/leonardo/* (for a Subscriber Role).
|
22 |
+
|
23 |
+
Development of this plugin takes place on [GitHub](https://github.com/thebrandonallen/edit-author-slug/ "Edit Author Slug on Github"). Pull requests are always welcome!
|
24 |
+
|
25 |
+
Translations should be submitted to [Translate WordPress](https://translate.wordpress.org/projects/wp-plugins/edit-author-slug).
|
26 |
+
|
27 |
+
== Installation ==
|
28 |
+
|
29 |
+
1. Upload `edit-author-slug` folder to your WordPress plugins directory (typically 'wp-content/plugins')
|
30 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress
|
31 |
+
3. Go to Users > Your Profile, or Users > All Users > (username), and edit the author slug.
|
32 |
+
4. Click "Update Profile" or "Update User"
|
33 |
+
5. Go to Settings > Edit Author Slug to edit settings
|
34 |
+
6. Click "Save Changes"
|
35 |
+
|
36 |
+
== Screenshots ==
|
37 |
+
|
38 |
+
1. Settings
|
39 |
+
2. Individual user author slug
|
40 |
+
|
41 |
+
== Frequently Asked Questions ==
|
42 |
+
|
43 |
+
= What is an author slug? =
|
44 |
+
|
45 |
+
On standard WordPress installs, it's the final part of an author permalink.
|
46 |
+
e.g. - https://example.com/author/author-slug/
|
47 |
+
|
48 |
+
In relation to WordPress internals, the author slug is the same as the `user_nicename` field found in a `WP_User` object, or the users table in the database.
|
49 |
+
|
50 |
+
= Will my changes persist if I deactivate or delete the Edit Author Slug plugin? =
|
51 |
+
|
52 |
+
It depends.
|
53 |
+
|
54 |
+
Changing a user's author slug is permanent, as this changes the user's `user_nicename` field in the database.
|
55 |
+
|
56 |
+
If you've changed the author base, deactivating or deleting the plugin will revert your author base back to `author`.
|
57 |
+
|
58 |
+
= Why can't I edit my Author Slug? =
|
59 |
+
|
60 |
+
Make sure you are an admin, or have been assigned the `edit_users` capability.
|
61 |
+
|
62 |
+
= Why isn't my new Author Slug working? =
|
63 |
+
|
64 |
+
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.
|
65 |
+
|
66 |
+
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.
|
67 |
+
|
68 |
+
== Changelog ==
|
69 |
+
|
70 |
+
= 1.8.3 =
|
71 |
+
* Release date: 2021-08-07
|
72 |
+
* Bumps "Tested up to" version to 5.8
|
73 |
+
* Improves string translations and adds some missing strings that couldn't, previously be translated. Props @alexclassroom
|
74 |
+
|
75 |
+
= 1.8.2 =
|
76 |
+
* Release date: 2021-06-01
|
77 |
+
* Bumps "Tested up to" version to 5.7
|
78 |
+
|
79 |
+
= 1.8.1 =
|
80 |
+
* Release date: 2020-12-14
|
81 |
+
* Corrects settings page notice link to actually link to the current user's profile page.
|
82 |
+
|
83 |
+
= 1.8.0 =
|
84 |
+
* Release date: 2020-12-14
|
85 |
+
* Bumps "Tested up to" version to 5.6
|
86 |
+
* Adds a notice to the settings page reminding you that you can edit your author slug on your profile page.
|
87 |
+
* Drops support for IE 10 on the settings page.
|
88 |
+
|
89 |
+
= 1.7.0 =
|
90 |
+
* Release date: 2020-06-07
|
91 |
+
* Bumps the minimum required version to WordPress 4.9.
|
92 |
+
* Bumps "Tested up to" version to 5.4.1
|
93 |
+
* Fixes an error that may occur with some install of iThemes Security
|
94 |
+
|
95 |
+
= 1.6.1 =
|
96 |
+
* Release date: 2019-09-05
|
97 |
+
* Removes pre-WP 4.5 cache busting. The minimum version has been 4.7 for quite some time, and, as of WP 4.5, the cache busting was redundant.
|
98 |
+
* Don't show the options page if `ba_eas_can_edit_author_slug()` returns `false`.
|
99 |
+
* Bumps "Tested up to" version to 5.2.3
|
100 |
+
|
101 |
+
= 1.6.0 =
|
102 |
+
* Release date: 2018-10-11
|
103 |
+
* Minimum required WordPress version is now 4.7
|
104 |
+
* Settings page JS no longer depends on jQuery (switched to plain js)
|
105 |
+
* Add compatibility for iThemes Force Unique Nickname WordPress Tweak
|
106 |
+
* Add a hash string as an author slug option
|
107 |
+
* Minimum PHP version has been bumped to 5.3. This is a soft bump, meaning, the plugin should still run on PHP 5.2. However, PHP 5.2 is no longer, officially, supported.
|
108 |
+
|
109 |
+
= 1.5.2 =
|
110 |
+
* Release date: 2017-06-21
|
111 |
+
* Fixed a regression where those using the default author based couldn't remove front unless they were also using role-based author bases. Props @thatherton.
|
112 |
+
|
113 |
+
= 1.5.1 =
|
114 |
+
* Release date: 2017-06-02
|
115 |
+
* Fix PHP notice when manually updating a user profile. Props @mydigitalsauce.
|
116 |
+
|
117 |
+
= 1.5.0 =
|
118 |
+
* Release date: 2017-05-30
|
119 |
+
* Bumped minimum required WordPress version to 4.4.
|
120 |
+
* Refactored bulk upgrading again. The original fix made things better, but not as good as it could be. This new refactoring drastically improves performance and memory usage.
|
121 |
+
* This release is primarily an under-the-hood release with a number of optimizations and performance improvements.
|
122 |
+
|
123 |
+
= 1.4.1 =
|
124 |
+
* Release date: 2017-04-24
|
125 |
+
* Fix failing string replacement in bulk update message.
|
126 |
+
|
127 |
+
= 1.4.0 =
|
128 |
+
* Release date: 2017-04-04
|
129 |
+
* Lots of code cleanup to better adhere to WordPress Coding Standards.
|
130 |
+
* Improved performance of `ba_eas_sanitize_author_base()` by preventing unnecessary processing.
|
131 |
+
* Fixed an issue where the demo author permalink URL could have a double slash.
|
132 |
+
* Improvements to bulk update for sites with a large user base.
|
133 |
+
|
134 |
+
= 1.3.0 =
|
135 |
+
* Release date: 2017-01-25
|
136 |
+
* Fix a potential bug where a sanitized author base could end up with double forward slashes.
|
137 |
+
* Introduce the `%ba_eas_author_role%` permalink structure tag. This can be used to customize role-based author bases.
|
138 |
+
* Bonus: All alternative facts are now free!
|
139 |
+
|
140 |
+
= 1.2.1 =
|
141 |
+
* Release date: 2016-02-29
|
142 |
+
* Fixed stupid error where the default user nicename wasn't being properly retrieved from the database. Sorry about that :(
|
143 |
+
* Unfortunately, some unicorns were lost during the development of this release, but they are a resilient creature.
|
144 |
+
|
145 |
+
= 1.2.0 =
|
146 |
+
* Release date: 2016-02-01
|
147 |
+
* Added the ability to use forward slashes in the author base.
|
148 |
+
* Improved display on the settings page, and storing, of role slugs.
|
149 |
+
* Packaged translations are now removed. Anyone interested in translating the plugin should do so at [Translate WordPress](https://translate.wordpress.org/projects/wp-plugins/edit-author-slug).
|
150 |
+
* EXPERIMENTAL: Added the ability to set the author slug to a user's numeric user id. While I have tested this, I can't be sure that no one's site will implode. If all goes well, the experimental tag will be removed in the next major release (or two).
|
151 |
+
* Added ability to remove the front portion of author links.
|
152 |
+
* Accessibility improvements to the settings page.
|
153 |
+
|
154 |
+
= Full Changelog =
|
155 |
+
* https://github.com/thebrandonallen/edit-author-slug/blob/master/CHANGELOG.md
|