Edit Author Slug - Version 1.7.0

Version Description

  • Release date: 2020-06-07
  • Bumps the minimum required version to WordPress 4.9.
  • Bumps "Tested up to" version to 5.4.1
  • Fixes an error that may occur with some install of iThemes Security
Download this release

Release Info

Developer thebrandonallen
Plugin Icon 128x128 Edit Author Slug
Version 1.7.0
Comparing to
See all releases

Code changes from version 1.6.1 to 1.7.0

CHANGELOG.md CHANGED
@@ -1,15 +1,25 @@
1
- # Change Log #
2
  All notable changes to this project will be documented in this file.
3
 
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/).
5
 
6
- ## [1.6.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.6.1) - 2019-09-05 ##
 
 
 
 
 
 
 
 
 
 
7
  ### Changed
8
  * 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.
9
  * Don't show the options page if `ba_eas_can_edit_author_slug()` returns `false`. [GH-21]
10
  * Bumps "Tested up to" version to 5.2.3
11
 
12
- ## [1.6.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.6.0) - 2018-10-11 ##
13
  ### Added
14
  * Add compatibility for iThemes Force Unique Nickname WordPress Tweak
15
  * Add a hash string as an author slug option [GH-17]
@@ -21,15 +31,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
21
  ### Deprecated
22
  * 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.
23
 
24
- ## [1.5.2](https://github.com/thebrandonallen/edit-author-slug/tree/1.5.2) - 2017-06-21 ##
25
  ### Fixed
26
  * Fixed a regression where those using the default author based couldn't remove front unless they were also using role-based author bases. [GH-12]
27
 
28
- ## [1.5.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.5.1) - 2017-06-02 ##
29
  ### Fixed
30
  * Fixed a PHP notice when manually updating a user profile.
31
 
32
- ## [1.5.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.5.0) - 2017-05-30 ##
33
  ### Added
34
  * Added `CHANGELOG.md` file.
35
  * Introduce `ba_eas_nicename_exists()` to check if a nicename exists.
@@ -57,25 +67,25 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
57
  ### Removed
58
  * Options upgrading/back-compat for pre-0.9 installs was removed. [GH-8]
59
 
60
- ## [1.4.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.4.1) - 2017-04-24 ##
61
  * Fix failing string replacement in bulk update message.
62
 
63
- ## [1.4.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.4.0) - 2017-04-04 ##
64
  * Lots of code cleanup to better adhere to WordPress Coding Standards.
65
  * Improved performance of `ba_eas_sanitize_author_base()` by preventing unnecessary processing.
66
  * Fixed an issue where the demo author permalink URL could have a double slash.
67
  * Improvements to bulk update for sites with a large user base.
68
 
69
- ## [1.3.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.3.0) - 2017-01-25 ##
70
  * Fix a potential bug where a sanitized author base could end up with double forward slashes.
71
  * Introduce the `%ba_eas_author_role%` permalink structure tag. This can be used to customize role-based author bases.
72
  * Bonus: All alternative facts are now free!
73
 
74
- ## [1.2.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.2.1) - 2016-02-29 ##
75
  * Fixed stupid error where the default user nicename wasn't being properly retrieved from the database. Sorry about that :(
76
  * Unfortunately, some unicorns were lost during the development of this release, but they are a resilient creature.
77
 
78
- ## [1.2.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.2.0) - 2016-02-01 ##
79
  * Added the ability to use forward slashes in the author base.
80
  * Improved display on the settings page, and storing, of role slugs.
81
  * 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).
@@ -83,51 +93,51 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
83
  * Added ability to remove the front portion of author links.
84
  * Accessibility improvements to the settings page.
85
 
86
- ## [1.1.2](https://github.com/thebrandonallen/edit-author-slug/tree/1.1.2) - 2015-10-11 ##
87
  * Fix loading of minified JS in the admin.
88
 
89
- ## [1.1.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.1.1) - 2015-09-29 ##
90
  * Fix a few minor output escaping issues missed in the 1.1.0 release.
91
 
92
- ## [1.1.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.1.0) - 2015-09-29 ##
93
  * Added the ability to update all author slugs at once with the "Bulk Update" tool.
94
  * Greatly improved the checks and error messages when manually updating an author slug for a user.
95
  * Further accessibility improvements to match WP 4.3.
96
  * Improved validation of author slugs to better match that of WP.
97
 
98
- ## [1.0.6](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.6) - 2015-09-14 ##
99
  * Fix potential, although unlikely, persistent XSS vulnerability.
100
  * Prevent debug notice in admin.
101
  * Update heading tags to h1 to match WP 4.3.
102
 
103
- ### [1.0.5.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.5.1) - 2015-08-04 ###
104
  * Identical to 1.0.5, which failed to commit properly.
105
 
106
- ## [1.0.5](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.5) - 2015-08-04 ##
107
  * Add WP_User object as a parameter passed to the `ba_eas_show_user_nicename_options_list` filter
108
  * Add Japanese translation files.
109
  * Fixed possible (although unlikely) cache invalidation issue
110
  * Minor code improvements and optimizations.
111
 
112
- ## [1.0.4](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.4) - 2015-04-21 ##
113
  * Improve upgrade routine for older installs
114
  * Improve output escaping
115
  * Various minor fixes and improvements
116
 
117
- ## [1.0.3](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.3) - 2014-10-08 ##
118
  I swear I tested this! :(
119
 
120
  * Fix custom roles slugs not saving
121
 
122
- ## [1.0.2](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.2) - 2014-09-04 ##
123
  * A number of localization fixes and improvements
124
  * Role slug improvements
125
  * Temporary, semi work-around for Co-Authors Plus [https://github.com/Automattic/Co-Authors-Plus/pull/204]
126
 
127
- ## [1.0.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.1) - 2014-04-17 ##
128
  * Fix possible syntax error when updating a profile (https://wordpress.org/support/topic/undefined-property-error-1)
129
 
130
- ## [1.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.0) - 2014-02-26 ##
131
  * Added ability to do role-based author bases
132
  * Added ability to use role-based author templates
133
  * Moderate code refactoring
@@ -135,49 +145,49 @@ I swear I tested this! :(
135
  * Add "nickname" as option for auto-update
136
  * First pass at unit test (only checks if the plugin is installed, for now)
137
 
138
- ## [0.9.6](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.6) - 2013-12-18 ##
139
  * 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.
140
 
141
- ## [0.9.5](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.5) - 2013-04-29 ##
142
  * Fixed instances where the Author Base wouldn't change, or would result in a 404
143
 
144
- ## [0.9.4](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.4) - 2013-01-31 ##
145
  * Update readme references to plugin settings
146
  * Fix some copy pasta in settings
147
  * Update screenshots
148
 
149
- ## [0.9.3](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.3) - 2013-01-31 ##
150
  * Quickly caught a few things I missed, so this release was skipped. See 0.9.4 for changes
151
 
152
- ## [0.9.2](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.2) - 2012-06-25 ##
153
  * Fix issue where any profile information other than the Author Slug could not be updated
154
  * Minor code improvement
155
 
156
- ## [0.9.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.1) - 2012-06-14 ##
157
  * Add 'Settings' link to plugins list table
158
 
159
- ## [0.9](https://github.com/thebrandonallen/edit-author-slug/tree/0.9) - 2012-06-13 ##
160
  * Allow Author Slug to be automatically created/updated based on a defined structure
161
  * Switched to using the Settings API, which also means that all options moved to the Settings > Edit Author Slug page
162
  * Various code improvements/optimizations
163
 
164
- ## [0.8.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.8.1) - 2012-02-14 ##
165
  * Fix a bug that prevented non-admin users from updating their profile
166
 
167
- ## [0.8](https://github.com/thebrandonallen/edit-author-slug/tree/0.8) - 2011-12-15 ##
168
  * Drastically improved error handling and feedback for author slug editing.
169
  * Restore duplicate author slug check as old method could alter the slug without any sort of warning.
170
  * Further improve the logic for flushing rewrite rules.
171
  * 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.
172
  * Add message in plugins list warning users of WP less than 3.2 that 0.8 is the last update they'll receive.
173
 
174
- ## [0.7.2](https://github.com/thebrandonallen/edit-author-slug/tree/0.7.2) - 2011-02-13 ##
175
  * Remove overzealous cap check.
176
 
177
- ## [0.7.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.7.1) - 2011-02-13 ##
178
  * Fix some unfortunate errors I missed before tagging 0.7.
179
 
180
- ## [0.7](https://github.com/thebrandonallen/edit-author-slug/tree/0.7) - 2011-02-13 ##
181
  * Significant code refactoring.
182
  * Added custom capability to give site admins the ability to add author slug access to other roles.
183
  * Improvements/optimizations to code logic.
@@ -185,55 +195,55 @@ I swear I tested this! :(
185
  * Removed filter added in 0.6 as it was messy. It's much easier to achieve the same result without the plugin.
186
  * Got rid of wp_die() statement on duplicate author slugs in favor of WP's built-in duplicate author slug method.
187
 
188
- ## [0.6.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.6.1) - 2010-12-14 ##
189
  * Added Dutch translation.
190
  * Don't hard code the languages folder path.
191
  * Improve class check/initialization.
192
 
193
- ## [0.6](https://github.com/thebrandonallen/edit-author-slug/tree/0.6) - 2010-11-03 ##
194
  * Some code cleanup.
195
  * More security hardening.
196
  * 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/).
197
  * Flush rewrite rules only when necessary instead of every page load.
198
 
199
- ## [0.5](https://github.com/thebrandonallen/edit-author-slug/tree/0.5) - 2010-06-22 ##
200
  * Added 'Author Slug' column to Users > Authors & Users (Users > Users in 3.0) page.
201
  * Ended support for the WP 2.8 branch. Most likely still works, but I will not support it.
202
  * Various bug fixes.
203
 
204
- ## [0.4](https://github.com/thebrandonallen/edit-author-slug/tree/0.4) - 2010-05-18 ##
205
  * Added ability to change the Author Base.
206
  * Updated documentation.
207
  * Added some extra security via WP esc_* functions.
208
  * Added Belorussian translation.
209
 
210
- ## [0.3.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.3.1) - 2010-03-21 ##
211
  * Added Hebrew Translation.
212
 
213
- ## [0.3](https://github.com/thebrandonallen/edit-author-slug/tree/0.3) - 2010-03-21 ##
214
  * Now localization friendly.
215
 
216
- ## [0.2.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.2.1) - 2010-02-15 ##
217
  * Fixed a bug that prevented updating a user if the author slug did not change.
218
 
219
- ## [0.2](https://github.com/thebrandonallen/edit-author-slug/tree/0.2) - 2010-01-27 ##
220
  * Added a check to avoid duplicate slugs.
221
  * Properly sanitize slug before comparison and database insertion.
222
  * Updated plugin URI.
223
 
224
- ## [0.1.4](https://github.com/thebrandonallen/edit-author-slug/tree/0.1.4) - 2010-01-18 ##
225
  * Update tags to reflect WordPress 2.9.1 compatibility.
226
  * Update link to plugin homepage.
227
 
228
- ## [0.1.3](https://github.com/thebrandonallen/edit-author-slug/tree/0.1.3) - 2009-12-21 ##
229
  * Update tags to reflect WordPress 2.9 compatibility.
230
 
231
- ## [0.1.2](https://github.com/thebrandonallen/edit-author-slug/tree/0.1.2) - 2009-11-28 ##
232
  * Fix version number issues.
233
 
234
- ## [0.1.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.1.1) - 2009-11-27 ##
235
  * Remove extra debug functions left behind.
236
  * Add screenshot.
237
 
238
- ## [0.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.1) - 2009-11-27 ##
239
  * Initial release.
1
+ # Change Log
2
  All notable changes to this project will be documented in this file.
3
 
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/).
5
 
6
+ ## [Unreleased]
7
+
8
+ ## [1.7.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.7.0) - 2020-06-07 ##
9
+ ### Changed
10
+ * Bumps the minimum required version to WordPress 4.9.
11
+ * Bumps "Tested up to" version to 5.4.1
12
+
13
+ ### Fixed
14
+ * Fixes an error that may occur with some install of iThemes Security
15
+
16
+ ## [1.6.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.6.1) - 2019-09-05
17
  ### Changed
18
  * 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.
19
  * Don't show the options page if `ba_eas_can_edit_author_slug()` returns `false`. [GH-21]
20
  * Bumps "Tested up to" version to 5.2.3
21
 
22
+ ## [1.6.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.6.0) - 2018-10-11
23
  ### Added
24
  * Add compatibility for iThemes Force Unique Nickname WordPress Tweak
25
  * Add a hash string as an author slug option [GH-17]
31
  ### Deprecated
32
  * 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.
33
 
34
+ ## [1.5.2](https://github.com/thebrandonallen/edit-author-slug/tree/1.5.2) - 2017-06-21
35
  ### Fixed
36
  * Fixed a regression where those using the default author based couldn't remove front unless they were also using role-based author bases. [GH-12]
37
 
38
+ ## [1.5.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.5.1) - 2017-06-02
39
  ### Fixed
40
  * Fixed a PHP notice when manually updating a user profile.
41
 
42
+ ## [1.5.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.5.0) - 2017-05-30
43
  ### Added
44
  * Added `CHANGELOG.md` file.
45
  * Introduce `ba_eas_nicename_exists()` to check if a nicename exists.
67
  ### Removed
68
  * Options upgrading/back-compat for pre-0.9 installs was removed. [GH-8]
69
 
70
+ ## [1.4.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.4.1) - 2017-04-24
71
  * Fix failing string replacement in bulk update message.
72
 
73
+ ## [1.4.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.4.0) - 2017-04-04
74
  * Lots of code cleanup to better adhere to WordPress Coding Standards.
75
  * Improved performance of `ba_eas_sanitize_author_base()` by preventing unnecessary processing.
76
  * Fixed an issue where the demo author permalink URL could have a double slash.
77
  * Improvements to bulk update for sites with a large user base.
78
 
79
+ ## [1.3.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.3.0) - 2017-01-25
80
  * Fix a potential bug where a sanitized author base could end up with double forward slashes.
81
  * Introduce the `%ba_eas_author_role%` permalink structure tag. This can be used to customize role-based author bases.
82
  * Bonus: All alternative facts are now free!
83
 
84
+ ## [1.2.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.2.1) - 2016-02-29
85
  * Fixed stupid error where the default user nicename wasn't being properly retrieved from the database. Sorry about that :(
86
  * Unfortunately, some unicorns were lost during the development of this release, but they are a resilient creature.
87
 
88
+ ## [1.2.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.2.0) - 2016-02-01
89
  * Added the ability to use forward slashes in the author base.
90
  * Improved display on the settings page, and storing, of role slugs.
91
  * 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).
93
  * Added ability to remove the front portion of author links.
94
  * Accessibility improvements to the settings page.
95
 
96
+ ## [1.1.2](https://github.com/thebrandonallen/edit-author-slug/tree/1.1.2) - 2015-10-11
97
  * Fix loading of minified JS in the admin.
98
 
99
+ ## [1.1.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.1.1) - 2015-09-29
100
  * Fix a few minor output escaping issues missed in the 1.1.0 release.
101
 
102
+ ## [1.1.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.1.0) - 2015-09-29
103
  * Added the ability to update all author slugs at once with the "Bulk Update" tool.
104
  * Greatly improved the checks and error messages when manually updating an author slug for a user.
105
  * Further accessibility improvements to match WP 4.3.
106
  * Improved validation of author slugs to better match that of WP.
107
 
108
+ ## [1.0.6](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.6) - 2015-09-14
109
  * Fix potential, although unlikely, persistent XSS vulnerability.
110
  * Prevent debug notice in admin.
111
  * Update heading tags to h1 to match WP 4.3.
112
 
113
+ ### [1.0.5.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.5.1) - 2015-08-04
114
  * Identical to 1.0.5, which failed to commit properly.
115
 
116
+ ## [1.0.5](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.5) - 2015-08-04
117
  * Add WP_User object as a parameter passed to the `ba_eas_show_user_nicename_options_list` filter
118
  * Add Japanese translation files.
119
  * Fixed possible (although unlikely) cache invalidation issue
120
  * Minor code improvements and optimizations.
121
 
122
+ ## [1.0.4](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.4) - 2015-04-21
123
  * Improve upgrade routine for older installs
124
  * Improve output escaping
125
  * Various minor fixes and improvements
126
 
127
+ ## [1.0.3](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.3) - 2014-10-08
128
  I swear I tested this! :(
129
 
130
  * Fix custom roles slugs not saving
131
 
132
+ ## [1.0.2](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.2) - 2014-09-04
133
  * A number of localization fixes and improvements
134
  * Role slug improvements
135
  * Temporary, semi work-around for Co-Authors Plus [https://github.com/Automattic/Co-Authors-Plus/pull/204]
136
 
137
+ ## [1.0.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.1) - 2014-04-17
138
  * Fix possible syntax error when updating a profile (https://wordpress.org/support/topic/undefined-property-error-1)
139
 
140
+ ## [1.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.0) - 2014-02-26
141
  * Added ability to do role-based author bases
142
  * Added ability to use role-based author templates
143
  * Moderate code refactoring
145
  * Add "nickname" as option for auto-update
146
  * First pass at unit test (only checks if the plugin is installed, for now)
147
 
148
+ ## [0.9.6](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.6) - 2013-12-18
149
  * 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.
150
 
151
+ ## [0.9.5](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.5) - 2013-04-29
152
  * Fixed instances where the Author Base wouldn't change, or would result in a 404
153
 
154
+ ## [0.9.4](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.4) - 2013-01-31
155
  * Update readme references to plugin settings
156
  * Fix some copy pasta in settings
157
  * Update screenshots
158
 
159
+ ## [0.9.3](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.3) - 2013-01-31
160
  * Quickly caught a few things I missed, so this release was skipped. See 0.9.4 for changes
161
 
162
+ ## [0.9.2](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.2) - 2012-06-25
163
  * Fix issue where any profile information other than the Author Slug could not be updated
164
  * Minor code improvement
165
 
166
+ ## [0.9.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.1) - 2012-06-14
167
  * Add 'Settings' link to plugins list table
168
 
169
+ ## [0.9](https://github.com/thebrandonallen/edit-author-slug/tree/0.9) - 2012-06-13
170
  * Allow Author Slug to be automatically created/updated based on a defined structure
171
  * Switched to using the Settings API, which also means that all options moved to the Settings > Edit Author Slug page
172
  * Various code improvements/optimizations
173
 
174
+ ## [0.8.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.8.1) - 2012-02-14
175
  * Fix a bug that prevented non-admin users from updating their profile
176
 
177
+ ## [0.8](https://github.com/thebrandonallen/edit-author-slug/tree/0.8) - 2011-12-15
178
  * Drastically improved error handling and feedback for author slug editing.
179
  * Restore duplicate author slug check as old method could alter the slug without any sort of warning.
180
  * Further improve the logic for flushing rewrite rules.
181
  * 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.
182
  * Add message in plugins list warning users of WP less than 3.2 that 0.8 is the last update they'll receive.
183
 
184
+ ## [0.7.2](https://github.com/thebrandonallen/edit-author-slug/tree/0.7.2) - 2011-02-13
185
  * Remove overzealous cap check.
186
 
187
+ ## [0.7.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.7.1) - 2011-02-13
188
  * Fix some unfortunate errors I missed before tagging 0.7.
189
 
190
+ ## [0.7](https://github.com/thebrandonallen/edit-author-slug/tree/0.7) - 2011-02-13
191
  * Significant code refactoring.
192
  * Added custom capability to give site admins the ability to add author slug access to other roles.
193
  * Improvements/optimizations to code logic.
195
  * Removed filter added in 0.6 as it was messy. It's much easier to achieve the same result without the plugin.
196
  * Got rid of wp_die() statement on duplicate author slugs in favor of WP's built-in duplicate author slug method.
197
 
198
+ ## [0.6.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.6.1) - 2010-12-14
199
  * Added Dutch translation.
200
  * Don't hard code the languages folder path.
201
  * Improve class check/initialization.
202
 
203
+ ## [0.6](https://github.com/thebrandonallen/edit-author-slug/tree/0.6) - 2010-11-03
204
  * Some code cleanup.
205
  * More security hardening.
206
  * 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/).
207
  * Flush rewrite rules only when necessary instead of every page load.
208
 
209
+ ## [0.5](https://github.com/thebrandonallen/edit-author-slug/tree/0.5) - 2010-06-22
210
  * Added 'Author Slug' column to Users > Authors & Users (Users > Users in 3.0) page.
211
  * Ended support for the WP 2.8 branch. Most likely still works, but I will not support it.
212
  * Various bug fixes.
213
 
214
+ ## [0.4](https://github.com/thebrandonallen/edit-author-slug/tree/0.4) - 2010-05-18
215
  * Added ability to change the Author Base.
216
  * Updated documentation.
217
  * Added some extra security via WP esc_* functions.
218
  * Added Belorussian translation.
219
 
220
+ ## [0.3.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.3.1) - 2010-03-21
221
  * Added Hebrew Translation.
222
 
223
+ ## [0.3](https://github.com/thebrandonallen/edit-author-slug/tree/0.3) - 2010-03-21
224
  * Now localization friendly.
225
 
226
+ ## [0.2.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.2.1) - 2010-02-15
227
  * Fixed a bug that prevented updating a user if the author slug did not change.
228
 
229
+ ## [0.2](https://github.com/thebrandonallen/edit-author-slug/tree/0.2) - 2010-01-27
230
  * Added a check to avoid duplicate slugs.
231
  * Properly sanitize slug before comparison and database insertion.
232
  * Updated plugin URI.
233
 
234
+ ## [0.1.4](https://github.com/thebrandonallen/edit-author-slug/tree/0.1.4) - 2010-01-18
235
  * Update tags to reflect WordPress 2.9.1 compatibility.
236
  * Update link to plugin homepage.
237
 
238
+ ## [0.1.3](https://github.com/thebrandonallen/edit-author-slug/tree/0.1.3) - 2009-12-21
239
  * Update tags to reflect WordPress 2.9 compatibility.
240
 
241
+ ## [0.1.2](https://github.com/thebrandonallen/edit-author-slug/tree/0.1.2) - 2009-11-28
242
  * Fix version number issues.
243
 
244
+ ## [0.1.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.1.1) - 2009-11-27
245
  * Remove extra debug functions left behind.
246
  * Add screenshot.
247
 
248
+ ## [0.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.1) - 2009-11-27
249
  * Initial release.
README.md CHANGED
@@ -1,10 +1,10 @@
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.7
5
- **Tested up to:** 5.2.3
6
- **Requires PHP:** 5.3
7
- **Stable tag:** 1.6.1
8
  **License:** GPLv2 or later
9
  **License URI:** https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10
 
@@ -67,6 +67,12 @@ If this doesn't work, make sure you don't have any slug conflicts from other pos
67
 
68
  ## Changelog ##
69
 
 
 
 
 
 
 
70
  ### 1.6.1 ###
71
  * Release date: 2019-09-05
72
  * 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.
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.4.1
6
+ **Requires PHP:** 5.6.20
7
+ **Stable tag:** 1.7.0
8
  **License:** GPLv2 or later
9
  **License URI:** https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10
 
67
 
68
  ## Changelog ##
69
 
70
+ ### 1.7.0 ###
71
+ * Release date: 2020-06-07
72
+ * Bumps the minimum required version to WordPress 4.9.
73
+ * Bumps "Tested up to" version to 5.4.1
74
+ * Fixes an error that may occur with some install of iThemes Security
75
+
76
  ### 1.6.1 ###
77
  * Release date: 2019-09-05
78
  * 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.
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.6.1
11
  *
12
- * Copyright (C) 2009-2019 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,7 +28,7 @@
28
  * @package Edit_Author_Slug
29
  * @subpackage Main
30
  * @author Brandon Allen
31
- * @version 1.6.1
32
  */
33
 
34
  // Exit if accessed directly.
@@ -88,5 +88,22 @@ function ba_eas() {
88
  return BA_Edit_Author_Slug::instance();
89
  }
90
 
91
- ba_eas();
92
- ba_eas()->setup_actions();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  * Author URI: https://github.com/thebrandonallen/
8
  * Text Domain: edit-author-slug
9
  * Domain Path: /languages
10
+ * Version: 1.7.0
11
  *
12
+ * Copyright (C) 2009-2020 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.7.0
32
  */
33
 
34
  // Exit if accessed directly.
88
  return BA_Edit_Author_Slug::instance();
89
  }
90
 
91
+ /**
92
+ * Initialize Edit Author Slug.
93
+ *
94
+ * @since 1.7.0
95
+ */
96
+ function ba_eas_init() {
97
+
98
+ // Initialize the plugin.
99
+ $eas = ba_eas();
100
+ $eas->setup_actions();
101
+
102
+ /**
103
+ * Fires after Edit Author Slug has been loaded and initialized.
104
+ *
105
+ * @since 1.7.0
106
+ */
107
+ do_action( 'ba_eas_loaded' );
108
+ }
109
+ add_action( 'plugins_loaded', 'ba_eas_init' );
includes/classes/class-ba-edit-author-slug.php CHANGED
@@ -311,7 +311,7 @@ if ( ! class_exists( 'BA_Edit_Author_Slug' ) ) :
311
  add_action( 'init', array( $this, 'add_rewrite_tags' ), 20 );
312
 
313
  // Localize.
314
- add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
315
  }
316
 
317
  /** Public Methods ****************************************************/
@@ -417,7 +417,7 @@ if ( ! class_exists( 'BA_Edit_Author_Slug' ) ) :
417
  public function is_itsec_force_unique_nickname() {
418
  $retval = false;
419
 
420
- if ( class_exists( 'ITSEC_Modules' ) ) {
421
  $tweaks = ITSEC_Modules::get_settings( 'wordpress-tweaks' );
422
  $retval = $tweaks['force_unique_nicename'];
423
  }
311
  add_action( 'init', array( $this, 'add_rewrite_tags' ), 20 );
312
 
313
  // Localize.
314
+ add_action( 'ba_eas_loaded', array( $this, 'load_textdomain' ) );
315
  }
316
 
317
  /** Public Methods ****************************************************/
417
  public function is_itsec_force_unique_nickname() {
418
  $retval = false;
419
 
420
+ if ( method_exists( 'ITSEC_Modules', 'get_settings' ) ) {
421
  $tweaks = ITSEC_Modules::get_settings( 'wordpress-tweaks' );
422
  $retval = $tweaks['force_unique_nicename'];
423
  }
includes/deprecated.php CHANGED
@@ -101,6 +101,6 @@ function ba_eas_get_editable_roles() {
101
  * @param object $old_user_data The WP_User object.
102
  * @param string $new_nicename The new user nicename.
103
  */
104
- function ba_eas_update_nicename_cache( $user_id = 0, $old_user_data = '', $new_nicename = '' ) {
105
  _deprecated_function( __FUNCTION__, '1.5.0', 'wp_cache_delete( $old_nicename, \'userslugs\' );' );
106
  }
101
  * @param object $old_user_data The WP_User object.
102
  * @param string $new_nicename The new user nicename.
103
  */
104
+ function ba_eas_update_nicename_cache( $user_id = 0, $old_user_data = '', $new_nicename = '' ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed
105
  _deprecated_function( __FUNCTION__, '1.5.0', 'wp_cache_delete( $old_nicename, \'userslugs\' );' );
106
  }
includes/functions.php CHANGED
@@ -244,7 +244,7 @@ function ba_eas_auto_update_user_nicename_bulk( $do_bulk = false ) {
244
  END
245
  {$where_sql}
246
  ";
247
- $updated = $wpdb->query( $sql ); // WPCS: unprepared SQL ok.
248
  }
249
 
250
  // Unset some vars to help with memory.
@@ -642,7 +642,8 @@ function ba_eas_author_link( $link = '', $user_id = 0 ) {
642
  $role = ba_eas_get_user_role( $user->roles, $user_id );
643
 
644
  // Make sure we have a valid slug.
645
- $slug = empty( ba_eas()->role_slugs[ $role ]['slug'] ) ? ba_eas()->author_base : ba_eas()->role_slugs[ $role ]['slug'];
 
646
 
647
  // Add the role slug to the link.
648
  $link = str_replace( '%ba_eas_author_role%', $slug, $link );
@@ -696,9 +697,10 @@ function ba_eas_template_include( $template ) {
696
  $role = ba_eas_get_user_role( $author->roles, $author->ID );
697
 
698
  // Get the role slug.
 
699
  $role_slug = '';
700
- if ( ! empty( ba_eas()->role_slugs[ $role ]['slug'] ) ) {
701
- $role_slug = ba_eas()->role_slugs[ $role ]['slug'];
702
  }
703
 
704
  // Set the templates array.
244
  END
245
  {$where_sql}
246
  ";
247
+ $updated = $wpdb->query( $sql ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- This is actually prepared above.
248
  }
249
 
250
  // Unset some vars to help with memory.
642
  $role = ba_eas_get_user_role( $user->roles, $user_id );
643
 
644
  // Make sure we have a valid slug.
645
+ $slug = isset( ba_eas()->role_slugs[ $role ]['slug'] ) ? ba_eas()->role_slugs[ $role ]['slug'] : '';
646
+ $slug = empty( $slug ) ? ba_eas()->author_base : $slug;
647
 
648
  // Add the role slug to the link.
649
  $link = str_replace( '%ba_eas_author_role%', $slug, $link );
697
  $role = ba_eas_get_user_role( $author->roles, $author->ID );
698
 
699
  // Get the role slug.
700
+ $slug = isset( ba_eas()->role_slugs[ $role ]['slug'] ) ? ba_eas()->role_slugs[ $role ]['slug'] : '';
701
  $role_slug = '';
702
+ if ( ! empty( $slug ) ) {
703
+ $role_slug = $slug;
704
  }
705
 
706
  // Set the templates array.
js/edit-author-slug.js CHANGED
@@ -3,7 +3,9 @@
3
 
4
  // Toggle the .hidden class.
5
  toggleHidden = function( el ) {
6
- el.classList.toggle( 'hidden' );
 
 
7
  };
8
 
9
  // Run our code after the DOM is loaded.
3
 
4
  // Toggle the .hidden class.
5
  toggleHidden = function( el ) {
6
+ if (el && Object.prototype.hasOwnProperty.call(el, 'classList')) {
7
+ el.classList.toggle( 'hidden' );
8
+ }
9
  };
10
 
11
  // Run our code after the DOM is loaded.
js/edit-author-slug.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! edit-author-slug - v1.6.1 - 2019-09-05 5:58:43 AM UTC - https://github.com/thebrandonallen/edit-author-slug/ */
2
- !function(){var c;c=function(e){e.classList.toggle("hidden")},document.addEventListener("DOMContentLoaded",function(){var t=document.querySelector('input[name="ba_eas_author_slug_custom"]'),e=document.querySelector(".eas-demo-author-base-front"),n=document.querySelector('input[name="_ba_eas_remove_front"]');n&&(n.checked&&c(e),n.addEventListener("click",function(){c(e)})),document.querySelectorAll('input[class="eas-checkbox"]').forEach(function(e){var t=e.parentNode.parentNode.nextElementSibling;e.checked||c(t),e.addEventListener("click",function(){c(t)})}),document.querySelectorAll('input[name="ba_eas_author_slug"]').forEach(function(e){e.addEventListener("click",function(){e.classList.contains("eas-author-slug-custom-radio")||(t.value=e.value)})}),t&&t.addEventListener("focus",function(){document.querySelector(".eas-author-slug-custom-radio").checked="checked"}),document.querySelectorAll("select").forEach(function(e){e.addEventListener("change",function(e){var t=e.target.nextElementSibling;t&&t.classList.contains("eas-author-slug-select-error")&&c(t)})})})}();
1
+ /*! edit-author-slug - v1.7.0 - 2020-06-08 3:21:44 AM UTC - https://github.com/thebrandonallen/edit-author-slug/ */
2
+ !function(){var e;e=function(e){e&&Object.prototype.hasOwnProperty.call(e,"classList")&&e.classList.toggle("hidden")},document.addEventListener("DOMContentLoaded",(function(){var t=document.querySelector('input[name="ba_eas_author_slug_custom"]'),n=document.querySelector(".eas-demo-author-base-front"),c=document.querySelector('input[name="_ba_eas_remove_front"]');c&&(c.checked&&e(n),c.addEventListener("click",(function(){e(n)}))),document.querySelectorAll('input[class="eas-checkbox"]').forEach((function(t){var n=t.parentNode.parentNode.nextElementSibling;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(){e.classList.contains("eas-author-slug-custom-radio")||(t.value=e.value)}))})),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){var n=t.target.nextElementSibling;n&&n.classList.contains("eas-author-slug-select-error")&&e(n)}))}))}))}();
languages/edit-author-slug.pot CHANGED
@@ -1,16 +1,16 @@
1
- # Copyright (C) 2009-2019 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.6.1\n"
7
  "Report-Msgid-Bugs-To: "
8
  "https://github.com/thebrandonallen/edit-author-slug/issues\n"
9
- "POT-Creation-Date: 2019-09-05 05:58:44+00:00\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=utf-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
14
  "Last-Translator: BRANDON ALLEN <plugins@brandonallen.me>\n"
15
  "Language-Team: ENGLISH <plugins@brandonallen.me>\n"
16
  "Language: en\n"
1
+ # Copyright (C) 2009-2020 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.7.0\n"
7
  "Report-Msgid-Bugs-To: "
8
  "https://github.com/thebrandonallen/edit-author-slug/issues\n"
9
+ "POT-Creation-Date: 2020-06-08 03:21:48+00:00\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=utf-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n"
14
  "Last-Translator: BRANDON ALLEN <plugins@brandonallen.me>\n"
15
  "Language-Team: ENGLISH <plugins@brandonallen.me>\n"
16
  "Language: en\n"
readme.txt CHANGED
@@ -1,130 +1,136 @@
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.7
5
- Tested up to: 5.2.3
6
- Requires PHP: 5.3
7
- Stable tag: 1.6.1
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.6.1 =
71
- * Release date: 2019-09-05
72
- * 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.
73
- * Don't show the options page if `ba_eas_can_edit_author_slug()` returns `false`.
74
- * Bumps "Tested up to" version to 5.2.3
75
-
76
- = 1.6.0 =
77
- * Release date: 2018-10-11
78
- * Minimum required WordPress version is now 4.7
79
- * Settings page JS no longer depends on jQuery (switched to plain js)
80
- * Add compatibility for iThemes Force Unique Nickname WordPress Tweak
81
- * Add a hash string as an author slug option
82
- * 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.
83
-
84
- = 1.5.2 =
85
- * Release date: 2017-06-21
86
- * 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.
87
-
88
- = 1.5.1 =
89
- * Release date: 2017-06-02
90
- * Fix PHP notice when manually updating a user profile. Props @mydigitalsauce.
91
-
92
- = 1.5.0 =
93
- * Release date: 2017-05-30
94
- * Bumped minimum required WordPress version to 4.4.
95
- * 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.
96
- * This release is primarily an under-the-hood release with a number of optimizations and performance improvements.
97
-
98
- = 1.4.1 =
99
- * Release date: 2017-04-24
100
- * Fix failing string replacement in bulk update message.
101
-
102
- = 1.4.0 =
103
- * Release date: 2017-04-04
104
- * Lots of code cleanup to better adhere to WordPress Coding Standards.
105
- * Improved performance of `ba_eas_sanitize_author_base()` by preventing unnecessary processing.
106
- * Fixed an issue where the demo author permalink URL could have a double slash.
107
- * Improvements to bulk update for sites with a large user base.
108
-
109
- = 1.3.0 =
110
- * Release date: 2017-01-25
111
- * Fix a potential bug where a sanitized author base could end up with double forward slashes.
112
- * Introduce the `%ba_eas_author_role%` permalink structure tag. This can be used to customize role-based author bases.
113
- * Bonus: All alternative facts are now free!
114
-
115
- = 1.2.1 =
116
- * Release date: 2016-02-29
117
- * Fixed stupid error where the default user nicename wasn't being properly retrieved from the database. Sorry about that :(
118
- * Unfortunately, some unicorns were lost during the development of this release, but they are a resilient creature.
119
-
120
- = 1.2.0 =
121
- * Release date: 2016-02-01
122
- * Added the ability to use forward slashes in the author base.
123
- * Improved display on the settings page, and storing, of role slugs.
124
- * 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).
125
- * 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).
126
- * Added ability to remove the front portion of author links.
127
- * Accessibility improvements to the settings page.
128
-
129
- = Full Changelog =
130
- * https://github.com/thebrandonallen/edit-author-slug/blob/master/CHANGELOG.md
 
 
 
 
 
 
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.4.1
6
+ Requires PHP: 5.6.20
7
+ Stable tag: 1.7.0
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.7.0 =
71
+ * Release date: 2020-06-07
72
+ * Bumps the minimum required version to WordPress 4.9.
73
+ * Bumps "Tested up to" version to 5.4.1
74
+ * Fixes an error that may occur with some install of iThemes Security
75
+
76
+ = 1.6.1 =
77
+ * Release date: 2019-09-05
78
+ * 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.
79
+ * Don't show the options page if `ba_eas_can_edit_author_slug()` returns `false`.
80
+ * Bumps "Tested up to" version to 5.2.3
81
+
82
+ = 1.6.0 =
83
+ * Release date: 2018-10-11
84
+ * Minimum required WordPress version is now 4.7
85
+ * Settings page JS no longer depends on jQuery (switched to plain js)
86
+ * Add compatibility for iThemes Force Unique Nickname WordPress Tweak
87
+ * Add a hash string as an author slug option
88
+ * 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.
89
+
90
+ = 1.5.2 =
91
+ * Release date: 2017-06-21
92
+ * 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.
93
+
94
+ = 1.5.1 =
95
+ * Release date: 2017-06-02
96
+ * Fix PHP notice when manually updating a user profile. Props @mydigitalsauce.
97
+
98
+ = 1.5.0 =
99
+ * Release date: 2017-05-30
100
+ * Bumped minimum required WordPress version to 4.4.
101
+ * 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.
102
+ * This release is primarily an under-the-hood release with a number of optimizations and performance improvements.
103
+
104
+ = 1.4.1 =
105
+ * Release date: 2017-04-24
106
+ * Fix failing string replacement in bulk update message.
107
+
108
+ = 1.4.0 =
109
+ * Release date: 2017-04-04
110
+ * Lots of code cleanup to better adhere to WordPress Coding Standards.
111
+ * Improved performance of `ba_eas_sanitize_author_base()` by preventing unnecessary processing.
112
+ * Fixed an issue where the demo author permalink URL could have a double slash.
113
+ * Improvements to bulk update for sites with a large user base.
114
+
115
+ = 1.3.0 =
116
+ * Release date: 2017-01-25
117
+ * Fix a potential bug where a sanitized author base could end up with double forward slashes.
118
+ * Introduce the `%ba_eas_author_role%` permalink structure tag. This can be used to customize role-based author bases.
119
+ * Bonus: All alternative facts are now free!
120
+
121
+ = 1.2.1 =
122
+ * Release date: 2016-02-29
123
+ * Fixed stupid error where the default user nicename wasn't being properly retrieved from the database. Sorry about that :(
124
+ * Unfortunately, some unicorns were lost during the development of this release, but they are a resilient creature.
125
+
126
+ = 1.2.0 =
127
+ * Release date: 2016-02-01
128
+ * Added the ability to use forward slashes in the author base.
129
+ * Improved display on the settings page, and storing, of role slugs.
130
+ * 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).
131
+ * 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).
132
+ * Added ability to remove the front portion of author links.
133
+ * Accessibility improvements to the settings page.
134
+
135
+ = Full Changelog =
136
+ * https://github.com/thebrandonallen/edit-author-slug/blob/master/CHANGELOG.md