Skip to content

Commit

Permalink
🔥 💩 Properly remove pageUrl (#7969)
Browse files Browse the repository at this point in the history
no issue

- remove references to the old pageUrl helper, which was deprecated in favour of page_url
- this should have been done in a98efe1
  • Loading branch information
ErisDS authored and kirrg001 committed Feb 9, 2017
1 parent 39ec356 commit 1e60cbf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/server/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ coreHelpers.has = require('./has');
coreHelpers.meta_description = require('./meta_description');
coreHelpers.meta_title = require('./meta_title');
coreHelpers.navigation = require('./navigation');
coreHelpers.page_url = require('./page_url');
coreHelpers.pagination = require('./pagination');
coreHelpers.plural = require('./plural');
coreHelpers.post_class = require('./post_class');
Expand All @@ -39,10 +40,6 @@ coreHelpers.title = require('./title');
coreHelpers.twitter_url = require('./twitter_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) {
if (arguments.length === 2) {
return undefined;
Expand Down Expand Up @@ -101,7 +98,6 @@ registerHelpers = function () {
registerThemeHelper('meta_title', coreHelpers.meta_title);
registerThemeHelper('navigation', coreHelpers.navigation);
registerThemeHelper('page_url', coreHelpers.page_url);
registerThemeHelper('pageUrl', coreHelpers.pageUrl);
registerThemeHelper('pagination', coreHelpers.pagination);
registerThemeHelper('plural', coreHelpers.plural);
registerThemeHelper('post_class', coreHelpers.post_class);
Expand Down

0 comments on commit 1e60cbf

Please sign in to comment.