From be816503c08e98246727fafddbc804f2d4bdb51d Mon Sep 17 00:00:00 2001 From: Jack Barker Date: Thu, 1 Jul 2021 19:45:19 +1000 Subject: [PATCH] Fix issue #24 --- src/crafty-social-buttons.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/crafty-social-buttons.php b/src/crafty-social-buttons.php index 2b6491b..9ecfb3a 100644 --- a/src/crafty-social-buttons.php +++ b/src/crafty-social-buttons.php @@ -44,4 +44,7 @@ SH_Crafty_Social_Buttons_Plugin::get_instance(); // and hook in our Widget -add_action( 'widgets_init', create_function( '', 'register_widget("SH_Crafty_Social_Buttons_Widget");' ) ); \ No newline at end of file +function SH_Crafty_Social_Buttons_RegisterWidget(){ + register_widget("SH_Crafty_Social_Buttons_Widget"); +} +add_action( 'widgets_init','SH_Crafty_Social_Buttons_RegisterWidget' ); \ No newline at end of file