WP_Widget is deprecated hatası

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct().

Hata basit bir şekilde cözülebiliyor. $this->WP_Widget şu şekilde parent::__construct değiştirdin mi sorun kalkar.

function ornekFunc() {
global $xxx;
$widget_ops = array(‘classname’ => ‘OrnekXXXX’, ‘description’ => ‘Ornek Widget’ );
$this->WP_Widget(‘OrnekXXXX’,”Ornek XXX”, $widget_ops);
parent::__construct(‘OrnekXXXX’,”Ornek XXX”, $widget_ops);