From 42ca6e98cf3c8980092a68b9f10114ed95432409 Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Thu, 4 Jan 2024 12:15:03 -0500 Subject: [PATCH 01/10] PP Statuses notice: Solve thickbox display mystery; restore best practice API usage --- statuses-intro.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/statuses-intro.php b/statuses-intro.php index 789387e8..d623ffbf 100644 --- a/statuses-intro.php +++ b/statuses-intro.php @@ -65,7 +65,7 @@ function publishpress_statuses_info() { if (empty($statuses_info['statuses_installed'])) { add_action( - 'wp_enqueue_scripts', + 'admin_enqueue_scripts', function() { add_thickbox(); } @@ -92,7 +92,7 @@ function() { if (empty($statuses_info['statuses_installed'])) { add_action( - 'admin_head', + 'admin_enqueue_scripts', function() { add_thickbox(); } From 85c8d3c97bfa9a5f5c1be925a8ea41f2a12645c2 Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:54:42 -0500 Subject: [PATCH 02/10] PP Statuses: Fix iframe installer, auto-activate --- includes.php | 4 ++-- statuses-intro.php | 32 ++++++++++++++++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/includes.php b/includes.php index 312e4f61..5e0aae5b 100644 --- a/includes.php +++ b/includes.php @@ -3,7 +3,7 @@ * @package PublishPress * @author PublishPress * - * Copyright (c) 2022 PublishPress + * Copyright (c) 2024 PublishPress * * ------------------------------------------------------------------------------ * Based on Edit Flow @@ -34,7 +34,7 @@ if (! defined('PP_LOADED')) { if (! defined('PUBLISHPRESS_VERSION')) { // Define constants - define('PUBLISHPRESS_VERSION', '4.0.1'); + define('PUBLISHPRESS_VERSION', '4.0.2'); define('PUBLISHPRESS_BASE_PATH', __DIR__); define('PUBLISHPRESS_VIEWS_PATH', __DIR__ . '/views'); define('PUBLISHPRESS_FILE_PATH', PUBLISHPRESS_BASE_PATH . '/publishpress.php'); diff --git a/statuses-intro.php b/statuses-intro.php index d623ffbf..da48ac21 100644 --- a/statuses-intro.php +++ b/statuses-intro.php @@ -26,8 +26,8 @@ function publishpress_statuses_info() { $_url = "plugins.php"; $info_url = (is_multisite()) ? network_admin_url($_url) : admin_url($_url); } else { - $_url = "plugin-install.php?tab=plugin-information&plugin=publishpress-statuses§ion=changelog&TB_iframe=true&width=600&height=800"; $info_url = (is_multisite()) ? network_admin_url($_url) : admin_url($_url); + $_url = "plugin-install.php?tab=plugin-information&plugin=publishpress-statuses&TB_iframe=true&width=600&height=800"; } } else { $info_url = 'https://wordpress.org/plugins/publishpress-statuses'; @@ -38,8 +38,8 @@ function publishpress_statuses_info() { $_url = "plugins.php"; $info_url = (is_multisite()) ? network_admin_url($_url) : admin_url($_url); } else { - $_url = "plugin-install.php?tab=plugin-information&plugin=publishpress-statuses§ion=changelog&TB_iframe=true&width=600&height=800"; $info_url = (is_multisite()) ? network_admin_url($_url) : admin_url($_url); + $_url = "plugin-install.php?tab=plugin-information&plugin=publishpress-statuses&TB_iframe=true&width=600&height=800"; } } else { $info_url = 'https://wordpress.org/plugins/publishpress-statuses'; @@ -56,6 +56,21 @@ function publishpress_statuses_info() { // Ensure any user sees one-time display of PublishPress Statuses notice on Posts / Pages screen if (!defined('PUBLISHPRESS_STATUSES_VERSION')) { + add_action('upgrader_process_complete', function($package, $extra) { + if (!empty($package->skin) && !empty($package->skin->result) & !empty($package->skin->result['destination_name']) + && ('publishpress-statuses' == $package->skin->result['destination_name']) + ) { + // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended + if (!empty($_REQUEST['action']) && ('install-plugin' == $_REQUEST['action']) + && !empty($_SERVER['HTTP_REFERER']) + && false === strpos($_SERVER['HTTP_REFERER'], 'plugins.php') + && false === strpos($_SERVER['HTTP_REFERER'], 'plugin-install.php') + ) { + activate_plugin('publishpress-statuses/publishpress-statuses.php'); + } + } + }, 10, 2); + if ('admin.php' == $pagenow) { // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended if (!empty($_REQUEST['page']) && ('pp-modules-settings' == $_REQUEST['page'])) { @@ -68,6 +83,18 @@ function publishpress_statuses_info() { 'admin_enqueue_scripts', function() { add_thickbox(); + wp_enqueue_script('updates'); + + // @todo + /* + wp_enqueue_script( + 'publishpress-statuses-installer-js', + PUBLISHPRESS_URL . 'common/js/pp_statuses_installer.js', + ['jquery'], + PUBLISHPRESS_VERSION, + true + ); + */ } ); } @@ -95,6 +122,7 @@ function() { 'admin_enqueue_scripts', function() { add_thickbox(); + wp_enqueue_script('updates'); } ); } From f61d7cb966c2e4442bd10108abf1186292a545db Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:55:25 -0500 Subject: [PATCH 03/10] Use self_admin_url() --- statuses-intro.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/statuses-intro.php b/statuses-intro.php index da48ac21..d75f0648 100644 --- a/statuses-intro.php +++ b/statuses-intro.php @@ -24,10 +24,10 @@ function publishpress_statuses_info() { if (current_user_can('activate_plugins')) { if ($statuses_installed) { $_url = "plugins.php"; - $info_url = (is_multisite()) ? network_admin_url($_url) : admin_url($_url); + $info_url = self_admin_url($_url); } else { - $info_url = (is_multisite()) ? network_admin_url($_url) : admin_url($_url); $_url = "plugin-install.php?tab=plugin-information&plugin=publishpress-statuses&TB_iframe=true&width=600&height=800"; + $info_url = self_admin_url($_url); } } else { $info_url = 'https://wordpress.org/plugins/publishpress-statuses'; @@ -36,10 +36,10 @@ function publishpress_statuses_info() { if (current_user_can('install_plugins')) { if ($statuses_installed) { $_url = "plugins.php"; - $info_url = (is_multisite()) ? network_admin_url($_url) : admin_url($_url); + $info_url = self_admin_url($_url); } else { - $info_url = (is_multisite()) ? network_admin_url($_url) : admin_url($_url); $_url = "plugin-install.php?tab=plugin-information&plugin=publishpress-statuses&TB_iframe=true&width=600&height=800"; + $info_url = self_admin_url($_url); } } else { $info_url = 'https://wordpress.org/plugins/publishpress-statuses'; From b164fca0849abcb258ab0bb67eaa4c9a9588b3f2 Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:55:42 -0500 Subject: [PATCH 04/10] Lang: Update .pot --- languages/publishpress.pot | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/languages/publishpress.pot b/languages/publishpress.pot index 6e50c841..a954b260 100644 --- a/languages/publishpress.pot +++ b/languages/publishpress.pot @@ -2,14 +2,14 @@ # This file is distributed under the same license as the PublishPress Planner plugin. msgid "" msgstr "" -"Project-Id-Version: PublishPress Planner 4.0.1\n" +"Project-Id-Version: PublishPress Planner 4.0.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-01-04T15:45:17+00:00\n" +"POT-Creation-Date: 2024-01-04T20:50:55+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.8.1\n" "X-Domain: publishpress\n" @@ -2630,11 +2630,11 @@ msgstr "" msgid "Warning" msgstr "" -#: statuses-intro.php:115 +#: statuses-intro.php:143 msgid "Custom statuses are disabled until you activate the %1$sPublishPress Statuses%2$s plugin. See %3$sPlanner > Settings%4$s for details." msgstr "" -#: statuses-intro.php:123 +#: statuses-intro.php:151 msgid "Custom statuses are disabled until you install the %1$sPublishPress Statuses%2$s plugin. See %3$sPlanner > Settings%4$s for details." msgstr "" From 469e120ff2b40b38b410183c21fc36b4495c73c9 Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:56:02 -0500 Subject: [PATCH 05/10] Version 4.0.2 --- publishpress.php | 2 +- readme.txt | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/publishpress.php b/publishpress.php index 56409d0f..c3839989 100644 --- a/publishpress.php +++ b/publishpress.php @@ -3,7 +3,7 @@ * Plugin Name: PublishPress Planner * Plugin URI: https://publishpress.com/ * Description: PublishPress Planner helps you plan and publish content with WordPress. Features include a content calendar, notifications, and custom statuses. - * Version: 4.0.1 + * Version: 4.0.2 * Author: PublishPress * Author URI: https://publishpress.com * Text Domain: publishpress diff --git a/readme.txt b/readme.txt index a8451ebb..b5f01048 100644 --- a/readme.txt +++ b/readme.txt @@ -6,7 +6,7 @@ Tags: editorial calendar, notifications, custom statuses, editorial comments, wo Requires at least: 5.5 Requires PHP: 7.2.5 Tested up to: 6.4 -Stable tag: 4.0.1 +Stable tag: 4.0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -113,6 +113,10 @@ PublishPress Planner is based on the EditFlow plugin. It is easy for Edit Flow u The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). += [4.0.2] - 04 Jan 2024 = + +* Compat: PublishPress Statuses - iframe Install Now button did not work + = [4.0.1] - 04 Jan 2024 = * Compat: PublishPress Statuses plugin integration From f548d605d1d6a0392ee0c2ef2653b269270f2788 Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Thu, 4 Jan 2024 16:19:04 -0500 Subject: [PATCH 06/10] phpcs comments --- statuses-intro.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/statuses-intro.php b/statuses-intro.php index d75f0648..f461bc2c 100644 --- a/statuses-intro.php +++ b/statuses-intro.php @@ -60,11 +60,10 @@ function publishpress_statuses_info() { if (!empty($package->skin) && !empty($package->skin->result) & !empty($package->skin->result['destination_name']) && ('publishpress-statuses' == $package->skin->result['destination_name']) ) { - // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended - if (!empty($_REQUEST['action']) && ('install-plugin' == $_REQUEST['action']) - && !empty($_SERVER['HTTP_REFERER']) - && false === strpos($_SERVER['HTTP_REFERER'], 'plugins.php') - && false === strpos($_SERVER['HTTP_REFERER'], 'plugin-install.php') + if (!empty($_REQUEST['action']) && ('install-plugin' == $_REQUEST['action']) // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended + && !empty($_SERVER['HTTP_REFERER']) // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended + && false === strpos($_SERVER['HTTP_REFERER'], 'plugins.php') // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended + && false === strpos($_SERVER['HTTP_REFERER'], 'plugin-install.php') // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended ) { activate_plugin('publishpress-statuses/publishpress-statuses.php'); } From a3117840e738d24840d90601a4bb92fa39be6b69 Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Thu, 4 Jan 2024 16:45:23 -0500 Subject: [PATCH 07/10] Lang: update .pot --- languages/publishpress.pot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/languages/publishpress.pot b/languages/publishpress.pot index a954b260..810138e6 100644 --- a/languages/publishpress.pot +++ b/languages/publishpress.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-01-04T20:50:55+00:00\n" +"POT-Creation-Date: 2024-01-04T21:42:58+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.8.1\n" "X-Domain: publishpress\n" @@ -2630,11 +2630,11 @@ msgstr "" msgid "Warning" msgstr "" -#: statuses-intro.php:143 +#: statuses-intro.php:142 msgid "Custom statuses are disabled until you activate the %1$sPublishPress Statuses%2$s plugin. See %3$sPlanner > Settings%4$s for details." msgstr "" -#: statuses-intro.php:151 +#: statuses-intro.php:150 msgid "Custom statuses are disabled until you install the %1$sPublishPress Statuses%2$s plugin. See %3$sPlanner > Settings%4$s for details." msgstr "" From fcbf0a2b7cabd10a77fc4d8361ed5708844e40b3 Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Thu, 4 Jan 2024 18:28:35 -0500 Subject: [PATCH 08/10] Content Calendar: Restore default colors if PP Statuses not activated --- modules/calendar/calendar.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/calendar/calendar.php b/modules/calendar/calendar.php index 46eb6a32..46c712f6 100644 --- a/modules/calendar/calendar.php +++ b/modules/calendar/calendar.php @@ -1722,7 +1722,20 @@ protected function get_post_status_options($post_status) if (! empty($term->color)) { $color = $term->color; } else { - $color = (class_exists('PublishPress_Statuses')) ? \PublishPress_Statuses::DEFAULT_COLOR : '#78645a'; + $default_status_colors = [ + 'pitch' => '#cc0000', + 'assigned' => '#00bcc5', + 'in-progress' => '#ccc500', + 'draft' => '#f91d84', + 'pending' => '#d87200', + 'private' => '#000000', + ]; + + if (isset($default_status_colors[$post_status])) { + $color = $default_status_colors[$post_status]; + } else { + $color = (class_exists('PublishPress_Statuses')) ? \PublishPress_Statuses::DEFAULT_COLOR : '#78645a'; + } } return [ From 7e9c2f08ef8d33c3ab9af52cf7e0c44e5a266b65 Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Thu, 4 Jan 2024 18:30:58 -0500 Subject: [PATCH 09/10] Lang: update .pot --- languages/publishpress.pot | 160 ++++++++++++++++++------------------- 1 file changed, 80 insertions(+), 80 deletions(-) diff --git a/languages/publishpress.pot b/languages/publishpress.pot index 810138e6..edb54d02 100644 --- a/languages/publishpress.pot +++ b/languages/publishpress.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-01-04T21:42:58+00:00\n" +"POT-Creation-Date: 2024-01-04T23:30:04+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.8.1\n" "X-Domain: publishpress\n" @@ -38,7 +38,7 @@ msgid "https://publishpress.com" msgstr "" #: common/php/class-module.php:262 -#: modules/calendar/calendar.php:1988 +#: modules/calendar/calendar.php:2001 msgid "Published" msgstr "" @@ -47,7 +47,7 @@ msgid "Draft" msgstr "" #: common/php/class-module.php:264 -#: modules/calendar/calendar.php:1983 +#: modules/calendar/calendar.php:1996 #: modules/notifications-log/library/NotificationsLogTable.php:523 msgid "Scheduled" msgstr "" @@ -61,8 +61,8 @@ msgid "Pending Review" msgstr "" #: common/php/class-module.php:267 -#: modules/calendar/calendar.php:1832 -#: modules/calendar/calendar.php:3591 +#: modules/calendar/calendar.php:1845 +#: modules/calendar/calendar.php:3604 #: modules/content-overview/content-overview.php:1916 msgid "Trash" msgstr "" @@ -94,7 +94,7 @@ msgid "Undefined error found" msgstr "" #: core/Error.php:80 -#: modules/calendar/calendar.php:3257 +#: modules/calendar/calendar.php:3270 msgid "Invalid nonce" msgstr "" @@ -185,7 +185,7 @@ msgstr "" #: lib/Notifications/Table/Notifications.php:156 #: lib/Notifications/Table/Workflows.php:142 -#: modules/calendar/calendar.php:3632 +#: modules/calendar/calendar.php:3645 #: modules/content-overview/content-overview.php:626 msgid "Title" msgstr "" @@ -195,7 +195,7 @@ msgid "Message" msgstr "" #: lib/Notifications/Table/Notifications.php:158 -#: modules/calendar/calendar.php:3551 +#: modules/calendar/calendar.php:3564 #: modules/editorial-metadata/editorial-metadata.php:285 #: modules/notifications-log/library/NotificationsLogTable.php:490 msgid "Date" @@ -203,7 +203,7 @@ msgstr "" #: lib/Notifications/Table/Notifications.php:159 #: lib/Notifications/Table/Workflows.php:143 -#: modules/calendar/calendar.php:3546 +#: modules/calendar/calendar.php:3559 msgid "ID" msgstr "" @@ -229,7 +229,7 @@ msgid "Email" msgstr "" #: lib/Notifications/Workflow/Step/Content/Main.php:29 -#: modules/calendar/calendar.php:3679 +#: modules/calendar/calendar.php:3692 #: modules/improved-notifications/improved-notifications.php:971 msgid "Content" msgstr "" @@ -291,14 +291,14 @@ msgid "When the content is updated" msgstr "" #: lib/Notifications/Workflow/Step/Event_Content/Category.php:24 -#: modules/calendar/calendar.php:3567 +#: modules/calendar/calendar.php:3580 msgid "Category" msgid_plural "Categories" msgstr[0] "" msgstr[1] "" #: lib/Notifications/Workflow/Step/Event_Content/Filter/Category.php:34 -#: modules/calendar/calendar.php:3662 +#: modules/calendar/calendar.php:3675 msgid "Categories" msgstr "" @@ -434,7 +434,7 @@ msgid "Moving the item..." msgstr "" #: modules/calendar/calendar.php:801 -#: modules/calendar/calendar.php:3797 +#: modules/calendar/calendar.php:3810 msgid "Untitled" msgstr "" @@ -443,7 +443,7 @@ msgid "Close" msgstr "" #: modules/calendar/calendar.php:803 -#: modules/calendar/calendar.php:1872 +#: modules/calendar/calendar.php:1885 #: modules/editorial-comments/lib/editorial-comments.js:349 msgid "Save" msgstr "" @@ -549,7 +549,7 @@ msgid "Dec" msgstr "" #: modules/calendar/calendar.php:829 -#: modules/calendar/calendar.php:4039 +#: modules/calendar/calendar.php:4052 #: modules/content-overview/content-overview.php:1256 msgid "All statuses" msgstr "" @@ -559,19 +559,19 @@ msgid "All categories" msgstr "" #: modules/calendar/calendar.php:831 -#: modules/calendar/calendar.php:4074 +#: modules/calendar/calendar.php:4087 msgid "All tags" msgstr "" #: modules/calendar/calendar.php:832 -#: modules/calendar/calendar.php:4095 +#: modules/calendar/calendar.php:4108 #: modules/content-overview/content-overview.php:1300 #: modules/content-overview/content-overview.php:1303 msgid "All authors" msgstr "" #: modules/calendar/calendar.php:833 -#: modules/calendar/calendar.php:4122 +#: modules/calendar/calendar.php:4135 msgid "All types" msgstr "" @@ -584,7 +584,7 @@ msgid "%d weeks" msgstr "" #: modules/calendar/calendar.php:836 -#: modules/calendar/calendar.php:2142 +#: modules/calendar/calendar.php:2155 msgid "Today" msgstr "" @@ -721,52 +721,52 @@ msgstr "" msgid "It seems like it is taking too long. Please, try reloading the page again and check the browser console looking for errors." msgstr "" -#: modules/calendar/calendar.php:1802 +#: modules/calendar/calendar.php:1815 #: modules/content-overview/content-overview.php:1797 msgid "None" msgstr "" -#: modules/calendar/calendar.php:1822 +#: modules/calendar/calendar.php:1835 msgid "Edit this item" msgstr "" -#: modules/calendar/calendar.php:1822 -#: modules/calendar/calendar.php:3584 +#: modules/calendar/calendar.php:1835 +#: modules/calendar/calendar.php:3597 #: modules/content-overview/content-overview.php:1904 #: modules/editorial-comments/editorial-comments.php:632 #: modules/editorial-metadata/editorial-metadata.php:2817 msgid "Edit" msgstr "" -#: modules/calendar/calendar.php:1843 +#: modules/calendar/calendar.php:1856 #: modules/content-overview/content-overview.php:1942 msgid "Preview “%s”" msgstr "" -#: modules/calendar/calendar.php:1846 -#: modules/calendar/calendar.php:3601 +#: modules/calendar/calendar.php:1859 +#: modules/calendar/calendar.php:3614 #: modules/content-overview/content-overview.php:1945 msgid "Preview" msgstr "" -#: modules/calendar/calendar.php:1850 +#: modules/calendar/calendar.php:1863 #: modules/content-overview/content-overview.php:1926 msgid "View “%s”" msgstr "" -#: modules/calendar/calendar.php:1856 -#: modules/calendar/calendar.php:3598 +#: modules/calendar/calendar.php:1869 +#: modules/calendar/calendar.php:3611 #: modules/content-overview/content-overview.php:1932 msgid "View" msgstr "" -#: modules/calendar/calendar.php:1866 +#: modules/calendar/calendar.php:1879 msgid "Save “%s”" msgstr "" -#: modules/calendar/calendar.php:1967 -#: modules/calendar/calendar.php:3562 -#: modules/calendar/calendar.php:3652 +#: modules/calendar/calendar.php:1980 +#: modules/calendar/calendar.php:3575 +#: modules/calendar/calendar.php:3665 #: modules/content-overview/content-overview.php:629 #: modules/editorial-comments/library/EditorialCommentsTable.php:229 msgid "Author" @@ -774,189 +774,189 @@ msgid_plural "Authors" msgstr[0] "" msgstr[1] "" -#: modules/calendar/calendar.php:1975 -#: modules/calendar/calendar.php:3541 +#: modules/calendar/calendar.php:1988 +#: modules/calendar/calendar.php:3554 #: modules/content-overview/content-overview.php:628 msgid "Post Type" msgstr "" -#: modules/calendar/calendar.php:2094 +#: modules/calendar/calendar.php:2107 #: modules/content-overview/content-overview.php:1025 #: modules/content-overview/content-overview.php:1147 msgid "Reset" msgstr "" -#: modules/calendar/calendar.php:2102 +#: modules/calendar/calendar.php:2115 msgid "Forward 1 week" msgstr "" -#: modules/calendar/calendar.php:2111 +#: modules/calendar/calendar.php:2124 msgid "›" msgstr "" -#: modules/calendar/calendar.php:2117 +#: modules/calendar/calendar.php:2130 msgid "Forward %d weeks" msgstr "" -#: modules/calendar/calendar.php:2128 +#: modules/calendar/calendar.php:2141 msgid "»" msgstr "" -#: modules/calendar/calendar.php:2136 +#: modules/calendar/calendar.php:2149 msgid "Today is %s" msgstr "" -#: modules/calendar/calendar.php:2151 +#: modules/calendar/calendar.php:2164 msgid "Back %d weeks" msgstr "" -#: modules/calendar/calendar.php:2159 +#: modules/calendar/calendar.php:2172 msgid "«" msgstr "" -#: modules/calendar/calendar.php:2163 +#: modules/calendar/calendar.php:2176 msgid "Back 1 week" msgstr "" -#: modules/calendar/calendar.php:2172 +#: modules/calendar/calendar.php:2185 msgid "‹" msgstr "" -#: modules/calendar/calendar.php:2545 +#: modules/calendar/calendar.php:2558 msgid "Post types to show" msgstr "" -#: modules/calendar/calendar.php:2553 +#: modules/calendar/calendar.php:2566 msgid "Enable subscriptions in iCal or Google Calendar" msgstr "" -#: modules/calendar/calendar.php:2561 +#: modules/calendar/calendar.php:2574 msgid "Allow public access to subscriptions in iCal or Google Calendar" msgstr "" -#: modules/calendar/calendar.php:2569 +#: modules/calendar/calendar.php:2582 msgid "Statuses to display publish time" msgstr "" -#: modules/calendar/calendar.php:2577 +#: modules/calendar/calendar.php:2590 msgid "Posts publish time format" msgstr "" -#: modules/calendar/calendar.php:2585 +#: modules/calendar/calendar.php:2598 msgid "Default publish time for items created in the calendar" msgstr "" -#: modules/calendar/calendar.php:2593 +#: modules/calendar/calendar.php:2606 msgid "Field used for sorting the calendar items in a day cell" msgstr "" -#: modules/calendar/calendar.php:2601 +#: modules/calendar/calendar.php:2614 msgid "Max visible posts per date" msgstr "" -#: modules/calendar/calendar.php:2609 +#: modules/calendar/calendar.php:2622 msgid "Always show complete post titles" msgstr "" -#: modules/calendar/calendar.php:2628 +#: modules/calendar/calendar.php:2641 msgid "At least one post type must be selected" msgstr "" -#: modules/calendar/calendar.php:2645 +#: modules/calendar/calendar.php:2658 msgid "The number of weeks shown on the calendar can be changed on a user-by-user basis using the calendar's screen options." msgstr "" -#: modules/calendar/calendar.php:2659 +#: modules/calendar/calendar.php:2672 msgid "Disabled" msgstr "" -#: modules/calendar/calendar.php:2660 +#: modules/calendar/calendar.php:2673 msgid "Enabled" msgstr "" -#: modules/calendar/calendar.php:2678 +#: modules/calendar/calendar.php:2691 msgid "Regenerate calendar feed secret" msgstr "" -#: modules/calendar/calendar.php:2901 +#: modules/calendar/calendar.php:2914 msgid "Publishing Time" msgstr "" -#: modules/calendar/calendar.php:2902 -#: modules/calendar/calendar.php:3557 -#: modules/calendar/calendar.php:3637 +#: modules/calendar/calendar.php:2915 +#: modules/calendar/calendar.php:3570 +#: modules/calendar/calendar.php:3650 msgid "Post Status" msgstr "" -#: modules/calendar/calendar.php:2957 +#: modules/calendar/calendar.php:2970 msgid "All posts" msgstr "" -#: modules/calendar/calendar.php:3266 +#: modules/calendar/calendar.php:3279 msgid "Invalid input" msgstr "" -#: modules/calendar/calendar.php:3272 +#: modules/calendar/calendar.php:3285 msgid "Post not found" msgstr "" -#: modules/calendar/calendar.php:3277 +#: modules/calendar/calendar.php:3290 msgid "No enough permissions" msgstr "" -#: modules/calendar/calendar.php:3286 +#: modules/calendar/calendar.php:3299 msgid "Invalid date" msgstr "" -#: modules/calendar/calendar.php:3572 +#: modules/calendar/calendar.php:3585 msgid "Tag" msgid_plural "Tags" msgstr[0] "" msgstr[1] "" -#: modules/calendar/calendar.php:3643 +#: modules/calendar/calendar.php:3656 msgid "Publish Time" msgstr "" -#: modules/calendar/calendar.php:3671 +#: modules/calendar/calendar.php:3684 msgid "Tags" msgstr "" -#: modules/calendar/calendar.php:3780 +#: modules/calendar/calendar.php:3793 msgid "No date supplied." msgstr "" -#: modules/calendar/calendar.php:3791 +#: modules/calendar/calendar.php:3804 msgid "The selected post type is not enabled for the calendar." msgstr "" -#: modules/calendar/calendar.php:3821 +#: modules/calendar/calendar.php:3834 msgid "Invalid Status supplied." msgstr "" -#: modules/calendar/calendar.php:3845 +#: modules/calendar/calendar.php:3858 msgid "Invalid Publish Date supplied." msgstr "" -#: modules/calendar/calendar.php:3914 +#: modules/calendar/calendar.php:3927 msgid "Post created successfully" msgstr "" -#: modules/calendar/calendar.php:3921 +#: modules/calendar/calendar.php:3934 msgid "Post could not be created" msgstr "" -#: modules/calendar/calendar.php:4056 +#: modules/calendar/calendar.php:4069 msgid "View all categories" msgstr "" -#: modules/calendar/calendar.php:4147 +#: modules/calendar/calendar.php:4160 msgid "%s week" msgid_plural "%s weeks" msgstr[0] "" msgstr[1] "" -#: modules/calendar/calendar.php:4270 +#: modules/calendar/calendar.php:4283 msgid "The selected user doesn't have enough permissions to be set as the post author." msgstr "" From 7b1c3bb7f0ad07f4d7fec5928be9a02378772428 Mon Sep 17 00:00:00 2001 From: Kevin Behrens <43488774+agapetry@users.noreply.github.com> Date: Thu, 4 Jan 2024 18:37:49 -0500 Subject: [PATCH 10/10] Update change log --- readme.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.txt b/readme.txt index b5f01048..ef175cc5 100644 --- a/readme.txt +++ b/readme.txt @@ -115,6 +115,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). = [4.0.2] - 04 Jan 2024 = +* Fixed : Calendar did not show status colors if PublishPress Statuses plugin is not activated * Compat: PublishPress Statuses - iframe Install Now button did not work = [4.0.1] - 04 Jan 2024 =