This release contains fixes for minor bugs and issues reported by Ghost users.
View the changelog for full details: v5.33.1...v5.33.2
🪄 Love open source? We're hiring JavaScript Engineers to work on Ghost full-time
Tag Name: v5.33.2
Release Date: 1/31/2023
GhostOpen-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.
Ghost v5.33.2 fixes a critical issue with the {{price}} helper that previously caused page rendering errors when price data was empty. Now, instead of throwing an error, the helper will render an empty string, following the same pattern used by other helpers like {{img_url}} and {{url}}. This change improves site stability by preventing crashes on pages that use the price helper with missing data.
{{price}} helper to render empty instead of throwing errors when price data is missing{{img_url}} and {{url}} that already follow this patternNo migration steps are required for this release. The fix for the {{price}} helper is backward compatible and will automatically improve the behavior of existing themes and content that use the price helper.
This release is recommended for all Ghost users, especially those using themes that include the {{price}} helper. The update improves site stability by preventing page rendering errors when price data is missing.
Upgrading to v5.33.2 is straightforward and should not cause any disruption to your site. As always, it's recommended to backup your Ghost installation before upgrading.
{{price}} helper error handlingThe {{price}} helper has been updated to handle cases where price data is empty or missing. Previously, using the helper with empty price data would throw an error and cause page rendering to fail. Now, it will render an empty string instead.
This fix specifically addresses scenarios like using legacy syntax such as {{price [email protected]}} when price data is not available. Instead of causing a page render error, the helper will now return an empty price string.
This change brings the {{price}} helper in line with other helpers like {{img_url}} and {{url}} which already follow the pattern of returning an empty string instead of crashing when data is missing.
No new features were introduced in this release.
No security fixes were included in this release.
No specific performance improvements were included in this release.
This release focuses on improving the robustness of Ghost's templating system by fixing how the {{price}} helper handles missing data. The change prevents page rendering errors that could previously occur when price data was empty or missing, which enhances overall site stability.
The fix is particularly important for sites using themes that include price helpers, especially with legacy syntax patterns. By making the {{price}} helper more resilient and consistent with other helpers, this update reduces the likelihood of visitors encountering broken pages due to template rendering errors.
This change also makes theme development more forgiving, as developers no longer need to implement special checks to handle cases where price data might be missing.
This release contains fixes for minor bugs and issues reported by Ghost users.
View the changelog for full details: v5.33.1...v5.33.2
🪄 Love open source? We're hiring JavaScript Engineers to work on Ghost full-time