Changelogs for PublishPress Authors Pro
This changelog is for the Pro version of PublishPress Authors.
You can find the changelog for the free version by clicking this link to WordPress.org.
The format is based on [Keep a Changelog](https://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/).= [3.10.0] - 2020-12-17 =* Fixed: Changed the way we sync post_author column: Current user will only be set as author if no terms where found for the post, or there are only guest authors. If post_author is empty, we set it for the current user, creating an author term for it, #286. * Fixed: Duplicated queries for the same given email in the method MultipleAuthors\Classes\Author_Utils::get_author_term_id_by_email(). Added a cache for the query results and an option to ignore the cache, #293; * Fixed: Performance issue. Optimized some methods and modules loading for reducing the server overload and reduce duplicated queries. Some modules now are only loaded if the required plugin is installed, #297; * Fixed: Fix the path for the template-tags.php file when called by the author box, if not loaded yet; * Fixed: Only register admin hooks if in the admin, #297; * Fixed: Fixed JS warning about variable being implicitly defined; * Fixed: Fixed compatibility issue with Select2 library loaded by WS Form Plugin, #292; * Fixed: Improved performance when opening the post edit page and quick edit panel for sites with thousands of authors; * Changed: Deprecated functions and classes now can be disabled if you define the constant "PUBLISHPRESS_AUTHORS_LOAD_DEPRECATED_LEGACY_CODE" as false. Default is true, #297; * Changed: CoAuthors' backward compatibility functions now can be disabled if you define the constant "PUBLISHPRESS_AUTHORS_LOAD_COAUTHORS_FUNCTIONS" as false. Default is true, #297; * Changed: Bylines' backward compatibility functions now can be disabled if you define the constant "PUBLISHPRESS_AUTHORS_LOAD_BYLINES_FUNCTIONS" as false. Default is true, #297; * Added: Added new maintenance task for syncing the authors' slug with the respective user's sanitized login (user_nicename). There is a new constant "PUBLISHPRESS_AUTHORS_SYNC_AUTHOR_SLUG_CHUNK_SIZE" for customizing the size of the chunk of authors to update at a time (default to 50), #287; * Added: Added new constant "PUBLISHPRESS_AUTHORS_SYNC_POST_AUTHOR_CHUNK_SIZE" for defining the size of the chunck of posts to convert authors in the maintenance task: Update author field on posts. Default to 10; * Removed: Removed the support to the filter "coauthors_auto_apply_template_tags", #297;= [3.9.0] - 2020-11-25 =* Added: Added support to Bulk Edit for authors in the post list, #263 and #280; * Fixed: Fixed maintenance tasks to consider all the selected post types and not "post" only, #276; * Fixed: Fixed compatibility issue with the WP RSS Aggregator plugin, #278; * Fixed: Restored the posts count in the Authors and Users list, #275;= [3.8.1] - 2020-11-05 =* Fixed: Fixed the consistency of avatar dimensions between the img tag attributes and the CSS, #258; * Fixed: Fixed edit_posts permission check for the PublishPress calendar, #264; * Fixed: Restored the post count column in the Authors list, #95; * Changed: Added the "raw" filter to the author's description by default on fresh installations, #267;= [3.8.0] - 2020-10-07 =* Fixed: Fixed PHP warning about undefined "default_author_for_new_posts" attribute for the module options; * Fixed: Fixed the empty setting field "Default author for new posts", #242; * Fixed: Fixed empty post_author on posts saved without any author. The current user will be added as the author, #238; * Fixed: Fixed post_author field on posts when saving posts to store the user ID of the first author, ignoring guest authors, #171; * Fixed: Fixed support for authors and guest authors in the PublishPress' calendar and content overview filters, #249; * Added: Added new maintenance task to sync post_author with author terms for all posts, #171; * Added: Added basic support for multiple authors in the Ultimate Members plugin's posts, #251; * Changed: Updated base plugin to v3.8.0;= [3.7.3] - 2020-09-21 =* Fixed: Fixed unresponsive author select box for new posts, #244; * Changed: Updated base plugin to v3.7.3;= [3.7.2] - 2020-09-14 =* Fixed: Fixed the reordering issue on authors in the post edit page; * Changed: Update the base plugin to v3.7.2;= [3.7.1] - 2020-09-11 =* Fixed: Fixed the authors field in the quick edit panel. It was displaying all authors instead of only the post authors, #236; * Changed: Updated base plugin to v3.7.1;= [3.7.0] - 2020-09-10 =* Fixed: Fixed performance issue in the post list and edit page removing avatars from the authors fields, #227; * Added: Added option to change the default author for new posts in the site, #50; * Changed: Updated base plugin to v3.7.0;= [3.6.3] - 2020-09-04 =* Fixed: Fix error "Uncaught Error: Call to a member function add_cap() on null", #223; * Changed: Update base plugin to v3.6.3;= [3.6.2] - 2020-09-03 =* Fixed: Fix error "Call to a member function get_error_message() on boolean", a regression bug result of the recent updates, #221; * Changed: Update base plugin to v3.6.2;= [3.6.1] - 2020-09-03 =* Fixed: Fix admin notice for Co-Authors Plus displaying even when the plugin is not installed; * Changed: Updated base plugin to v3.6.1;= [3.5.1] - 2020-08-20 =* Fixed: Avoid warnings regarding constants already defined; * Fixed: Fixed the cache for the get_multiple_authors function for archive pages, #190; * Fixed: Fixed fatal error Object of class WP_Error could not be converted to string, #182; * Fixed: Fixed the value for $author->display_name which was returning the value from the user object instead of the custom value set for the author, #183; * Fixed: Fixed Plugin::filter_user_has_cap() is passing a param to Util::get_current_post_type() which doesn’t support params, #187; * Fixed: Fixed Plugin::filter_user_has_cap() to use the correct user, not the current one, #186; * Fixed: Removed leftovers from the deprecated capability: ppma_edit_orphan_post, #193; * Changed: Updated the base plugin to the v3.5.1;= [3.5.0] - 2020-08-06 =* Added: Added a new widget to display all the authors, #76; * Added: Added option to display the username in the authors search field, #162; * Fixed: Fix compatibility with WooCommerce products, #169; * Fixed: Performance issue in the frontend. Added cache for queries that can run multiple times in the frontend, #171; * Fixed: Fix PHP notice on author page when user is not an author, #156; * Fixed: Fixed notice when a post doesn't exist after deleting the post, #167; * Changed: Updated base plugin to 3.5.0;= [3.4.0] - 2020-07-23 =* Added: Added support to BuddyPress Profile link on custom layouts; * Added: Add new filter "publishpress_authors_author_attribute" for customizing author attributes in the layouts; * Fixed: Fix syntax on the file AUthor_Editor.php removing an invalid char;= [3.3.2] - 2020-07-13 =* Fixed: Fix the text domain loading, fixing the translations; * Fixed: Fix "orphan" authors when the mapped user is deleted, converting them in guest authors, #142; * Fixed: Fix infinity loop when user's and author's slug are different and you are trying to save an author profile, #143; * Fixed: Fix hardcoded table prefix from a query, #146; * Fixed: Fix error about missed Authors_Iterator class, #144; * Changed: Updated the min PHP version to 5.6; * Changed: Updated the WordPress tested up to version, to 5.4; * Changed: Updated base plugin to 3.3.2;= [3.3.1] - 2020-05-27 =* Added: Added the static function "get_by_email" to the Author class for getting an author by his e-mail address; * Changed: Improved error messages; * Changed: Updated base plugin to 3.3.1; * Fixed: Fatal error for WP < 5.4 due to the function "is_favicon" not being defined; * Fixed: Fix the get_avatar_url output for authors with a custom avatar, #122; * Fixed: HTML entities were not rendered in the frontend using the default author layouts, #123; * Fixed: Secondary authors don't have the edit_others_posts capability for their own posts, #129; * Fixed: Improved integration with PublishPress adding support for multiple authors in the calendar. #129, #131; * Fixed: Updated the POT file;= [3.3.0] - 2020-05-05 =* Added: Some error messages are now added to the error log; * Added: Added links to the slug column in the authors list to open the authors page in the frontend; * Added: Added post data to the twig layout context - #112; * Added: Added multiple authors support to the Elementor Pro, adding new skins to the Posts and Archive Posts widgets; * Added: Added support to Divi's theme builder and dynamic data related to authors; * Changed: Updated base plugin to 3.3.0; * Changed: Reorganized the folder structure of the plugin moving the code to a "src" folder; * Changed: Guest authors are now identified by author->ID < 0, which corresponds to the term_id. If ID > 0, it is a user, otherwise, an author term. This increases the compatibility rate with standard author functions; * Fixed: Improved text and fixed typo in the data migration messages; * Fixed: Added pointer cursor when hovering the "x" for removing authors from the list; * Fixed: Fixed minor style issue in the Simple List layout CSS; * Fixed: Centered avatar and fixed minor style issues in the Centered layout; * Fixed: Removed the blank '-' char from the Simple List layout due to undefined "age" field; * Fixed: Error message when the installed Yoast SEO doesn't have the function add_piece_language; * Fixed: Detection of minimum required Yoast SEO version for the module to be activated, so the error message is not displayed if Yoast SEO is not installed; * Fixed: Yoast SEO structured data was not displaying pages data correctly; * Fixed: Yoast SEO structured data was not working well when a guest author was the first author in posts; * Fixed: Yoast SEO structured data with incorrect @id for pages; * Fixed: Fixed the method that implements the column for authors in the post list, to only run for enabled post types; * Fixed: Fixed PHP Deprecated error for non-static method being called statically in the Term_Editor class; * Fixed: Fixed the notice in the frontend saying the is_author was called incorrectly; * Fixed: Empty output for shortcodes if the layout doesn't exists. Added fallback layout and an error message in the error log; * Fixed: Wrong author data in the query for authors mapped to user; * Fixed: The get_author_posts_url function was not working for guest authors; * Fixed: The get_the_author_meta function was not working for guest authors; * Fixed: The get_the_author_posts_link function was not working for guest authors; * Fixed: The get_the_author function was not working for guest authors; * Fixed: The the_post function was not working well for posts with guest authors; * Fixed: The feed_links_extra function was not working for guest authors; * Fixed: For themes that dont't implement support for PublishPress Authors and multiple authors, we were displaying all the author names separated by comma, but only one link (due to the limitations imposed by the theme). Now we display only the first author and its respective link on those cases. The multiple authors can be added creating a child theme and adapting the code; * Fixed: The title for authors archive pages of guest authors; * Fixed: The author object is now compatible with the main properties of WP_User objects, so guest authors can be treated as users on most cases; * Fixed: The custom user_url is not returned for authors mapped to user;= [3.2.6] - 2020-04-13 =* Added: Button to migrate data from the Bylines (Daniel Bachhuber) plugin; * Added: Button to migrate data from the Byline (Matt Dulin) plugin; * Added: Added a body class for guest authors "author-" (#45); * Fixed: Fixed the error displayed on Windows servers when the constant DIRECTORY_SEPARATOR is not defined; * Fixed: Fixed compatibility with composer based sites; * Fixed: Broken body class for guest authors "author-" (#43); * Fixed: Wrong authors in the header of pages based on Genesis framework (#46); * Fixed: Empty author headline for guest authors (#47); * Fixed: Fixed some texts and style in the Co-authors plugin migration box; * Fixed: Wrong author data in the Yoast SEO schema for structured data (#77); * Fixed: Fixed author page title when using Yoast SEO (#80); * Fixed: Fix the result of the function get_the_author_posts_link for supporting multiple authors; * Changed: Renamed the name of the Widget, from Multiple Authors to Authors; * Changed: Updated the EDD integration library to 1.6.19 to fix an error related to invalid argument supplied for foreach; * Changed: Updated the base plugin to 3.2.4;= [3.2.5] - 2020-03-17 =* Fixed: Wrong URL for the file multiple-authors-widget.css; * Fixed: Fixed the author page for compatibility to the Genesis framework; * Added: Added new filter to bypass the installation and data migration on special cases; * Changed: Updated the base plugin to 3.2.4-alpha.1;= [3.2.4] - 2020-02-27 =* Fixed: Not showing update notifications;= [3.2.3] - 2020-02-27 =* Fixed: Fixed error message if installed over PublishPress Multiple Authors v3.1.0 or older versions;= [3.2.2] - 2020-02-27 =* Fixed: Performance issue and high CPU usage;= [3.2.1] - 2020-02-25 =* Changed: Updated the base plugin to 3.2.2; * Fixed: Undefined class Authors_Iterator, #26; * Fixed: Error message related to Phing class file not found. Removed Phing from the package;= [3.2.0] - 2020-02-13 =* Fixed: Fixed default capabilities for the layouts and custom fields menu; * Fixed: Fixed resetting password when user doesn't exists; * Added: Added option to migrate authors from Co-Authors Plus; * Added: Added methods to echo author and user meta in custom layouts; * Added: Added new capabilities for the menu items: ppma_manage_authors, ppma_manage_custom_fields, ppma_manage_layouts; * Added: Added filters for configuring the new capabilities: pp_multiple_authors_manage_custom_fields_cap, pp_multiple_authors_manage_layouts_cap, pp_multiple_authors_manage_authors_cap, pp_multiple_authors_manage_settings_cap; * Added: Added new bulk action to convert mapped authors to guest authors; * Added: Added current_user variable to show or create conditionals based on the user viewing the page; * Added: Added new function for checking user's capabilities in custom layouts: current_user_can; * Added: Added new function for getting the user's meta data in custom layouts: get_current_user_meta; * Added: Added compatibility with PublishPress Capabilities Pro for displaying the new capabilities (requires 1.9.2+); * Changed: Updated the base plugin to 3.2.1;= [3.1.0] - 2019-11-19 =* Added: Added support to the function "do_shortcode" in the custom layouts; * Added: Added a shortcode for testing the output in the frontend (ppma_test); * Added: Expose the method "author.has_custom_avatar" method on custom layouts; * Added: New argument for post ID in the action "pp_multiple_authors_show_author_box"; * Changed: Updated the EDD library; * Fixed: The React library is being downgraded (overridden) in WP 5.3;= [3.0.1] - 2019-10-01 =* Fixed: Backward compatibility issue with themes using the class PP_Multiple_authors_plugin and other legacy classes for custom layouts; * Fixed: Wrong size for avatars in Twenty Nineteen theme and probably other themes where the author avatar is using the CSS class "photo" instead of "avatar" for the image; * Fixed: JS error related to select2 being undefined; * Fixed: The author field was not working if no author was set for new posts; * Changed: Simplified the documentation on the sidebar for custom layouts;= [3.0.0] - 2019-09-24 =* Changed: Converted to a standalone plugin removing any dependency of PublishPress. Some constants and methods where renamed to avoid name collisions; * Added: Custom fields for authors; * Added: Custom layouts for customising the output; * Added: New filter for customising the rendered author box markup: pp_multiple_authors_author_box_rendered_markup; * Added: A warning message advising to update PressPermit Pro to the version 2.7.24 or later, if installed. This is not compatible with prior versions; * Added: Menu item specific for Authors; * Added: Settings field to hide the PublishPress brand in the admin; * Fixed: The shortcode was not supported in the archive page for displaying the author box; * Fixed: Incompatibility with legacy version of select2; * Fixed: PHP notice when the capability "ppma_edit_orphan_post" was not defined; * Fixed: WSOD in Gutenberg when a user tried to edit an orphan post (with no author); * Fixed: Some style issues related to settings fields and delete button on author fields; * Fixed: The query on author pages was catching diverse post types for logged in users with the capability ppma_edit_orphan_post; * Fixed: Error in the author page regarding the class Author not being found; * Fixed: Invalid rewrite rules being defined for custom post types, but not implemented; * Fixed: Author page displaying auto-drafts for logged in authors; * Fixed: Custom author's name being overwritten after select a mapped user; * Fixed: The query for deleting Guest authors is not detecting/deleting authors with custom avatar; * Fixed: Fix an issue related to wrong paths for assets in installations where ABSPATH = //; * Changed: Improved the settings page adding tabs; * Changed: The license key field was moved from PublishPress to the Multiple Authors Settings page; * Changed: The filter "pp_multiple_authors_filter_author_box_markup" is deprecated in favor of "pp_multiple_authors_author_box_rendered_markup"; * Changed: Posts and Pages are enabled by default for Multiple Authors; * Changed: Updated the POT file; * Changed: Updated the text of notices for maintenance actions;= [2.3.0] - 2019-02-11 =* Fixed the authors column removing it from unselected post types; * Fixed the social icons in the frontend if not logged in; * Fixed PT-BR translations (Thanks to Dionizio Bach); * Fixed hardcoded table names in some queries; * Added support to custom avatars for guest and user mapped authors; * Added new inline layout with avatar;= [2.2.0] - 2019-01-14 =* Added support for the attributes: "show_title" and "layout" in the shortcode "author_box"; * Added new layout: inline. This is good for using in theme builders or themes to replace standard author links. Fix support for Beaver Themer and Beaver Builder. * Removed the legacy field for the license key; * Fixed author metabox in the post form when the post has no author; * Fixed Author column in the post for no author; * Fixed the widget to not display anything if there is no author; * Added option to create posts with no author by default;= [2.1.3] - 2018-07-19 =*Fixed:** Fixed upload of media files in a post for "secondary" authors if using multiple authors;= [2.1.2] - 2018-06-27 =*Fixed:** Fixed the author link for guest authors when using the function get_author_posts_url; * Fixed the author display name for guest authors;= [2.1.1] - 2018-06-21 =*Fixed:** Fixed avatar after selecting an author for the post; * Fixed the author page, making it filter correctly the author's posts; * Fixed the permalinks structure after upgrading or installing the plugin; * Fixed the submenu for Author which appeared in other post types;= [2.1.0] - 2018-06-12 =*Fixed:** Fixed filter for custom output on author boxes; * Fixed PHP warnings; * Fixed the change of posts/authors to only modify the queries if the post type is selected; * Fixed menu structure when the calendar and other modules are disabled; * Fixed hardcoded version number when loading some scripts; * Fixed the author page if called without the author_id in the URL; * Fixed minor details in the style of pages; * Fixed migration of data when installing or updating to link correctly to posts; * Fixed the Author class adding the missed ID property; * Fixed fatal error when running 5.4, related to the Initialized class in the add-on framework library;*Changed:** Changed minimum version required of PublishPress to 1.14.0;*Added:** Added bulk action to update the author data for author with mapped users; * Added buttons in the settings to reset the authors terms (for maintenance). Multiple authors are removed from posts, Guest authors are removed. Authors are created from users selected as authors in the posts, defined in the post_author field, and from the specific roles, if configured; * Added chosen JS script for add-ons; * Added some error messages to the log when there is an issue looking for the author of the post;= [2.0.3] - 2018-05-18 =*Fixed:** Fixed a fatal error on some environments;= [2.0.2] - 2018-05-16 =*Fixed:** Fixed duplicated authors generated with a prefix "cap-" in the Author URL (slug); * Fixed a PHP warning in the calendar page related a non defined object; * Fixed a hardcoded table prefix and name in a query to get author by user id; * Fixed author'slug (author url) forcing it to be equals to the user's nicename, if mapped to a user - on saving and on install/upgrade; * Fixed the author_name param in the author link on the list of posts in the admin; * Fixed query of posts by author (front-end and back-end) - now it displays the correct posts related to the selected author; * Fixed conflict with CoAuthors Plus, if both plugins where activated. Related to a PHP Error about not being able to redefine an existent function; * Fixed the migration of data when installing and upgrading, now recognizing the correct version in the conditional; * Fixed the list of authors in the search box on posts to display only authors, removing users; * Fixed the migration of post authors to multiple authors terms; * Fixed query making sure to sanitize the user_id retrieved from the URL;*Changed:** Removed column "Count" from authors and users list; * Increased PublishPress minimum version required to 1.13.0;= [2.0.1] - 2018-05-14 =*Fixed:** Fixed the URL in the author link for guest authors; * Fixed the height of the avatars in some themes; * Fixed PHP warning when creating a new user; * Fixed PHP warning when opening a BuddyPress member page; * Fixed typo in the Email field description; * Fixed PHP warning when adding a widget before saving the plugins' settings after the update; * Fixed outdated .POT file; * Fixed PT-BR translation file;*Changed:** Author URL is now auto-populated after selecting a mapped user, and the field is disabled; * Removed Quick Edit for authors; * Minor improvement on styling for some form fields; * Updated language files; * Allow to create multiple authors mapped to the same user; * Removed outdated and wrong translations;*Added:** Added Mapped User field to the quick add form for Authors; * Added description to some fields and improved text to make their functioning clear; * Added support for the shortcodes in notifications which are related to authors, to display data from the multiple authors;= [2.0.0] - 2018-05-09 =*Added:** Added option to create guest authors; * Added submenu for Authors; * Added support for migrating from Bylines; * Added setting to change the style of the author box, with 3 layouts available (including in the widget); * Added more CSS classes to the elements in the author box to allow a more customized result; * Added option to display the email and website link for the author; * Added option to automatically convert new users of specific roles into authors; * Added button to edit the user on authors mapped to users;*Fixed:** Fixed support for custom post types; * Fixed PHP warnings about undefined properties; * Fixed compatibility with themes which support only co-authors; * Fixed JS error in the post form when Avatars are disabled in the Discussions settings; * Fixed author page to display the correct posts for the author; * Fixed the post page to display the multiple authors when using the get_the_author() method; * Fixed the posts counter in the authors page on the admin; * Fixed the posts counter in the users pages on the admin; * Fixed authors' avatars in the admin and frontend. Now it supports custom avatars defined by 3rd party plugins; * Fixed a PHP warning when the user doesn't have permissions to set the author;*Changed:** Fixed code style for files; * Reorganized files structure in the repository; * Changed requirement for PublishPress 1.12.0; * Removed module descriptions from some screens, to be more consistent and clearer; * Renamed author's slug fields and columns to "Author URL"; * Deprecated the method multiple_authors_wp_list_authors. Please, use get_the_authors();= [1.0.6] - 2018-02-07 =*Fixed:** Fixed license key validation and automatic updates;*Changed:** Rebranded to PublishPress;= [1.0.5] - 2017-10-16 =* Added: * Added field to change the title of the author box appended to the content;= [1.0.4] - 2017-10-11 =* Fixed: * Fixed the filter which checks if the post type is selected to enable the module;* Added: * Added field to customize the widget title;= [1.0.3] - 2017-08-31 =* Changed: * Implemented compatilbility with new Notification Workflows on PublishPress; * Changed design for multiple authors box in dashboard; * Removed Freemius integration;* Fixed: * Fixed conflict in the name of a method checking if PublishPress is active;= [1.0.2] - 2017-07-28 =* Fixed: * Fixed the widget syntax and title; * Fixed style of the list of authors, removing padding-left;= [1.0.1] - 2017-07-28 =* Fixed: * Fixed license validation= [1.0.0] - 2017-07-27 =* Changed: * Refactored CoAuthor Plus to match the new vendor and plugin name;* Added: * Added new widget to display the author box; * Added an option to display the author box automatically appended to the content. Eenabled by default, but can be disabled; * Added a shortcode to display the author box anywhere in the content; * Added an action to display the author box programatically: pp_multiple_authors_show_author_box; * Added a filter to customize the content of the author box: pp_multiple_authors_filter_author_box_markup; * Added a filter to customize when the author box will be displayed: pp_multiple_authors_filter_should_display_author_box* Fixed: * Fixed the avatar in the metabox to match the WP configuration;