From this:
class WP_Widget_Simple_Image extends WP_Widget { function WP_Widget_Simple_Image() { …
to this:
class WP_Widget_Simple_Image extends WP_Widget { function __construct() { …
Warning: Please note that if your plugin or theme is by a third-party who has updates, any updates will remove your fixes. Please notify the plugin author or theme author rather than making these changes yourself.
See also:
- Fix create_function() deprecated PHP function in WordPress
- Fix each() deprecated PHP function in WordPress
- Fix PHP error “called constructor method for WP_Widget… deprecated”
[…] Fix PHP error “Methods with same name as their class will not be constructors” […]