Use PHP5 __construct

This commit is contained in:
Scott Walkinshaw
2012-09-20 10:30:39 -06:00
parent 88f9863cf2
commit 0f375836f2

View File

@@ -37,7 +37,7 @@ class Roots_Vcard_Widget extends WP_Widget {
'email' => 'Email'
);
function Roots_Vcard_Widget() {
function __construct() {
$widget_ops = array('classname' => 'widget_roots_vcard', 'description' => __('Use this widget to add a vCard', 'roots'));
$this->WP_Widget('widget_roots_vcard', __('Roots: vCard', 'roots'), $widget_ops);