Version Description
- Release date: 2021-06-01
- Bumps "Tested up to" version to 5.7
Download this release
Release Info
Developer | thebrandonallen |
Plugin | Edit Author Slug |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- CHANGELOG.md +4 -0
- README.md +150 -146
- edit-author-slug.php +3 -3
- js/edit-author-slug.min.js +1 -1
- languages/edit-author-slug.pot +4 -4
- readme.txt +150 -146
CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
5 |
|
6 |
## [Unreleased]
|
7 |
|
|
|
|
|
|
|
|
|
8 |
## [1.8.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.8.1) - 2020-12-14
|
9 |
### Fixed
|
10 |
* Corrects settings page notice link to actually link to the current user's profile page.
|
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
|
11 |
+
|
12 |
## [1.8.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.8.1) - 2020-12-14
|
13 |
### Fixed
|
14 |
* Corrects settings page notice link to actually link to the current user's profile page.
|
README.md
CHANGED
@@ -1,146 +1,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.6
|
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:
|
72 |
-
*
|
73 |
-
|
74 |
-
### 1.8.
|
75 |
-
* Release date: 2020-12-14
|
76 |
-
*
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
*
|
82 |
-
*
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
*
|
88 |
-
*
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
*
|
94 |
-
*
|
95 |
-
|
96 |
-
|
97 |
-
*
|
98 |
-
* Minimum
|
99 |
-
|
100 |
-
|
101 |
-
*
|
102 |
-
*
|
103 |
-
|
104 |
-
### 1.5.
|
105 |
-
* Release date: 2017-06-
|
106 |
-
*
|
107 |
-
|
108 |
-
### 1.5.
|
109 |
-
* Release date: 2017-
|
110 |
-
*
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
*
|
116 |
-
*
|
117 |
-
|
118 |
-
### 1.4.
|
119 |
-
* Release date: 2017-04-
|
120 |
-
*
|
121 |
-
|
122 |
-
|
123 |
-
*
|
124 |
-
|
125 |
-
|
126 |
-
*
|
127 |
-
*
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
*
|
133 |
-
*
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
*
|
138 |
-
*
|
139 |
-
|
140 |
-
|
141 |
-
*
|
142 |
-
* Added ability to
|
143 |
-
*
|
144 |
-
|
145 |
-
|
146 |
-
*
|
|
|
|
|
|
|
|
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
|
6 |
+
**Requires PHP:** 5.6.20
|
7 |
+
**Stable tag:** 1.8.2
|
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.2 ###
|
71 |
+
* Release date: 2021-06-01
|
72 |
+
* Bumps "Tested up to" version to 5.7
|
73 |
+
|
74 |
+
### 1.8.1 ###
|
75 |
+
* Release date: 2020-12-14
|
76 |
+
* Corrects settings page notice link to actually link to the current user's profile page.
|
77 |
+
|
78 |
+
### 1.8.0 ###
|
79 |
+
* Release date: 2020-12-14
|
80 |
+
* Bumps "Tested up to" version to 5.6
|
81 |
+
* Adds a notice to the settings page reminding you that you can edit your author slug on your profile page.
|
82 |
+
* Drops support for IE 10 on the settings page.
|
83 |
+
|
84 |
+
### 1.7.0 ###
|
85 |
+
* Release date: 2020-06-07
|
86 |
+
* Bumps the minimum required version to WordPress 4.9.
|
87 |
+
* Bumps "Tested up to" version to 5.4.1
|
88 |
+
* Fixes an error that may occur with some install of iThemes Security
|
89 |
+
|
90 |
+
### 1.6.1 ###
|
91 |
+
* Release date: 2019-09-05
|
92 |
+
* 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.
|
93 |
+
* Don't show the options page if `ba_eas_can_edit_author_slug()` returns `false`.
|
94 |
+
* Bumps "Tested up to" version to 5.2.3
|
95 |
+
|
96 |
+
### 1.6.0 ###
|
97 |
+
* Release date: 2018-10-11
|
98 |
+
* Minimum required WordPress version is now 4.7
|
99 |
+
* Settings page JS no longer depends on jQuery (switched to plain js)
|
100 |
+
* Add compatibility for iThemes Force Unique Nickname WordPress Tweak
|
101 |
+
* Add a hash string as an author slug option
|
102 |
+
* 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.
|
103 |
+
|
104 |
+
### 1.5.2 ###
|
105 |
+
* Release date: 2017-06-21
|
106 |
+
* 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.
|
107 |
+
|
108 |
+
### 1.5.1 ###
|
109 |
+
* Release date: 2017-06-02
|
110 |
+
* Fix PHP notice when manually updating a user profile. Props @mydigitalsauce.
|
111 |
+
|
112 |
+
### 1.5.0 ###
|
113 |
+
* Release date: 2017-05-30
|
114 |
+
* Bumped minimum required WordPress version to 4.4.
|
115 |
+
* 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.
|
116 |
+
* This release is primarily an under-the-hood release with a number of optimizations and performance improvements.
|
117 |
+
|
118 |
+
### 1.4.1 ###
|
119 |
+
* Release date: 2017-04-24
|
120 |
+
* Fix failing string replacement in bulk update message.
|
121 |
+
|
122 |
+
### 1.4.0 ###
|
123 |
+
* Release date: 2017-04-04
|
124 |
+
* Lots of code cleanup to better adhere to WordPress Coding Standards.
|
125 |
+
* Improved performance of `ba_eas_sanitize_author_base()` by preventing unnecessary processing.
|
126 |
+
* Fixed an issue where the demo author permalink URL could have a double slash.
|
127 |
+
* Improvements to bulk update for sites with a large user base.
|
128 |
+
|
129 |
+
### 1.3.0 ###
|
130 |
+
* Release date: 2017-01-25
|
131 |
+
* Fix a potential bug where a sanitized author base could end up with double forward slashes.
|
132 |
+
* Introduce the `%ba_eas_author_role%` permalink structure tag. This can be used to customize role-based author bases.
|
133 |
+
* Bonus: All alternative facts are now free!
|
134 |
+
|
135 |
+
### 1.2.1 ###
|
136 |
+
* Release date: 2016-02-29
|
137 |
+
* Fixed stupid error where the default user nicename wasn't being properly retrieved from the database. Sorry about that :(
|
138 |
+
* Unfortunately, some unicorns were lost during the development of this release, but they are a resilient creature.
|
139 |
+
|
140 |
+
### 1.2.0 ###
|
141 |
+
* Release date: 2016-02-01
|
142 |
+
* Added the ability to use forward slashes in the author base.
|
143 |
+
* Improved display on the settings page, and storing, of role slugs.
|
144 |
+
* 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).
|
145 |
+
* 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).
|
146 |
+
* Added ability to remove the front portion of author links.
|
147 |
+
* Accessibility improvements to the settings page.
|
148 |
+
|
149 |
+
### Full Changelog ###
|
150 |
+
* https://github.com/thebrandonallen/edit-author-slug/blob/master/CHANGELOG.md
|
edit-author-slug.php
CHANGED
@@ -7,9 +7,9 @@
|
|
7 |
* Author URI: https://github.com/thebrandonallen/
|
8 |
* Text Domain: edit-author-slug
|
9 |
* Domain Path: /languages
|
10 |
-
* Version: 1.8.
|
11 |
*
|
12 |
-
* Copyright (C) 2009-
|
13 |
*
|
14 |
* This program is free software; you can redistribute it and/or modify
|
15 |
* it under the terms of the GNU General Public License as published by
|
@@ -28,7 +28,7 @@
|
|
28 |
* @package Edit_Author_Slug
|
29 |
* @subpackage Main
|
30 |
* @author Brandon Allen
|
31 |
-
* @version 1.8.
|
32 |
*/
|
33 |
|
34 |
// Exit if accessed directly.
|
7 |
* Author URI: https://github.com/thebrandonallen/
|
8 |
* Text Domain: edit-author-slug
|
9 |
* Domain Path: /languages
|
10 |
+
* Version: 1.8.2
|
11 |
*
|
12 |
+
* Copyright (C) 2009-2021 Brandon Allen (https://github.com/thebrandonallen)
|
13 |
*
|
14 |
* This program is free software; you can redistribute it and/or modify
|
15 |
* it under the terms of the GNU General Public License as published by
|
28 |
* @package Edit_Author_Slug
|
29 |
* @subpackage Main
|
30 |
* @author Brandon Allen
|
31 |
+
* @version 1.8.2
|
32 |
*/
|
33 |
|
34 |
// Exit if accessed directly.
|
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.2 - 2021-06-01 5:31:07 AM 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
@@ -1,18 +1,18 @@
|
|
1 |
-
# Copyright (C) 2009-
|
2 |
# This file is distributed under the same license as the Edit Author Slug package.
|
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:
|
14 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
15 |
-
"X-Generator: WP-CLI 2.
|
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 |
|
1 |
+
# Copyright (C) 2009-2021 Brandon Allen
|
2 |
# This file is distributed under the same license as the Edit Author Slug package.
|
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.2\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-06-01T05:31:08+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 |
|
readme.txt
CHANGED
@@ -1,146 +1,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.6
|
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:
|
72 |
-
*
|
73 |
-
|
74 |
-
= 1.8.
|
75 |
-
* Release date: 2020-12-14
|
76 |
-
*
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
*
|
82 |
-
*
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
*
|
88 |
-
*
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
*
|
94 |
-
*
|
95 |
-
|
96 |
-
|
97 |
-
*
|
98 |
-
* Minimum
|
99 |
-
|
100 |
-
|
101 |
-
*
|
102 |
-
*
|
103 |
-
|
104 |
-
= 1.5.
|
105 |
-
* Release date: 2017-06-
|
106 |
-
*
|
107 |
-
|
108 |
-
= 1.5.
|
109 |
-
* Release date: 2017-
|
110 |
-
*
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
*
|
116 |
-
*
|
117 |
-
|
118 |
-
= 1.4.
|
119 |
-
* Release date: 2017-04-
|
120 |
-
*
|
121 |
-
|
122 |
-
|
123 |
-
*
|
124 |
-
|
125 |
-
|
126 |
-
*
|
127 |
-
*
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
*
|
133 |
-
*
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
*
|
138 |
-
*
|
139 |
-
|
140 |
-
|
141 |
-
*
|
142 |
-
* Added ability to
|
143 |
-
*
|
144 |
-
|
145 |
-
|
146 |
-
*
|
|
|
|
|
|
|
|
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
|
6 |
+
Requires PHP: 5.6.20
|
7 |
+
Stable tag: 1.8.2
|
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.2 =
|
71 |
+
* Release date: 2021-06-01
|
72 |
+
* Bumps "Tested up to" version to 5.7
|
73 |
+
|
74 |
+
= 1.8.1 =
|
75 |
+
* Release date: 2020-12-14
|
76 |
+
* Corrects settings page notice link to actually link to the current user's profile page.
|
77 |
+
|
78 |
+
= 1.8.0 =
|
79 |
+
* Release date: 2020-12-14
|
80 |
+
* Bumps "Tested up to" version to 5.6
|
81 |
+
* Adds a notice to the settings page reminding you that you can edit your author slug on your profile page.
|
82 |
+
* Drops support for IE 10 on the settings page.
|
83 |
+
|
84 |
+
= 1.7.0 =
|
85 |
+
* Release date: 2020-06-07
|
86 |
+
* Bumps the minimum required version to WordPress 4.9.
|
87 |
+
* Bumps "Tested up to" version to 5.4.1
|
88 |
+
* Fixes an error that may occur with some install of iThemes Security
|
89 |
+
|
90 |
+
= 1.6.1 =
|
91 |
+
* Release date: 2019-09-05
|
92 |
+
* 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.
|
93 |
+
* Don't show the options page if `ba_eas_can_edit_author_slug()` returns `false`.
|
94 |
+
* Bumps "Tested up to" version to 5.2.3
|
95 |
+
|
96 |
+
= 1.6.0 =
|
97 |
+
* Release date: 2018-10-11
|
98 |
+
* Minimum required WordPress version is now 4.7
|
99 |
+
* Settings page JS no longer depends on jQuery (switched to plain js)
|
100 |
+
* Add compatibility for iThemes Force Unique Nickname WordPress Tweak
|
101 |
+
* Add a hash string as an author slug option
|
102 |
+
* 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.
|
103 |
+
|
104 |
+
= 1.5.2 =
|
105 |
+
* Release date: 2017-06-21
|
106 |
+
* 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.
|
107 |
+
|
108 |
+
= 1.5.1 =
|
109 |
+
* Release date: 2017-06-02
|
110 |
+
* Fix PHP notice when manually updating a user profile. Props @mydigitalsauce.
|
111 |
+
|
112 |
+
= 1.5.0 =
|
113 |
+
* Release date: 2017-05-30
|
114 |
+
* Bumped minimum required WordPress version to 4.4.
|
115 |
+
* 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.
|
116 |
+
* This release is primarily an under-the-hood release with a number of optimizations and performance improvements.
|
117 |
+
|
118 |
+
= 1.4.1 =
|
119 |
+
* Release date: 2017-04-24
|
120 |
+
* Fix failing string replacement in bulk update message.
|
121 |
+
|
122 |
+
= 1.4.0 =
|
123 |
+
* Release date: 2017-04-04
|
124 |
+
* Lots of code cleanup to better adhere to WordPress Coding Standards.
|
125 |
+
* Improved performance of `ba_eas_sanitize_author_base()` by preventing unnecessary processing.
|
126 |
+
* Fixed an issue where the demo author permalink URL could have a double slash.
|
127 |
+
* Improvements to bulk update for sites with a large user base.
|
128 |
+
|
129 |
+
= 1.3.0 =
|
130 |
+
* Release date: 2017-01-25
|
131 |
+
* Fix a potential bug where a sanitized author base could end up with double forward slashes.
|
132 |
+
* Introduce the `%ba_eas_author_role%` permalink structure tag. This can be used to customize role-based author bases.
|
133 |
+
* Bonus: All alternative facts are now free!
|
134 |
+
|
135 |
+
= 1.2.1 =
|
136 |
+
* Release date: 2016-02-29
|
137 |
+
* Fixed stupid error where the default user nicename wasn't being properly retrieved from the database. Sorry about that :(
|
138 |
+
* Unfortunately, some unicorns were lost during the development of this release, but they are a resilient creature.
|
139 |
+
|
140 |
+
= 1.2.0 =
|
141 |
+
* Release date: 2016-02-01
|
142 |
+
* Added the ability to use forward slashes in the author base.
|
143 |
+
* Improved display on the settings page, and storing, of role slugs.
|
144 |
+
* 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).
|
145 |
+
* 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).
|
146 |
+
* Added ability to remove the front portion of author links.
|
147 |
+
* Accessibility improvements to the settings page.
|
148 |
+
|
149 |
+
= Full Changelog =
|
150 |
+
* https://github.com/thebrandonallen/edit-author-slug/blob/master/CHANGELOG.md
|