0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/frontend/services/theme-engine
Rishabh Garg 1345268089
🐛 Fixed incorrect price data in themes (#12985)
closes https://github.com/TryGhost/Ghost/issues/12980
closes https://github.com/TryGhost/Team/issues/730

As part of changes in 4.6, the default price ids for monthly/yearly prices are stored in new settings - `members_monthly_price_id`, `members_yearly_price_id` - which are used to determine current active prices for the site from list of all existing prices. The `@price` helper was incorrectly still relying on the old logic for active monthly/yearly price using the first active price with matching nickname, and resulted in showing incorrect price data on the theme.

- Updated tests to check price data using settings value
2021-05-26 22:58:26 +05:30
..
config Moved theme config to new theme engine service 2021-04-21 14:21:32 +01:00
engines Moved theme engines to new theme engine service 2021-04-22 21:05:01 +01:00
handlebars Fixed weird require in theme templates 2021-05-04 13:32:17 +01:00
i18n Moved i18n basePath concept from themes to core 2021-05-06 19:51:38 +01:00
active.js Improved theme locale handling 2021-05-05 16:13:26 +01:00
engine.js
index.js Moved activate from themes to the bridge 2021-04-27 13:52:19 +01:00
middleware.js 🐛 Fixed incorrect price data in themes (#12985) 2021-05-26 22:58:26 +05:30
preview.js Moved theme preview mw to new theme engine service 2021-04-24 19:56:00 +01:00