0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

🔥 💩 Properly remove pageUrl (#7969)

no issue

- remove references to the old pageUrl helper, which was deprecated in favour of page_url
- this should have been done in a98efe1b68
This commit is contained in:
Hannah Wolfe 2017-02-09 19:21:27 +00:00 committed by Katharina Irrgang
parent 39ec35627b
commit 1e60cbf16f

View file

@ -29,6 +29,7 @@ coreHelpers.has = require('./has');
coreHelpers.meta_description = require('./meta_description'); coreHelpers.meta_description = require('./meta_description');
coreHelpers.meta_title = require('./meta_title'); coreHelpers.meta_title = require('./meta_title');
coreHelpers.navigation = require('./navigation'); coreHelpers.navigation = require('./navigation');
coreHelpers.page_url = require('./page_url');
coreHelpers.pagination = require('./pagination'); coreHelpers.pagination = require('./pagination');
coreHelpers.plural = require('./plural'); coreHelpers.plural = require('./plural');
coreHelpers.post_class = require('./post_class'); coreHelpers.post_class = require('./post_class');
@ -39,10 +40,6 @@ coreHelpers.title = require('./title');
coreHelpers.twitter_url = require('./twitter_url'); coreHelpers.twitter_url = require('./twitter_url');
coreHelpers.url = require('./url'); coreHelpers.url = require('./url');
// Specialist helpers for certain templates
coreHelpers.page_url = require('./page_url');
coreHelpers.pageUrl = require('./page_url').deprecated;
coreHelpers.helperMissing = function (arg) { coreHelpers.helperMissing = function (arg) {
if (arguments.length === 2) { if (arguments.length === 2) {
return undefined; return undefined;
@ -101,7 +98,6 @@ registerHelpers = function () {
registerThemeHelper('meta_title', coreHelpers.meta_title); registerThemeHelper('meta_title', coreHelpers.meta_title);
registerThemeHelper('navigation', coreHelpers.navigation); registerThemeHelper('navigation', coreHelpers.navigation);
registerThemeHelper('page_url', coreHelpers.page_url); registerThemeHelper('page_url', coreHelpers.page_url);
registerThemeHelper('pageUrl', coreHelpers.pageUrl);
registerThemeHelper('pagination', coreHelpers.pagination); registerThemeHelper('pagination', coreHelpers.pagination);
registerThemeHelper('plural', coreHelpers.plural); registerThemeHelper('plural', coreHelpers.plural);
registerThemeHelper('post_class', coreHelpers.post_class); registerThemeHelper('post_class', coreHelpers.post_class);