Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Stop using deprecated API #316

Merged

Conversation

emteknetnz
Copy link
Member

@@ -95,12 +95,8 @@ public function getFooter()
return FooterHolder::get_one(FooterHolder::class);
}

/**
* @deprecated 2.2.0 Use RelatedPagesThrough() instead
Copy link
Member Author

@emteknetnz emteknetnz Nov 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undeprecating because it's called a lot by templates in the starter theme. Given lots of project will have copied the theme files into their own theme, I think forcing templates to update this to <% loop $RelatedPagesThrough %> (which may not even work, and also just looks weird) is adding too much upgrade friction

@emteknetnz emteknetnz force-pushed the pulls/2/stop-using-depr branch from 8d7964d to 5542b38 Compare November 28, 2022 04:32
@emteknetnz emteknetnz marked this pull request as ready for review November 28, 2022 21:16
@sabina-talipova sabina-talipova merged commit 70f7275 into silverstripe:2 Dec 5, 2022
@sabina-talipova sabina-talipova deleted the pulls/2/stop-using-depr branch December 5, 2022 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants