Created
July 25, 2015 18:05
-
-
Save smbrown/75604adf6d4dcec4c6a5 to your computer and use it in GitHub Desktop.
YARPP_Widget [WordPress] Git Info: On branch update-plugins — 441c97ec Version 4.3-beta4-33415
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# without this change, [25-Jul-2015 17:54:51 UTC] PHP Notice: The called constructor method for WP_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /Users/smbrown/smr/wp/wp-includes/functions.php on line 3457 | |
index 97cc0d7..88bb09d 100644 | |
--- a/content/plugins/yet-another-related-posts-plugin/classes/YARPP_Widget.php | |
+++ b/content/plugins/yet-another-related-posts-plugin/classes/YARPP_Widget.php | |
@@ -6,7 +6,7 @@ | |
class YARPP_Widget extends WP_Widget { | |
public function __construct() { | |
- parent::WP_Widget(false, 'Related Posts (YARPP)', array('description' => 'Related Posts and/or Sponsored Content')); | |
+ WP_Widget::__construct(false, 'Related Posts (YARPP)', array('description' => 'Related Posts and/or Sponsored Content')); | |
wp_enqueue_style('yarppWidgetCss', YARPP_URL.'/style/widget.css'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment