diff --git a/changelog.md b/changelog.md index f53dfe5a..0abf352a 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,4 @@ -### [unreleased] +### 4.1.0 - 2024-01-14 #### Added diff --git a/completionist.php b/completionist.php index 3ac8f56f..79b6ad2b 100644 --- a/completionist.php +++ b/completionist.php @@ -10,7 +10,7 @@ * Plugin Name: Completionist – Asana for WordPress * Plugin URI: https://purpleturtlecreative.com/completionist/ * Description: Manage, pin, automate, and display Asana tasks in relevant areas of your WordPress admin and website frontend. - * Version: 4.0.0 + * Version: 4.1.0 * Requires PHP: 7.2 * Requires at least: 5.0.0 * Tested up to: 6.4.2 diff --git a/readme.txt b/readme.txt index b1786863..e4f5c4a5 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: michelleblanchette Tags: asana, project, task, management, manager, integration, api, work, business, collaboration, client, customer, support, portal, dashboard, widget, metabox, shortcodes Requires at least: 5.0.0 Tested up to: 6.4.2 -Stable tag: 4.0.0 +Stable tag: 4.1.0 Requires PHP: 7.2 License: GPL-3.0-or-later License URI: https://www.gnu.org/licenses/gpl-3.0.txt @@ -97,7 +97,20 @@ This plugin is now hosted from the official WordPress.org Plugins directory. Ple == Changelog == -_Here's what has changed in the past 3 releases. To access the complete changelog history, please visit [https://purpleturtlecreative.com/completionist/plugin-info/](https://purpleturtlecreative.com/completionist/plugin-info/) or see `changelog.md` in Completionist's files._ +_Here's what changed in the past 3 releases. To access the complete changelog history, please visit [https://purpleturtlecreative.com/completionist/plugin-info/](https://purpleturtlecreative.com/completionist/plugin-info/) or see `changelog.md` in Completionist's files._ + +### 4.1.0 - 2024-01-14 + +#### Added + +- New shortcode attribute `layout` to specify a custom layout for the `[ptc_asana_project]` shortcode. Note this is only useful for extenders and third-party customizations. Completionist always displays projects in `list` layout by default. +- New shortcode attribute `sort_tasks_by` to sort tasks by the specified field. Common values are `due_on`, `assignee`, `completed_at`, and `name`. Unlike Asana, subtasks are also sorted. +- `.pdf` video attachments on tasks are now supported. +- External attachments (eg. Vimeo and YouTube embeds) are now displayed as their oEmbed HTML representations when available. + +#### Changed + +- Unsupported or otherwise non-displayable task attachments are now listed as error or warning notices for clarity. Previously, such attachments would simply be logged to the browser console and ignored. ### 4.0.0 - 2023-12-10 @@ -152,15 +165,3 @@ _Here's what has changed in the past 3 releases. To access the complete changelo #### Added - New PHP filter hook `ptc_completionist_project_task_fields` to edit the task fields that will be retrieved for each task in an Asana project. - -### 3.10.2 - 2023-10-10 - -#### Changed - -- Clearing the Asana Data Cache no longer completely deletes all request tokens, so it's now compatible with frontend page caching. - -#### Fixed - -- Media attachments with uppercase file suffix, such as `JPG` or `PNG`, would not be displayed in Project Embeds. -- Style issues on the Settings screen when using Chrome with the Loom browser extension. -- Error 404 when using the new Asana project URL as the `src` in Project Embeds. diff --git a/src/includes/class-asana-interface.php b/src/includes/class-asana-interface.php index 3ac6715e..ab434687 100755 --- a/src/includes/class-asana-interface.php +++ b/src/includes/class-asana-interface.php @@ -1008,7 +1008,7 @@ public static function get_project_data( /** * Sorts tasks by the given field. * - * @since [unreleased] + * @since 4.1.0 * * @param \stdClass[] $tasks The tasks to be sorted. * @param string $sort_field The task attribute to sort tasks by. diff --git a/src/includes/class-html-builder.php b/src/includes/class-html-builder.php index b229a108..406b67a8 100644 --- a/src/includes/class-html-builder.php +++ b/src/includes/class-html-builder.php @@ -504,7 +504,7 @@ function ( $object_tag_matches ) use ( &$replacements ) { /** * Gets the oEmbed HTML for the given URL. * - * @since [unreleased] + * @since 4.1.0 * * @param string $url The URL. * @return string The HTML. Empty string on failure.