Skip to content

Instantly share code, notes, and snippets.

@smbrown
Created July 25, 2015 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smbrown/00e00d9c8cf52850dab5 to your computer and use it in GitHub Desktop.
Save smbrown/00e00d9c8cf52850dab5 to your computer and use it in GitHub Desktop.
yarpp 4.0.6 fix for WP_Widget notice agains WP 4.3b4
--- a/content/plugins/yet-another-related-posts-plugin/class-widget.php
+++ b/content/plugins/yet-another-related-posts-plugin/class-widget.php
@@ -4,7 +4,7 @@
// http://msafi.com/fix-yet-another-related-posts-plugin-yarpp-widget-and-add-it-to-the-sidebar/
class YARPP_Widget extends WP_Widget {
function YARPP_Widget() {
- parent::WP_Widget(false, $name = __('Related Posts (YARPP)','yarpp'));
+ parent::__construct(false, $name = __('Related Posts (YARPP)','yarpp'));
}
function widget($args, $instance) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment