ftpproxy / luftdaten-wordpress-plugin

1 stars 2 forks source link

Migration to php 8.1 #6

Closed abulvenz closed 1 year ago

abulvenz commented 2 years ago

When I updated the server PHP version to 8.1 WordPress showed an error screen in front- and back-end when loading the plugin. create_function was removed due to security reasons in the meantime. https://www.php.net/manual/en/function.create-function

The constructors now need to be defined using __construct. https://www.php.net/manual/en/language.oop5.decon.php

FYI I have used the code from within the current version of the WordPress plugin. That's why the version is 1.3.2 now it seems.

@bleeptrack Can you please redeploy the code to the plugin repository afterwards?

Thanks for the plugin!

BTW I have not yet tested the other features such as the map, but if I find something more to do I will create a separate pull request.