FIX for WP4.3 Deprecated Constructor notice (for CodeCanyon Pro users)
-
WordPress 4.3 will start throwing Deprecated Constructor notices for older widget code. Since I don’t have older CodeCanyon users in any support database (you folks bought before I acquired the plugin) I can’t contact you directly with an update.
But you can make the change yourself. Open the file better-recent-posts-widget-pro.php in your favorite text editor and look for line 28. It will contain:
parent::WP_Widget(false, $name = __('Better Recent Posts Pro', 'better-recent-posts-pro'));
replace it with:
parent::__construct(false, $name = __('Better Recent Posts Pro', 'better-recent-posts-pro'));
All you’re really doing is replacing WP_Widget with __construct (two underscores). If you want, you can also update the version number in the comment block at the top of the file to 2.3.
Send me a note in the comments below if you run into any snags.
–David
https://www.ads-software.com/plugins/better-recent-posts-widget/
- The topic ‘FIX for WP4.3 Deprecated Constructor notice (for CodeCanyon Pro users)’ is closed to new replies.