can you fix php notice and deprecated warning for future updates?
-
at buddypress-who-clicked-at-my-profile.php:
in
function widget($args, $instance) {
add
$content = "";
for initialize the variable $contentfix
WP_Widget is deprecated from version 4.3.0! use
__construct() instead.old method:
function BuddypressWCAMP_Widget_showMyVisitors() { $widget_ops = array('classname' => 'buddypresswcamp', 'description' => __('Show visitors of my buddypress profile page', 'buddypresswcamp')); $this->Widget('buddypresswcamp-widget-showMyVisitors', __('Show bp profile visitors', 'buddypresswcamp'), $widget_ops); }
new method
function __construct() { $widget_ops = array('classname' => 'buddypresswcamp', 'description' => __('Show visitors of my buddypress profile page', 'buddypresswcamp')); parent::__construct('buddypresswcamp-widget-showMyVisitors', __('Show bp profile visitors', 'buddypresswcamp'), $widget_ops); }
tnk y 🙂
https://wordpress.org/plugins/buddypress-who-clicked-at-my-profile/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘can you fix php notice and deprecated warning for future updates?’ is closed to new replies.