- FlatPress provides the admin with all relevant data that could contribute to solving the problem.
- In the event that templates are faulty or a plugin is disrupting FlatPress, the support data can be retrieved via the URL http(s)://your-domain.ltd/admin/support.php.
- The chmod octal value from the defaults.php file is used for the hint. This has the advantage that you do not have to adjust the 13 language files every time you make a change.
- When restoring the file access rights, a test file in the fp-content directory is used to check whether it is writable. If failed, then -1
Updated calls to current Smarty API (register_function()/register_modifier()/register_block() -> registerPlugin(); assign_by_ref() -> assignByRef()).
Fixed file includes in templates with quotes.
Removed SmartyValidate.class.php includes.
Still work in progress as some errors still appear!
Removed unused and/or commented code.
Replaced calls to deprecated each() with array_shift() (not completely done yet, still some more to fix!).
Replaced call to deprecated create_function() with real callback function.
Please visit his website http://www.aadmm.org/fp-patch/ and read patch-description.txt to learn more about the details of the patch.
I adapted the patch slighty: It now does not just add a __construct() function to the existing class-named one, instead it replaces it completely. Therefore, some parent::__construct() calls had to be changed, too.