Page 1 of 1
Where do you find the replacement functions for deprecated ones?
Posted: Sat Aug 07, 2021 3:32 am
by gsmiley007
This is Raiwa's list, but there are still a lot not listed there.
https://docs.google.com/spreadsheets/d/ ... edit#gid=0
Example: tep_get_country_list
Thanks
Re: Where do you find the replacement functions for deprecated ones?
Posted: Sat Aug 07, 2021 5:16 am
by ecartz
Start at
GitHub and do a search for the function name in that repository. That takes you to the
search results page. On that page, you should be able to see the
Code: Select all
trigger_error('The tep_get_country_list function has been deprecated.', E_USER_DEPRECATED);
Click in to see it in the
file. There you can see that the very
next line is
Code: Select all
return Country::draw_menu($name, $selected, phoenix_normalize($parameters));
Often, but not in this case, you will then be able to click on the replacement (draw_menu here) and it will show you places where it is used. You can then use Blame to find when the change was made and see what changed.
Re: Where do you find the replacement functions for deprecated ones?
Posted: Sat Aug 07, 2021 6:48 am
by raiwa
ecartz wrote: ↑Sat Aug 07, 2021 5:16 amand it will show you places where it is used. You can then use Blame to find when the change was made and see what changed.
… and add the missing function to the cheat set.
Don’t forget to add your user name.
Re: Where do you find the replacement functions for deprecated ones?
Posted: Sun Aug 08, 2021 7:48 pm
by gsmiley007
thanks
Re: Where do you find the replacement functions for deprecated ones?
Posted: Tue Aug 31, 2021 3:15 pm
by GdNico
Hi
Could you explain why some functions are deprecated?
(It's just to understand...)
Thanks
Re: Where do you find the replacement functions for deprecated ones?
Posted: Tue Aug 31, 2021 3:50 pm
by burt
GdNico wrote: ↑Tue Aug 31, 2021 3:15 pm
Hi
Could you explain why some functions are deprecated?
(It's just to understand...)
Thanks
Modernisation of Codebase would be one of the main reasons.