Simple Follow Me Social Buttons Widget - Version 1.7

Version Description

  • Fixed js call to wp-color-picker.
Download this release

Release Info

Developer lucymtc
Plugin Icon 128x128 Simple Follow Me Social Buttons Widget
Version 1.7
Comparing to
See all releases

Code changes from version 1.6 to 1.7

includes/widget.php CHANGED
@@ -48,9 +48,9 @@ class Sfmsb_Widget extends WP_Widget {
48
 
49
  parent::__construct( 'sfmsb_settings', __( 'Simple follow me social buttons', 'sfmsb_domain' ), $widget_ops );
50
 
51
- wp_enqueue_script( 'wp-color-picker' );
52
- wp_register_script( 'sfmsb-admin-widget-script', SFMSB_PLUGIN_URL . 'assets/js/widget.js', array('jquery'), SFMSB_PLUGIN_VERSION );
53
-
54
  add_action( "admin_print_scripts-widgets.php", array('Sfmsb_Widget', 'admin_widget_scripts') );
55
  }
56
 
@@ -375,10 +375,8 @@ class Sfmsb_Widget extends WP_Widget {
375
  wp_enqueue_style('sfmsb-admin-style', SFMSB_PLUGIN_URL . 'assets/css/admin.css', array(), SFMSB_PLUGIN_VERSION);
376
  wp_enqueue_style('sfmsb-icons', SFMSB_PLUGIN_URL . 'assets/css/icons.css', array(), SFMSB_PLUGIN_VERSION);
377
 
378
- /* wp_enqueue_script( 'wp-color-picker' );
379
- wp_register_script( 'sfmsb-admin-widget-script', SFMSB_PLUGIN_URL . 'assets/js/widget.js', array('jquery'), SFMSB_PLUGIN_VERSION );
380
-
381
- add_action( "admin_print_scripts-widgets.php", array('Sfmsb_Widget', 'admin_widget_scripts') );*/
382
  }
383
 
384
  /**
48
 
49
  parent::__construct( 'sfmsb_settings', __( 'Simple follow me social buttons', 'sfmsb_domain' ), $widget_ops );
50
 
51
+
52
+ //** this is not in add_admin_scripts because it would break after widget save, need to be in the construct.
53
+ wp_register_script( 'sfmsb-admin-widget-script', SFMSB_PLUGIN_URL . 'assets/js/widget.js', array('jquery', 'wp-color-picker'), SFMSB_PLUGIN_VERSION );
54
  add_action( "admin_print_scripts-widgets.php", array('Sfmsb_Widget', 'admin_widget_scripts') );
55
  }
56
 
375
  wp_enqueue_style('sfmsb-admin-style', SFMSB_PLUGIN_URL . 'assets/css/admin.css', array(), SFMSB_PLUGIN_VERSION);
376
  wp_enqueue_style('sfmsb-icons', SFMSB_PLUGIN_URL . 'assets/css/icons.css', array(), SFMSB_PLUGIN_VERSION);
377
 
378
+ wp_enqueue_script( 'wp-color-picker' );
379
+
 
 
380
  }
381
 
382
  /**
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wptips.me/simple-follow-social-buttons-widget/
4
  Tags: social,follow me,buttons,twitter,facebook,pinterest,google plus,linkedin,wordpress,rss,github,youtube,vimeo,instagram,email,sound cloud,itunes,font icons,retina ready
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
- Stable tag: 1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -54,6 +54,9 @@ http://wptips.me/simple-follow-social-buttons-widget/
54
 
55
  == Changelog ==
56
 
 
 
 
57
  = 1.6 =
58
  * Fixed icons visibility in form when white icons.
59
  * Added some translation.
4
  Tags: social,follow me,buttons,twitter,facebook,pinterest,google plus,linkedin,wordpress,rss,github,youtube,vimeo,instagram,email,sound cloud,itunes,font icons,retina ready
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
+ Stable tag: 1.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
54
 
55
  == Changelog ==
56
 
57
+ = 1.7 =
58
+ * Fixed js call to wp-color-picker.
59
+
60
  = 1.6 =
61
  * Fixed icons visibility in form when white icons.
62
  * Added some translation.
simple-follow-me-social-buttons-widget.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  Plugin Name: Simple Follow Me Social Buttons Widget
4
  Description: Widget to add some of the most popular follow me social buttons. Retina ready.
5
- Version: 1.6
6
  Author: Lucy Tomás
7
  Author URI: https://wordpress.org/support/profile/lucymtc
8
  License: GPLv2
@@ -107,7 +107,7 @@ final class SFMSB {
107
  if( !defined('SFMSB_PLUGIN_DIR') ) { define('SFMSB_PLUGIN_DIR', plugin_dir_path( __FILE__ )); }
108
  if( !defined('SFMSB_PLUGIN_URL') ) { define('SFMSB_PLUGIN_URL', plugin_dir_url( __FILE__ )); }
109
  if( !defined('SFMSB_PLUGIN_FILE') ) { define('SFMSB_PLUGIN_FILE', __FILE__ ); }
110
- if( !defined('SFMSB_PLUGIN_VERSION') ) { define('SFMSB_PLUGIN_VERSION', '1.6'); }
111
 
112
  }
113
 
2
  /**
3
  Plugin Name: Simple Follow Me Social Buttons Widget
4
  Description: Widget to add some of the most popular follow me social buttons. Retina ready.
5
+ Version: 1.7
6
  Author: Lucy Tomás
7
  Author URI: https://wordpress.org/support/profile/lucymtc
8
  License: GPLv2
107
  if( !defined('SFMSB_PLUGIN_DIR') ) { define('SFMSB_PLUGIN_DIR', plugin_dir_path( __FILE__ )); }
108
  if( !defined('SFMSB_PLUGIN_URL') ) { define('SFMSB_PLUGIN_URL', plugin_dir_url( __FILE__ )); }
109
  if( !defined('SFMSB_PLUGIN_FILE') ) { define('SFMSB_PLUGIN_FILE', __FILE__ ); }
110
+ if( !defined('SFMSB_PLUGIN_VERSION') ) { define('SFMSB_PLUGIN_VERSION', '1.7'); }
111
 
112
  }
113