Deprecated widget constructor
-
Hello!
I don’t know why this discussion was closed, and I don’t know how to submit a patch for that.
This is the simple SVN patch:
Index: ad-injection-widget.php =================================================================== --- ad-injection-widget.php (revision 1836889) +++ ad-injection-widget.php (working copy) @@ -18,7 +18,7 @@ function __construct() { $widget_ops = array( 'classname' => 'adinjwidget', 'description' => 'Insert Ad Injection adverts into your sidebars/widget areas.' ); $control_ops = array( 'width' => 500, 'height' => 300, 'id_base' => 'adinj' ); - $this->WP_Widget( 'adinj', 'Ad Injection', $widget_ops, $control_ops ); + parent::__construct( 'adinj', 'Ad Injection', $widget_ops, $control_ops ); } function widget( $args, $instance ) {
The topic ‘Deprecated widget constructor’ is closed to new replies.