From d398ad6b4983263cae92bb610ed95d165e59c7fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anderson=20Gr=C3=BCdtner=20Martins?= Date: Thu, 15 Apr 2021 13:48:58 -0300 Subject: [PATCH] Release v3.3.1 (#838) * Release v3.3.0 (#821) (#822) * Hotfix 784 ics timezone (#785) * Add timezone data into the .ics file for identified tz * Fix timezone string for tz based on offsets * Update version number * Update the changelog * Multisite: Role selection is ignored by Add User (#789) * Add file to be ignored for the builder * Fix admin menu icon, #802 * Update the changelog * Update tested WP version to 5.7 * Fix notice about array converted to string, #813 * Fix accordion on metaboxes in WP 5.7, #816 * Fix 3rd argument passed to a filter, #814 (#817) * Fix 3rd argument passed to a filter, #814 * Update the changelog * Removed not used variable * Fix support for PHP 5.6 fixing the version of psr/container * Fix accordion on WP 5.7, #814 * Bump version to 3.2.1-beta.2 * Add filters to customize the available fields in the shortcode help (#818) * Add filters to customize the available fields in the shortcode help * Update the changelog * Update the changelog * Fix the email channel for authors identified by the email, #793 (#819) * Fix the email channel for authors identified by the email, #793 Fix needed for allowing guest authors with email address to be notified. * Update changelog * Update changelog * Bump version number to 3.3.0-rc.1 * Show the Upgrade to Pro only for who can install plugins, #599 * Update version v3.3.0 * Preparing to release Co-authored-by: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Co-authored-by: Kevin Behrens <43488774+agapetry@users.noreply.github.com> * Add wp-ajax-response as dependency of editorial comments, #827 * Check capability before displaying Active Notifications * Update the changelog * Fix a typo in a comment * Fix php warning about undefined index "untrashed", #831 * Update the changelog * Update version number * Update the changelog * Update version number to 3.3.1 * Update the release date in the changelog Co-authored-by: Kevin Behrens <43488774+agapetry@users.noreply.github.com> --- includes.php | 2 +- .../Workflow/Step/Event/Base.php | 2 +- modules/calendar/calendar.php | 8 +-- .../editorial-comments/editorial-comments.php | 2 +- modules/notifications/notifications.php | 61 ++++++++++--------- publishpress.php | 2 +- readme.txt | 8 ++- 7 files changed, 47 insertions(+), 38 deletions(-) diff --git a/includes.php b/includes.php index dfc93ab7a..aca95d264 100644 --- a/includes.php +++ b/includes.php @@ -33,7 +33,7 @@ if (!defined('PP_LOADED')) { // Define constants - define('PUBLISHPRESS_VERSION', '3.3.0'); + define('PUBLISHPRESS_VERSION', '3.3.1'); define('PUBLISHPRESS_BASE_PATH', __DIR__); define('PUBLISHPRESS_FILE_PATH', PUBLISHPRESS_BASE_PATH . '/publishpress.php'); define('PUBLISHPRESS_LIBRARIES_PATH', PUBLISHPRESS_BASE_PATH . '/libraries'); diff --git a/libraries/Notifications/Workflow/Step/Event/Base.php b/libraries/Notifications/Workflow/Step/Event/Base.php index ef4572990..97e616ca7 100644 --- a/libraries/Notifications/Workflow/Step/Event/Base.php +++ b/libraries/Notifications/Workflow/Step/Event/Base.php @@ -39,7 +39,7 @@ public function __construct() [$this, 'filter_workflow_metabox_context'] ); - // Add the fitler to the run workflow query args + // Add the filter to the run workflow query args add_filter( 'publishpress_notifications_running_workflow_meta_query', [$this, 'filter_running_workflow_query_args'], diff --git a/modules/calendar/calendar.php b/modules/calendar/calendar.php index bbc78de8e..b4b367f20 100644 --- a/modules/calendar/calendar.php +++ b/modules/calendar/calendar.php @@ -1215,15 +1215,15 @@ class="button-primary"> unset($_GET['trashed']); } - $untrashed = (int)$_GET['untrashed']; - if (isset($_GET['untrashed']) && $untrashed) { + + if (isset($_GET['untrashed']) && (int)$_GET['untrashed']) { printf( _n( 'Post restored from the Trash.', '%d posts restored from the Trash.', - $untrashed + (int)$_GET['untrashed'] ), - number_format_i18n($untrashed) + number_format_i18n((int)$_GET['untrashed']) ); unset($_GET['undeleted']); } diff --git a/modules/editorial-comments/editorial-comments.php b/modules/editorial-comments/editorial-comments.php index b2ce97544..f62728b1b 100644 --- a/modules/editorial-comments/editorial-comments.php +++ b/modules/editorial-comments/editorial-comments.php @@ -137,7 +137,7 @@ public function add_admin_scripts() wp_enqueue_script( 'publishpress-editorial-comments', $this->module_url . 'lib/editorial-comments.js', - ['jquery'], + ['jquery', 'wp-ajax-response'], PUBLISHPRESS_VERSION, true ); diff --git a/modules/notifications/notifications.php b/modules/notifications/notifications.php index 60be65708..bee38e005 100644 --- a/modules/notifications/notifications.php +++ b/modules/notifications/notifications.php @@ -549,35 +549,38 @@ public function notifications_meta_box()
-
- -

- - - -

labels->singular_name) - ); ?>

- -
+ +
+ +

+ + + +

labels->singular_name) + ); ?>

+ +
+