Title: Fixed I did for widget() function
Last modified: August 22, 2016

---

# Fixed I did for widget() function

 *  [armando.alberti](https://wordpress.org/support/users/armandoalberti/)
 * (@armandoalberti)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/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
 * [https://wordpress.org/plugins/leaguemanager/](https://wordpress.org/plugins/leaguemanager/)

The topic ‘Fixed I did for widget() function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/leaguemanager.svg)
 * [LeagueManager](https://wordpress.org/plugins/leaguemanager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaguemanager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaguemanager/)
 * [Active Topics](https://wordpress.org/support/plugin/leaguemanager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaguemanager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaguemanager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [armando.alberti](https://wordpress.org/support/users/armandoalberti/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/fixed-i-did-for-widget-function/)
 * Status: not resolved