Skip to content

Commit

Permalink
Merge pull request #405 from publishpress/release-v3.13.0
Browse files Browse the repository at this point in the history
Release v3.13.0
  • Loading branch information
andergmartins authored Mar 18, 2021
2 parents 92ed243 + 3e14bcf commit c51dc58
Show file tree
Hide file tree
Showing 24 changed files with 900 additions and 457 deletions.
10 changes: 7 additions & 3 deletions codeception.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ extensions:
config:
tad\WPBrowser\Extension\Copier:
files:
languages: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/languages"
src: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/src"
vendor: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/vendor"
publishpress-authors.php: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/publishpress-authors.php"
includes.php: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/includes.php"
deprecated.php: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/deprecated.php"
activation.php: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/activation.php"
defines.php: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/defines.php"
deprecated.php: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/deprecated.php"
includes.php: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/includes.php"
publishpress-authors.php: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/publishpress-authors.php"
template-tags.php: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/template-tags.php"
readme.txt: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/readme.txt"

params:
- .env.testing
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@
],
"require": {
"php": ">=5.6.20",
"pimple/pimple": "3.2.3.*",
"twig/twig": "1.42.5.*",
"symfony/polyfill-ctype": "1.19.*",
"pimple/pimple": "3.2.3",
"twig/twig": "1.42.5",
"symfony/polyfill-ctype": "1.19.0",
"psr/container": "1.0.0",
"publishpress/wordpress-version-notices": "^1"
},
"require-dev": {
Expand Down
297 changes: 151 additions & 146 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
defined('ABSPATH') or die('No direct script access allowed.');

if (!defined('PP_AUTHORS_VERSION')) {
define('PP_AUTHORS_VERSION', '3.12.0');
define('PP_AUTHORS_VERSION', '3.13.0');
define('PP_AUTHORS_FILE', 'publishpress-authors/publishpress-authors.php');
define('PP_AUTHORS_BASE_PATH', plugin_dir_path(__DIR__ . '/publishpress-authors.php'));
define('PP_AUTHORS_MODULES_PATH', PP_AUTHORS_BASE_PATH . 'src/modules/');
Expand Down
67 changes: 35 additions & 32 deletions includes.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
defined('ABSPATH') or die('No direct script access allowed.');

if (!defined('PP_AUTHORS_LOADED')) {
require_once 'defines.php';
require_once __DIR__ . '/defines.php';

if (!class_exists(PP_AUTHORS_AUTOLOAD_CLASS_NAME) && !class_exists('MultipleAuthors\\Plugin')) {
$autoloadPath = PP_AUTHORS_VENDOR_PATH . 'autoload.php';
Expand All @@ -39,40 +39,43 @@
}
}

add_filter(
\PPVersionNotices\Module\TopNotice\Module::SETTINGS_FILTER,
function ($settings) {
if (current_user_can('update_plugins') || current_user_can('install_plugins')) {
$settings['publishpress-authors'] = [
'message' => 'You\'re using PublishPress Authors Free. The Pro version has more features and support. %sUpgrade to Pro%s',
'link' => 'https://publishpress.com/links/authors-banner',
'screens' => [
['base' => 'edit-tags', 'id' => 'edit-author', 'taxonomy' => 'author'],
['base' => 'term', 'id' => 'edit-author', 'taxonomy' => 'author'],
[
'base' => 'authors_page_ppma-modules-settings',
'id' => 'authors_page_ppma-modules-settings'
],
]
];
}
add_action(
'plugins_loaded',
function () {
if (current_user_can('install_plugins')) {
add_filter(
\PPVersionNotices\Module\TopNotice\Module::SETTINGS_FILTER,
function ($settings) {
$settings['publishpress-authors'] = [
'message' => 'You\'re using PublishPress Authors Free. The Pro version has more features and support. %sUpgrade to Pro%s',
'link' => 'https://publishpress.com/links/authors-banner',
'screens' => [
['base' => 'edit-tags', 'id' => 'edit-author', 'taxonomy' => 'author'],
['base' => 'term', 'id' => 'edit-author', 'taxonomy' => 'author'],
[
'base' => 'authors_page_ppma-modules-settings',
'id' => 'authors_page_ppma-modules-settings'
],
]
];

return $settings;
}
);
return $settings;
}
);

add_filter(
Module::SETTINGS_FILTER,
function ($settings) {
if (current_user_can('update_plugins') || current_user_can('install_plugins')) {
$settings['publishpress-authors'] = [
'parent' => 'ppma-authors',
'label' => 'Upgrade to Pro',
'link' => 'https://publishpress.com/links/authors-menu',
];
}
add_filter(
Module::SETTINGS_FILTER,
function ($settings) {
$settings['publishpress-authors'] = [
'parent' => 'ppma-authors',
'label' => 'Upgrade to Pro',
'link' => 'https://publishpress.com/links/authors-menu',
];

return $settings;
return $settings;
}
);
}
}
);
}
Expand Down
2 changes: 1 addition & 1 deletion publishpress-authors.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: PublishPress Authors allows you to add multiple authors and guest authors to WordPress posts
* Author: PublishPress
* Author URI: https://publishpress.com
* Version: 3.12.0
* Version: 3.13.0
* Text Domain: publishpress-authors
*
* ------------------------------------------------------------------------------
Expand Down
43 changes: 31 additions & 12 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Author URI: https://publishpress.com
Tags: multiple authors, authors, guest authors, author fields, author layouts
Requires at least: 4.7
Requires PHP: 5.6
Tested up to: 5.6
Stable tag: 3.12.0
Tested up to: 5.7
Stable tag: 3.13.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -28,6 +28,7 @@ Here are the three most important features of PublishPress Authors:
With PublishPress Authors, you can set multiple authors for each post. When you write a post, you’ll see a box in the right sidebar. Here you can choose from all the users on your site, and assign them as authors.

On the frontend of your site. PublishPress Authors gives you several different options to display the authors’ box:

* Replacing the default author display.
* At the bottom of your content.
* In a widget or a Gutenberg block.
Expand All @@ -39,30 +40,39 @@ On the frontend of your site. PublishPress Authors gives you several different o
= Guest Authors =

Using PublishPress Authors, you can create Guest Authors who don’t need an account on your site. PublishPress will treat Guest Authors identically to Authors who are linked users.

You will be able to select and display Guest Authors in exactly the same way as for registered users. Each Guest Author can have a full profile, plus an avatar, and their own archive page for blog posts.

[Click here to see how to create Guest Authors](https://publishpress.com/knowledge-base/add-guest-authors-wordpress/).

= Multiple Layout Options for Author Profiles =
PublishPress Authors provides five default ways to display the author profiles on your site.
In the PublishPress Authors settings you can choose from these layouts:
PublishPress Authors provides five default ways to display the author profiles on your site. In the PublishPress Authors settings you can choose from these layouts:

* Simple list
* Boxed
* Centered
* Inline
* Inline with Avatars

[Click here to see details on all the layout options](https://publishpress.com/knowledge-base/layout/)

= Custom Fields for Author Profiles (Pro version) =

PublishPress Authors Pro enables you to create custom fields and enhance your author profiles.
You can add Text, WYSIWYG, Link and email address fields. Then you can place those fields in author profiles using custom layouts.
PublishPress Authors Pro enables you to create custom fields and enhance your author profiles. You can add Text, WYSIWYG, Link and email address fields. Then you can place those fields in author profiles using custom layouts.

[Click here to see how to use Custom Fields](https://publishpress.com/knowledge-base/custom-fields/)

= Custom Layouts for Author Profiles (Pro version) =

PublishPress Authors enables you to build custom layouts for your author profiles.
Using all your author information and custom fields, you can design beautiful layouts for your authors. Each layout is editable using HTML and PHP. You can add many different types of author information to these layouts including custom fields.
PublishPress Authors enables you to build custom layouts for your author profiles. Using all your author information and custom fields, you can design beautiful layouts for your authors. Each layout is editable using HTML and PHP. You can add many different types of author information to these layouts including custom fields.

[Click here to see how to customize author layouts](https://publishpress.com/knowledge-base/custom-layouts/).

= Join PublishPress and get the Pro plugins =
The Pro versions of the PublishPress plugins are well worth your investment. The Pro versions have extra features and faster support. [Click here to join PublishPress](https://publishpress.com/pricing/).

Join PublishPress and you’ll get access to these plugins:

* [Advanced Gutenberg](https://publishpress.com/blocks) add over 20 layout options, sliders, buttons, icons, image galleries, maps, tabs, testimonials, accordions, and much more.
* [PublishPress Authors Pro](https://publishpress.com/authors) allows you to add multiple authors and guest authors to WordPress posts
* [PublishPress Capabilities Pro](https://publishpress.com/capabilities) is the plugin to manage your WordPress user roles, permissions, and capabilities.
Expand Down Expand Up @@ -102,12 +112,21 @@ There are two ways to install the PublishPress Authors plugin:
4. Access the "Plugins" page;
5. Activate the PublishPress Authors plugin.

== Usage ==
- Go to admin page, click on the "Authors" menu and create new author profiles.
- Go to write a new post and you'll see the box for selecting multiple authors in the sidebar.

== Changelog ==

= [3.13.0] - 2021-03-18 =

* Added: Improve layout for Centered box and add a color picker to choose a base color, #376, #377;
* Added: Added new filter to extend the "post" variable exposed to the layouts. The new filter: "publishpress_authors_layout_post_properties", #384;
* Fixed: Fix the Authors List widget sorting by the author name, #389;
* Fixed: Fixed Notice: Undefined index: title_plural in the Widget.php file, #393;
* Fixed: Error Cannot access private property MultipleAuthors\Classes\Objects\Author::$term_id, #386;
* Fixed: The authors field is not displayed for custom post types created by Toolset, or other plugins, #385;
* Fixed: Fix link for authors in the Genesis Framework Featured Posts widget, #378;
* Fixed: PHP Warning: in_array() expects parameter 2 to be array, string given "multiple-authors/multiple-authors.php" #402;
* Fixed: PHP Fatal error: Uncaught Error: [] operator not supported for strings in MA_Multiple_Authors->filter_workflow_receiver_post_authors #403;
* Changed: Change the default layout to "boxed", #370;

= [3.12.0] - 2021-02-23 =

* Added: Added filters for customizing the byline on Elementor skins: publishpress_authors_elementor_posts_skin_cards_byline, publishpress_authors_elementor_posts_skin_classic_byline, #335;
Expand Down
Loading

0 comments on commit c51dc58

Please sign in to comment.