Fixed I did for widget() function
-
I’ve noticed that widget are coming with “Season:” string not linked to local language. ‘Season:’ is hardcoded within func widget() in widget.php file so, I’ve changed lines #95 & #97 of wp-content/plugins/leaguemanager/lib/widget.php file as follow
FROM:echo $before_widget . $before_title ."<center>". $league->title . "<br />Season: " . $season ."</center>". $after_title; } else { echo $before_widget . $before_title ."<center>". $league->title . "<br />Season: " . $season . "<br />Group: " . $instance['group'] ."</center>". $after_title;
CHANGED TO:
echo $before_widget . $before_title ."<center>". $league->title . "<br />". __( 'Season', 'leaguemanager' ) . ": " . $season ."</center>". $after_title; } else { echo $before_widget . $before_title ."<center>". $league->title . "<br />". __( 'Season', 'leaguemanager' ) . ": " . $instance['group'] ."</center>". $after_title; }
I’d suggest you guys update plugin code versions > 3.9.1.1 to include it.
Thanks
- The topic ‘Fixed I did for widget() function’ is closed to new replies.