in order to make FlatPress PHP 8.1 compatible, I spent quite a lot of time on making everything work with the current 4.x version of the Smarty template engine (see issue 94).
You'll find the current code in the Smarty update branch: https://github.com/flatpressblog/flatpr ... artyupdate
- All improvements and bugfixes from the main development branch (such as the Gallery captions plugin and the PhotoSwipe plugin) are already contained in the Smarty update branch.
- With Smarty 4, FlatPress' minimum requirement is PHP 7.1 (was 5.6 until then).
- Smarty 4 is much less forgiving when it comes to syntax correctness of your template files. Also, the Smarty function name schema changed from underline_style to CamelCaseStyle, e.g. getTemplateVars() instead of get_template_vars().
Make sure your plugins and themes continue to work.
If so, I'd then merge this branch back into the master (and into the Responsive admin branch, which then would have to be tested as well).
Then I can continue to work on PHP 8.1 compatibility with issue 92: The unholy "strftime() is deprecated" problem...
Thanks a lot,