From 1712e3b02ff729e297ca1ea0b9b949dd0bca00ce Mon Sep 17 00:00:00 2001
From: Sara Arjona
Date: Tue, 15 Nov 2016 14:53:04 +0100
Subject: [PATCH] xtec-widget-data-users: Fixed some warnings (they appear
enabling debug)
---
src/CHANGES.txt | 5 +++++
.../xtec-widget-data-users/xtec-class-data-user.php | 7 +++----
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/CHANGES.txt b/src/CHANGES.txt
index 0062e5ff5..6a673dd42 100644
--- a/src/CHANGES.txt
+++ b/src/CHANGES.txt
@@ -3,6 +3,11 @@ Release notes for XTECBlocs (http://blocs.xtec.cat)
More information on each of the fixes can be found in the project
development home at https://github.com/projectestac/xtecblocs
+Changes in progress
+---------------------------------------------------------------------------------------
+- xtec-widget-data-users: Fixed some warnings (they appear enabling debug)
+
+
16.11.14
---------------------------------------------------------------------------------------
- Dashboard: Reviewed access to menu options in dashboard for roles xtec_teacher and contributor (Trello #1354)
diff --git a/src/wp-content/plugins/xtec-widget-data-users/xtec-class-data-user.php b/src/wp-content/plugins/xtec-widget-data-users/xtec-class-data-user.php
index cdf07971c..5f8a7ade9 100644
--- a/src/wp-content/plugins/xtec-widget-data-users/xtec-class-data-user.php
+++ b/src/wp-content/plugins/xtec-widget-data-users/xtec-class-data-user.php
@@ -32,7 +32,7 @@ function users_data_widget() {
'classname' => 'xtec_user_data_widget',
'description' => __('Widget to add data users','xtec-widget-users-data')
);
- $this->WP_Widget('users_data_widget', __('Users information','xtec-widget-users-data'), $options);
+ $this->__construct('users_data_widget', __('Users information','xtec-widget-users-data'), $options);
add_action('admin_enqueue_scripts', array($this, 'upload_scripts'));
}
@@ -51,12 +51,11 @@ function form( $instance ) {
// Default image
$imageBase64 = plugins_url() . '/xtec-widget-data-users/assets/images/user_default.png';
- $defaults = array( 'image_uri' => $imageBase64 );
+ $defaults = array( 'name' => '', 'description' => '', 'email' => '', 'web' => '', 'twitter'=> '', 'image_uri' => $imageBase64 );
$instance = wp_parse_args( ( array ) $instance, $defaults);
$image_uri = $instance['image_uri'];
$name = $instance['name'];
- //$firstname = $instance['firstname'];
$description = $instance['description'];
$email = $instance['email'];
$web = $instance['web'];
@@ -77,7 +76,7 @@ function form( $instance ) {
-
+
: