diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a76ba2dc3..a6cb507919 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog # +## v2.2.3 (September 16, 2026) ## + +- Fix: Resolved content and display issues on the What's New page. + ## v2.2.2 (September 15, 2026) ## - Feat: Organize media into folders in bulk — the media library list view now has a "Move to folder…" bulk action, and each user's folder sidebar remembers its own open/closed state. diff --git a/README.md b/README.md index 39262cb5ca..fba8238270 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Tested up to: 7.1 Requires PHP: 7.4 -Stable tag: 2.2.2 +Stable tag: 2.2.3 License: [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html) diff --git a/godam.php b/godam.php index cfeecf42f1..519d7a74c4 100644 --- a/godam.php +++ b/godam.php @@ -3,7 +3,7 @@ * Plugin Name: GoDAM * Plugin URI: https://godam.io * Description: Seamlessly manage and deliver your media assets directly from the cloud-based media management. Store assets efficiently, stream them via a CDN, and enhance your website's performance and user experience. Featuring adaptive bit rate streaming, adding interactive layers in videos, and taking full advantage of a digital asset management solution within WordPress. - * Version: 2.2.2 + * Version: 2.2.3 * Requires at least: 6.5 * Requires PHP: 7.4 * Text Domain: godam @@ -43,7 +43,7 @@ /** * The version of the plugin */ - define( 'RTGODAM_VERSION', '2.2.2' ); + define( 'RTGODAM_VERSION', '2.2.3' ); } if ( ! defined( 'RTGODAM_API_BASE' ) ) { diff --git a/languages/godam.pot b/languages/godam.pot index 94c84b1921..8e091f27f3 100644 --- a/languages/godam.pot +++ b/languages/godam.pot @@ -2,7 +2,7 @@ # This file is distributed under the GPLv2 or later. msgid "" msgstr "" -"Project-Id-Version: GoDAM 2.2.2\n" +"Project-Id-Version: GoDAM 2.2.3\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/godam\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/package-lock.json b/package-lock.json index 9069147e40..58ce4bbb4b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "godam", - "version": "2.2.2", + "version": "2.2.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "godam", - "version": "2.2.2", + "version": "2.2.3", "license": "GPL-2.0-or-later", "dependencies": { "@dnd-kit/core": "^6.3.1", diff --git a/package.json b/package.json index 565dce4781..70773f36da 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "godam", - "version": "2.2.2", + "version": "2.2.3", "description": "A WordPress plugin to manage digital assets", "private": true, "author": "rtCamp", diff --git a/readme.txt b/readme.txt index aa7cee5036..10a6a6c44b 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: transcoder, video, media library, folders, file manager Requires at least: 6.5 Tested up to: 7.1 Requires PHP: 7.4 -Stable tag: 2.2.2 +Stable tag: 2.2.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -224,6 +224,10 @@ A. Yes, GoDAM provides robust analytics tools to track video engagement, includi == Changelog == += v2.2.3 (September 16, 2026) = + +- Fix: Resolved content and display issues on the What's New page. + = v2.2.2 (September 15, 2026) = - Feat: Organize media into folders in bulk — the media library list view now has a "Move to folder…" bulk action, and each user's folder sidebar remembers its own open/closed state. @@ -241,17 +245,6 @@ A. Yes, GoDAM provides robust analytics tools to track video engagement, includi - Fix: Site Icon / favicon no longer 404s on sites using GoDAM CDN offload. - Fix: Resolved open Dependabot security advisories (npm + Composer). -= v2.2.0 (August 27, 2026) = - -- Feat: The Document block now handles far more than PDFs. You can embed and preview Word, Excel, PowerPoint, OpenDocument, and plain-text files. -- Feat: Added the same document preview support to the Elementor and WPBakery GoDAM Document widgets. -- Feat: Show in lightbox — a new option opens a video in a centered lightbox overlay when its poster is clicked, instead of playing it in place. Available in the GoDAM Video block, the Elementor widget, and the WPBakery element. -- Tweak: The GoDAM media transcoding tool now supports bulk transcoding of all media types supported by GoDAM. -- Fix: Resolved bugs in the GoDAM Media Library module. -- Fix: Fixed the transcription source issue for GoDAM videos. -- Fix: Layer analytics now records a view for each hotspot in its own right, so a hotspot's views, conversion, and "No Action" describe that hotspot rather than the whole layer. This stays correct even as hotspots are added or removed over time. - - [CHECK THE FULL CHANGELOG](https://github.com/rtCamp/godam/blob/main/CHANGELOG.md) == External Services == diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 9b2c7c02cd..863723669e 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -194,6 +194,131 @@ function wp_parse_url( $url, $component = -1 ) { class WP_REST_Controller {} // phpcs:ignore Universal.Files.SeparateFunctionsFromOO.Mixed } +/* + * --------------------------------------------------------------------------- + * Stubs for the Release_Post caller boundary (ReleasePostFeatureParsingTest's + * get_release_post() test). The HTTP + transient responses are driven by + * $GLOBALS['rtgodam_stub'] so a test can feed a canned remote payload and force + * a cache miss, exercising the full fetch -> parse path without WordPress. + * --------------------------------------------------------------------------- + */ +if ( ! defined( 'RTGODAM_IO_API_BASE' ) ) { + define( 'RTGODAM_IO_API_BASE', 'https://godam.io' ); +} + +if ( ! class_exists( 'WP_Error' ) ) { + class WP_Error { // phpcs:ignore Universal.Files.SeparateFunctionsFromOO.Mixed + /** + * @param mixed $code Ignored. + * @param mixed $message Ignored. + * @param mixed $data Ignored. + */ + public function __construct( $code = '', $message = '', $data = '' ) {} // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed + } +} + +if ( ! class_exists( 'WP_REST_Response' ) ) { + class WP_REST_Response { // phpcs:ignore Universal.Files.SeparateFunctionsFromOO.Mixed + /** @var mixed */ + public $data; + + /** + * @param mixed $data Response payload. + * @param int $status Ignored. + */ + public function __construct( $data = null, $status = 200 ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed + $this->data = $data; + } + + /** @return mixed */ + public function get_data() { + return $this->data; + } + } +} + +if ( ! function_exists( 'wp_json_encode' ) ) { + + /** + * @param mixed $data Data to encode. + * @return string|false + */ + function wp_json_encode( $data ) { + return json_encode( $data ); // phpcs:ignore WordPress.WP.AlternativeFunctions.json_encode_json_encode + } +} + +if ( ! function_exists( 'is_wp_error' ) ) { + + /** + * @param mixed $thing Value to test. + * @return bool + */ + function is_wp_error( $thing ) { + return $thing instanceof \WP_Error; + } +} + +if ( ! function_exists( 'wp_remote_get' ) ) { + + /** + * @param string $url Requested URL (recorded). + * @param array $args Ignored. + * @return mixed + */ + function wp_remote_get( $url, $args = array() ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed, WordPress.WP.AlternativeFunctions.wp_remote_get_wp_remote_get + $GLOBALS['rtgodam_stub']['last_remote_url'] = $url; + return $GLOBALS['rtgodam_stub']['remote_response'] ?? array(); + } +} + +if ( ! function_exists( 'wp_remote_retrieve_response_code' ) ) { + + /** + * @param mixed $response Ignored; the code is supplied by the test. + * @return int + */ + function wp_remote_retrieve_response_code( $response ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found + return (int) ( $GLOBALS['rtgodam_stub']['remote_code'] ?? 200 ); + } +} + +if ( ! function_exists( 'wp_remote_retrieve_body' ) ) { + + /** + * @param mixed $response Ignored; the body is supplied by the test. + * @return string + */ + function wp_remote_retrieve_body( $response ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found + return (string) ( $GLOBALS['rtgodam_stub']['remote_body'] ?? '' ); + } +} + +if ( ! function_exists( 'get_transient' ) ) { + + /** + * @param string $key Transient key. + * @return mixed False on a miss. + */ + function get_transient( $key ) { + return $GLOBALS['rtgodam_stub']['transient'][ $key ] ?? false; + } +} + +if ( ! function_exists( 'set_transient' ) ) { + + /** + * @param string $key Transient key. + * @param mixed $value Value to store. + * @param int $expiration Ignored. + * @return true + */ + function set_transient( $key, $value, $expiration = 0 ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed + $GLOBALS['rtgodam_stub']['transient'][ $key ] = $value; + return true; + } +} + /* * Hook registry and translation-recording stubs. These let the #465 guards * assert behaviour — which hook a callback lands on, and whether anything diff --git a/tests/php/ReleasePostFeatureParsingTest.php b/tests/php/ReleasePostFeatureParsingTest.php index d204fe2a6a..643e6d9374 100644 --- a/tests/php/ReleasePostFeatureParsingTest.php +++ b/tests/php/ReleasePostFeatureParsingTest.php @@ -134,6 +134,42 @@ public function test_real_release_post_with_video_block_does_not_leak() { $this->assertStringContainsString( 'just a click', $preview['description'] ); } + /** + * Caller-boundary guard: drive the public get_release_post() with a mocked + * remote response and a forced cache miss. This covers the fetch -> parse + * ordering, so if pre-parse sanitization is ever reintroduced in the caller, + * the real production case (a sibling