cyberhobo / wordpress-geo-mashup

Official repository for Geo Mashup, the plugin that makes WordPress into a GeoCMS. Documentation:
https://github.com/cyberhobo/wordpress-geo-mashup/wiki/Getting-Started
63 stars 15 forks source link

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP #795

Closed explorier closed 6 years ago

explorier commented 6 years ago

Just sharing this deprecation notice I got on a PHP 7 site. Thanks for the great plugin!

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GeoMashupCustom has a deprecated constructor in /srv/bindings/1d3f7b6cca37450b9e30814dbbacef6f/code/wp-content/plugins/geo-mashup-custom/geo-mashup-custom.php on line 31

cyberhobo commented 6 years ago

Thanks for the report, hopefully that's an easy fix.

cyberhobo commented 6 years ago

Ah, so now I see that this is the Geo Mashup Custom plugin, not Geo Mashup itself. It was meant not to require upgrades so your customizations wouldn't be deleted, which I guess worked for over a decade ;P.

Now the easiest way forward is probably to manually replace the geo-mashup-custom.php file with this one:

https://github.com/cyberhobo/geo-mashup-custom/blob/master/geo-mashup-custom.php

Being careful of course to leave your own customization files in the plugin folder intact.

explorier commented 6 years ago

Aha, great. Thanks for the patch!