HELLO v3!!!

This commit is contained in:
Ryan Dewhurst
2018-09-26 21:12:01 +02:00
parent 28b9c15256
commit d268a86795
1871 changed files with 988118 additions and 0 deletions

View File

@@ -0,0 +1,221 @@
# Change Log #
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/).
## [1.5.2](https://github.com/thebrandonallen/edit-author-slug/tree/1.5.1) - 2017-06-21 ##
### Fixed
* 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]
## [1.5.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.5.1) - 2017-06-02 ##
### Fixed
* Fixed a PHP notice when manually updating a user profile.
## [1.5.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.5.0) - 2017-05-30 ##
### Added
* Added `CHANGELOG.md` file.
* Introduce `ba_eas_nicename_exists()` to check if a nicename exists.
* Added `LICENSE` file.
* Added `BA_Edit_Author_Slug::VERSION` & `BA_Edit_Author_Slug::DB_VERSION` class constants.
### Changed
* The plugin bootstrap was refactored, and BA_Edit_Author_Slug was moved into `includes/classes/class-ba-edit-author-slug.php`.
* Deprecated functions were moved into `includes/deprecated.php`.
* `ba_eas_can_edit_author_slug()` no longer checks `is_super_admin()`.
* `ba_eas_remove_front()` now checks `ba_eas_has_front()` on top of the `BA_Edit_Author_Slug::remove_front`.
* The `BA_Edit_Author_Slug` class is no longer declared `final`.
* Translations are only loaded from the WP languages folder (ie - wp-content/languages/plugins).
* Bumped minimum required WordPress version to 4.4.
### Deprecated
* Deprecated the `BA_Edit_Author_Slug::version` & `BA_Edit_Author_Slug::db_version` properties.
* Deprecated `ba_eas_get_wp_roles()`. Use `wp_roles()` instead. [GH-9]
* Deprecated `ba_eas_update_nicename_cache()`. Use `wp_cache_delete( $old_nicename, 'userslugs' )` instead. [GH-10]
### Fixed
* 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.
* Lots of minor optimizations that should improve performance.
### Removed
* Options upgrading/back-compat for pre-0.9 installs was removed. [GH-8]
## [1.4.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.4.1) - 2017-04-24 ##
* Fix failing string replacement in bulk update message.
## [1.4.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.4.0) - 2017-04-04 ##
* Lots of code cleanup to better adhere to WordPress Coding Standards.
* Improved performance of `ba_eas_sanitize_author_base()` by preventing unnecessary processing.
* Fixed an issue where the demo author permalink URL could have a double slash.
* Improvements to bulk update for sites with a large user base.
## [1.3.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.3.0) - 2017-01-25 ##
* Fix a potential bug where a sanitized author base could end up with double forward slashes.
* Introduce the `%ba_eas_author_role%` permalink structure tag. This can be used to customize role-based author bases.
* Bonus: All alternative facts are now free!
## [1.2.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.2.1) - 2016-02-29 ##
* Fixed stupid error where the default user nicename wasn't being properly retrieved from the database. Sorry about that :(
* Unfortunately, some unicorns were lost during the development of this release, but they are a resilient creature.
## [1.2.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.2.0) - 2016-02-01 ##
* Added the ability to use forward slashes in the author base.
* Improved display on the settings page, and storing, of role slugs.
* 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).
* 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).
* Added ability to remove the front portion of author links.
* Accessibility improvements to the settings page.
## [1.1.2](https://github.com/thebrandonallen/edit-author-slug/tree/1.1.2) - 2015-10-11 ##
* Fix loading of minified JS in the admin.
## [1.1.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.1.1) - 2015-09-29 ##
* Fix a few minor output escaping issues missed in the 1.1.0 release.
## [1.1.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.1.0) - 2015-09-29 ##
* Added the ability to update all author slugs at once with the "Bulk Update" tool.
* Greatly improved the checks and error messages when manually updating an author slug for a user.
* Further accessibility improvements to match WP 4.3.
* Improved validation of author slugs to better match that of WP.
## [1.0.6](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.6) - 2015-09-14 ##
* Fix potential, although unlikely, persistent XSS vulnerability.
* Prevent debug notice in admin.
* Update heading tags to h1 to match WP 4.3.
### [1.0.5.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.5.1) - 2015-08-04 ###
* Identical to 1.0.5, which failed to commit properly.
## [1.0.5](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.5) - 2015-08-04 ##
* Add WP_User object as a parameter passed to the `ba_eas_show_user_nicename_options_list` filter
* Add Japanese translation files.
* Fixed possible (although unlikely) cache invalidation issue
* Minor code improvements and optimizations.
## [1.0.4](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.4) - 2015-04-21 ##
* Improve upgrade routine for older installs
* Improve output escaping
* Various minor fixes and improvements
## [1.0.3](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.3) - 2014-10-08 ##
I swear I tested this! :(
* Fix custom roles slugs not saving
## [1.0.2](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.2) - 2014-09-04 ##
* A number of localization fixes and improvements
* Role slug improvements
* Temporary, semi work-around for Co-Authors Plus [https://github.com/Automattic/Co-Authors-Plus/pull/204]
## [1.0.1](https://github.com/thebrandonallen/edit-author-slug/tree/1.0.1) - 2014-04-17 ##
* Fix possible syntax error when updating a profile (https://wordpress.org/support/topic/undefined-property-error-1)
## [1.0](https://github.com/thebrandonallen/edit-author-slug/tree/1.0) - 2014-02-26 ##
* Added ability to do role-based author bases
* Added ability to use role-based author templates
* Moderate code refactoring
* Various code fixes and improvements
* Add "nickname" as option for auto-update
* First pass at unit test (only checks if the plugin is installed, for now)
## [0.9.6](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.6) - 2013-12-18 ##
* 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.
## [0.9.5](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.5) - 2013-04-29 ##
* Fixed instances where the Author Base wouldn't change, or would result in a 404
## [0.9.4](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.4) - 2013-01-31 ##
* Update readme references to plugin settings
* Fix some copy pasta in settings
* Update screenshots
## [0.9.3](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.3) - 2013-01-31 ##
* Quickly caught a few things I missed, so this release was skipped. See 0.9.4 for changes
## [0.9.2](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.2) - 2012-06-25 ##
* Fix issue where any profile information other than the Author Slug could not be updated
* Minor code improvement
## [0.9.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.9.1) - 2012-06-14 ##
* Add 'Settings' link to plugins list table
## [0.9](https://github.com/thebrandonallen/edit-author-slug/tree/0.9) - 2012-06-13 ##
* Allow Author Slug to be automatically created/updated based on a defined structure
* Switched to using the Settings API, which also means that all options moved to the Settings > Edit Author Slug page
* Various code improvements/optimizations
## [0.8.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.8.1) - 2012-02-14 ##
* Fix a bug that prevented non-admin users from updating their profile
## [0.8](https://github.com/thebrandonallen/edit-author-slug/tree/0.8) - 2011-12-15 ##
* Drastically improved error handling and feedback for author slug editing.
* Restore duplicate author slug check as old method could alter the slug without any sort of warning.
* Further improve the logic for flushing rewrite rules.
* Introduce ba_eas_can_edit_author_slug() and matching filter to make it even easier to give users the ability to update their own author slug.
* Add message in plugins list warning users of WP less than 3.2 that 0.8 is the last update they'll receive.
## [0.7.2](https://github.com/thebrandonallen/edit-author-slug/tree/0.7.2) - 2011-02-13 ##
* Remove overzealous cap check.
## [0.7.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.7.1) - 2011-02-13 ##
* Fix some unfortunate errors I missed before tagging 0.7.
## [0.7](https://github.com/thebrandonallen/edit-author-slug/tree/0.7) - 2011-02-13 ##
* Significant code refactoring.
* Added custom capability to give site admins the ability to add author slug access to other roles.
* Improvements/optimizations to code logic.
* Fixed an incorrect textdomain string.
* Removed filter added in 0.6 as it was messy. It's much easier to achieve the same result without the plugin.
* Got rid of wp_die() statement on duplicate author slugs in favor of WP's built-in duplicate author slug method.
## [0.6.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.6.1) - 2010-12-14 ##
* Added Dutch translation.
* Don't hard code the languages folder path.
* Improve class check/initialization.
## [0.6](https://github.com/thebrandonallen/edit-author-slug/tree/0.6) - 2010-11-03 ##
* Some code cleanup.
* More security hardening.
* Added filter to allow for the complete removal of the Author Base (http://brandonallen.org/2010/11/03/how-to-remove-the-author-base-with-edit-author-slug/).
* Flush rewrite rules only when necessary instead of every page load.
## [0.5](https://github.com/thebrandonallen/edit-author-slug/tree/0.5) - 2010-06-22 ##
* Added 'Author Slug' column to Users > Authors & Users (Users > Users in 3.0) page.
* Ended support for the WP 2.8 branch. Most likely still works, but I will not support it.
* Various bug fixes.
## [0.4](https://github.com/thebrandonallen/edit-author-slug/tree/0.4) - 2010-05-18 ##
* Added ability to change the Author Base.
* Updated documentation.
* Added some extra security via WP esc_* functions.
* Added Belorussian translation.
## [0.3.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.3.1) - 2010-03-21 ##
* Added Hebrew Translation.
## [0.3](https://github.com/thebrandonallen/edit-author-slug/tree/0.3) - 2010-03-21 ##
* Now localization friendly.
## [0.2.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.2.1) - 2010-02-15 ##
* Fixed a bug that prevented updating a user if the author slug did not change.
## [0.2](https://github.com/thebrandonallen/edit-author-slug/tree/0.2) - 2010-01-27 ##
* Added a check to avoid duplicate slugs.
* Properly sanitize slug before comparison and database insertion.
* Updated plugin URI.
## [0.1.4](https://github.com/thebrandonallen/edit-author-slug/tree/0.1.4) - 2010-01-18 ##
* Update tags to reflect WordPress 2.9.1 compatibility.
* Update link to plugin homepage.
## [0.1.3](https://github.com/thebrandonallen/edit-author-slug/tree/0.1.3) - 2009-12-21 ##
* Update tags to reflect WordPress 2.9 compatibility.
## [0.1.2](https://github.com/thebrandonallen/edit-author-slug/tree/0.1.2) - 2009-11-28 ##
* Fix version number issues.
## [0.1.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.1.1) - 2009-11-27 ##
* Remove extra debug functions left behind.
* Add screenshot.
## [0.1](https://github.com/thebrandonallen/edit-author-slug/tree/0.1) - 2009-11-27 ##
* Initial release.

View File

@@ -0,0 +1,2 @@
/*! edit-author-slug - v1.5.2 - 2017-06-21 5:33:46 AM UTC - https://github.com/thebrandonallen/edit-author-slug/ */
jQuery(document).ready(function(s){s('input[name="_ba_eas_remove_front"]').prop("checked")&&s('span[class="eas-demo-author-base-front"]').addClass("hidden"),s('input[name="_ba_eas_remove_front"]').on("click",function(){s(this).prop("checked")?s('span[class="eas-demo-author-base-front"]').fadeOut("fast",function(){s(this).addClass("hidden")}):s('span[class="eas-demo-author-base-front hidden"]').fadeIn("slow",function(){s(this).removeClass("hidden")})}),s('input[name="ba_eas_author_slug"]').click(function(){"ba_eas_author_slug_custom_radio"!==s(this).attr("id")&&s('input[name="ba_eas_author_slug_custom"]').val(s(this).val()).text(s(this).siblings("span").text())}),s('input[name="ba_eas_author_slug_custom"]').focus(function(){s("#ba_eas_author_slug_custom_radio").attr("checked","checked")}),s('input[class="eas-checkbox"]').not(":checked").parents("tr").next("tr").addClass("hidden"),s('input[class="eas-checkbox"]').on("click",function(){s(this).prop("checked")?s(this).parents("tr").next("tr").fadeIn("slow",function(){s(this).removeClass("hidden")}):s(this).parents("tr").next("tr").fadeOut("fast",function(){s(this).addClass("hidden")})})});

View File

@@ -0,0 +1,240 @@
# Copyright (C) 2009-2017 Brandon Allen
# This file is distributed under the same license as the Edit Author Slug package.
# Submit translations to https://translate.wordpress.org/projects/wp-plugins/edit-author-slug.
msgid ""
msgstr ""
"Project-Id-Version: Edit Author Slug 1.5.2\n"
"Report-Msgid-Bugs-To: "
"https://github.com/thebrandonallen/edit-author-slug/issues\n"
"POT-Creation-Date: 2017-06-21 05:33:46+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: BRANDON ALLEN <plugins@brandonallen.me>\n"
"Language-Team: ENGLISH <plugins@brandonallen.me>\n"
"Language: en\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Country: United States\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: "
"__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-Bookmarks: \n"
"X-Textdomain-Support: yes\n"
"X-Generator: grunt-wp-i18n1.0.0\n"
#: includes/admin.php:66
msgid ""
"Choose an Author Slug based on the above profile information, or create "
"your own."
msgstr ""
#: includes/admin.php:66
msgid "ie. - 'user-name', 'firstname-lastname', or 'master-ninja'"
msgstr ""
#: includes/admin.php:69 includes/admin.php:71 includes/admin.php:300
msgid "Author Slug"
msgstr ""
#: includes/admin.php:89
msgid "Custom:"
msgstr ""
#: includes/admin.php:90
msgid "Enter a custom author slug in the following field"
msgstr ""
#: includes/admin.php:92
msgid "Custom author slug:"
msgstr ""
#: includes/admin.php:159
msgid "<strong>ERROR</strong>: An author slug cannot be blank. Please try again."
msgstr ""
#: includes/admin.php:202
msgid ""
"<strong>ERROR</strong>: An author slug can only contain alphanumeric "
"characters, underscores (_) and dashes (-)."
msgstr ""
#: includes/admin.php:211
msgid ""
"<strong>ERROR</strong>: That author slug appears to be invalid. Please try "
"something different."
msgstr ""
#: includes/admin.php:220
msgid "<strong>ERROR</strong>: An author slug may not be longer than 50 characters."
msgstr ""
#: includes/admin.php:235
#. translators: 1: author slug
msgid ""
"<strong>ERROR</strong>: The author slug, %1$s, already exists. Please try "
"something different."
msgstr ""
#: includes/admin.php:382 includes/admin.php:400
msgid "Edit Author Slug Settings"
msgstr ""
#: includes/admin.php:424 includes/admin.php:432
msgid "Author Base"
msgstr ""
#: includes/admin.php:446
msgid "Remove Front"
msgstr ""
#: includes/admin.php:460
msgid "Role-Based Author Base"
msgstr ""
#: includes/admin.php:473
msgid "Role Slugs"
msgstr ""
#: includes/admin.php:483
msgid "Automatic Author Slug Creation"
msgstr ""
#: includes/admin.php:491
msgid "Automatically Update"
msgstr ""
#: includes/admin.php:504 includes/admin.php:538
msgid "Author Slug Structure"
msgstr ""
#: includes/admin.php:517
msgid "Bulk Update Author Slugs"
msgstr ""
#: includes/admin.php:525
msgid "Bulk Update"
msgstr ""
#: includes/admin.php:557
msgid "Change your author base to something more fun!"
msgstr ""
#: includes/admin.php:570
msgid ""
"Allow Author Slugs to be automatically updated, and set the default Author "
"Slug structure for users. Automatic updating will only occur when a user "
"can't edit Author Slugs on their own."
msgstr ""
#: includes/admin.php:570
msgid ""
"This could have SEO repercussions if users update their profiles "
"frequently, and it will override any manual editing of the Author Slug you "
"may have previously completed."
msgstr ""
#: includes/admin.php:592
msgid "Defaults to 'author'"
msgstr ""
#: includes/admin.php:619
msgid "Remove the \"front\" portion of the author permalink structure."
msgstr ""
#: includes/admin.php:633
msgid "Set user's Author Base according to their role."
msgstr ""
#: includes/admin.php:637
#. translators: 1: rewrite tag, 2: rewrite tag demo usage, 3: demo URL using
#. rewrite tag
msgid ""
"Use the %1$s rewrite tag to customize the role-based author base. If you "
"set the author base to \"%2$s\", the resulting author structure will be "
"something like \"%3$s\"."
msgstr ""
#: includes/admin.php:750
msgid "Automatically update Author Slug when a user updates their profile."
msgstr ""
#: includes/admin.php:774
msgid "Default author slug options"
msgstr ""
#: includes/admin.php:794
msgid "Update all users at once based on the specified Author Slug structure."
msgstr ""
#: includes/admin.php:810
msgid ""
"Update all users according to the below Author Slug setting. This will only "
"be run after clicking \"Save Changes\"."
msgstr ""
#: includes/admin.php:834
msgid "Default bulk update author slug options"
msgstr ""
#: includes/admin.php:865
msgid "Settings"
msgstr ""
#: includes/admin.php:890 tests/test-admin.php:962
msgid "username (Default)"
msgstr ""
#: includes/admin.php:891 tests/test-admin.php:963
msgid "nickname"
msgstr ""
#: includes/admin.php:892 tests/test-admin.php:964
msgid "displayname"
msgstr ""
#: includes/admin.php:893 tests/test-admin.php:965
msgid "firstname"
msgstr ""
#: includes/admin.php:894 tests/test-admin.php:966
msgid "lastname"
msgstr ""
#: includes/admin.php:895 tests/test-admin.php:967
msgid "firstname-lastname"
msgstr ""
#: includes/admin.php:896 tests/test-admin.php:968
msgid "lastname-firstname"
msgstr ""
#: includes/admin.php:897 tests/test-admin.php:969
msgid "userid (Experimental)"
msgstr ""
#: includes/classes/class-edit-author-slug.php:201
msgid "Use class constant, BA_Edit_Author_Slug::VERSION, instead."
msgstr ""
#: includes/classes/class-edit-author-slug.php:208
msgid "Use class constant, BA_Edit_Author_Slug::DB_VERSION, instead."
msgstr ""
#: includes/functions.php:264
#. translators: Updated author slugs count.
msgid "%d user author slug updated."
msgid_plural "%d user author slugs updated."
msgstr[0] ""
msgstr[1] ""
#. Description of the plugin/theme
msgid ""
"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>"
msgstr ""