Replace php4 style constructor with php5 constructor

This fixes a deprecation error
This commit is contained in:
David Fuhr 2019-10-12 14:08:25 +02:00
parent e38a8b76c2
commit 6a59d80963

View file

@ -124,10 +124,10 @@ function kr8_wpsearch($form) {
/************* SOCIAL MEDIA WIDGET *****************/
class kr8_socialmedia extends WP_Widget {
function kr8_socialmedia() {
function __construct() {
$widget_ops = array('description' => 'Links zu deinen Profilen in den Sozialen Netzwerken.');
parent::WP_Widget(false, __('Social Media Links'),$widget_ops);
parent::__construct(false, __('Social Media Links'),$widget_ops);
}
function widget($args, $instance) {