Title: Some Quick Bug Fixes
Last modified: August 31, 2016

---

# Some Quick Bug Fixes

 *  Resolved [performadigital](https://wordpress.org/support/users/performadigital/)
 * (@performadigital)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/some-quick-bug-fixes/)
 * Here are 2 quick bug fixes which currently throw up errors if using WP > 4.3 
   and BP > 1.9
 * **WP_Widget is depreciated:**
 * voter_widgets_shorcodes.php: Line 23
 * Replace
 * `$this->WP_Widget('aheadzen_voter','Top Listings Voter Plugin', $widget_ops);`
 * with
 * `$this->__construct('aheadzen_voter','Top Listings Voter Plugin', $widget_ops);`
 * **bp_core_add_notification is depreciated**
 * Line 249 Replace
 * `if(!get_option('aheadzen_voter_disable_notification') && function_exists('bp_core_add_notification')){`
 * with
 * `if(!get_option('aheadzen_voter_disable_notification') && function_exists('bp_notifications_add_notification')){`
 * Line 251 Replace
 * `bp_core_add_notification($_REQUEST['secondary_item_id'], $post_author, 'votes',
   $action_str,$_REQUEST['item_id']);`
 * with
 * `bp_notifications_add_notification($_REQUEST['secondary_item_id'], $post_author,'
   votes', $action_str,$_REQUEST['item_id']);`
 * [https://wordpress.org/plugins/voter-plugin/](https://wordpress.org/plugins/voter-plugin/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [performadigital](https://wordpress.org/support/users/performadigital/)
 * (@performadigital)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/some-quick-bug-fixes/#post-7177274)
 * Some further fixes for full SSL compatibility:
 * **voter_functions.php**
 * Line: 702
 * Replace
 * `<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>`
 * with
 * `<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>`
 * Line 704
 * Replace
 * `<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/
   jquery-ui.css" />`
 * with
 * `<link rel="stylesheet" href="https://code.jquery.com/ui/1.10.3/themes/smoothness/
   jquery-ui.css" />`
 * Although it should be noted this isn’t best practice for en queuing scripts and
   you should really use wp_enqueue_script instead as I can see you’ve done with
   aheadzen_voter_add_custom_scripts(). I notice you’d mentioned some SSL/HTTPS 
   fixes have been incorporated but these are issues above are still present in 
   v 3.0.8 so this should clear up the final bits.
 *  Thread Starter [performadigital](https://wordpress.org/support/users/performadigital/)
 * (@performadigital)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/some-quick-bug-fixes/#post-7177275)
 * Also is there any reason for not loading the jquery-ui.js as the minified version?
   It gives a pretty decent saving in load speed of about 40%.
 *  Plugin Author [aheadzen](https://wordpress.org/support/users/aheadzen/)
 * (@aheadzen)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/some-quick-bug-fixes/#post-7177390)
 * We have added jquery-ui.js as the minified version and using the wp_enque method
   for include.
 *  Thread Starter [performadigital](https://wordpress.org/support/users/performadigital/)
 * (@performadigital)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/some-quick-bug-fixes/#post-7177407)
 * Sorry, to clarify I’d meant the jquery-ui css. This could be loaded as the minified
   version, also the latest version works well:
 * [https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.min.css](https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.min.css)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Some Quick Bug Fixes’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/voter-plugin_848b95.svg)
 * [Voter Plugin](https://wordpress.org/plugins/voter-plugin/)
 * [Support Threads](https://wordpress.org/support/plugin/voter-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/voter-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/voter-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/voter-plugin/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [performadigital](https://wordpress.org/support/users/performadigital/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/some-quick-bug-fixes/#post-7177407)
 * Status: resolved