Simple Social Icons - Version 3.0.2

Version Description

  • Fixed issue where icons can fail if there is a space anywhere in its URL.
Download this release

Release Info

Developer studiopress
Plugin Icon 128x128 Simple Social Icons
Version 3.0.2
Comparing to
See all releases

Code changes from version 3.0.1 to 3.0.2

Files changed (4) hide show
  1. composer.json +32 -0
  2. package.json +1 -1
  3. readme.txt +5 -2
  4. simple-social-icons.php +5 -3
composer.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "studiopress/simple-social-icons",
3
+ "type": "wordpress-plugin",
4
+ "description": "A simple CSS and SVG driven social icons widget.",
5
+ "homepage": "https://github.com/studiopress/simple-social-icons",
6
+ "license": "GPL-2.0-or-later",
7
+ "require": {
8
+ "php": "^5.3 || ^7",
9
+ "composer/installers": "^1"
10
+ },
11
+ "require-dev": {
12
+ "php": "^5.6 || ^7",
13
+ "dealerdirect/phpcodesniffer-composer-installer": "*",
14
+ "squizlabs/php_codesniffer": "^3.3.1",
15
+ "phpcompatibility/phpcompatibility-wp": "*",
16
+ "wp-coding-standards/wpcs": "^1"
17
+ },
18
+ "config": {
19
+ "sort-order": true
20
+ },
21
+ "minimum-stability": "dev",
22
+ "prefer-stable": true,
23
+ "scripts": {
24
+ "phpcs": "phpcs --standard=WordPress --ignore=vendor/,node_modules/,assets/ --extensions=php -p ./",
25
+ "phpcs-compat": "phpcs --extensions=php --standard=PHPCompatibilityWP --ignore=vendor/,node_modules/,assets/ --runtime-set testVersion 5.6- -p ./",
26
+ "phpcbf": "phpcbf --standard=WordPress --ignore=vendor/,node_modules/,assets/ --extensions=php -p ./"
27
+ },
28
+ "support": {
29
+ "issues": "https://github.com/studiopress/simple-social-icons/issues",
30
+ "source": "https://github.com/studiopress/simple-social-icons"
31
+ }
32
+ }
package.json CHANGED
@@ -14,7 +14,7 @@
14
  "description": "A simple, CSS and icon font driven social icons widget.",
15
  "author": "StudioPress",
16
  "authoruri": "http://www.studiopress.com/",
17
- "version": "3.0.1",
18
  "license": "GPL-2.0+",
19
  "licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
20
  "textdomain": "simple-social-icons"
14
  "description": "A simple, CSS and icon font driven social icons widget.",
15
  "author": "StudioPress",
16
  "authoruri": "http://www.studiopress.com/",
17
+ "version": "3.0.2",
18
  "license": "GPL-2.0+",
19
  "licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
20
  "textdomain": "simple-social-icons"
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: studiopress, nathanrice, bgardner, dreamwhisper, laurenmancke, shannonsans, modernnerd, marksabbath, damiencarbery, helgatheviking, littlerchicken, tiagohillebrandt, wpmuguru, michaelbeil, norcross, rafaltomal
3
  Tags: social media, social networking, social profiles
4
  Requires at least: 4.0
5
- Tested up to: 5.2
6
- Stable tag: 3.0.1
7
 
8
  This plugin allows you to insert social icons in any widget area.
9
 
@@ -67,6 +67,9 @@ NOTE - The rights to each pictogram in the social extension are either trademark
67
 
68
  == Changelog ==
69
 
 
 
 
70
  = 3.0.1 =
71
  * Remove Grunt
72
  * Fix AMP compatibility
2
  Contributors: studiopress, nathanrice, bgardner, dreamwhisper, laurenmancke, shannonsans, modernnerd, marksabbath, damiencarbery, helgatheviking, littlerchicken, tiagohillebrandt, wpmuguru, michaelbeil, norcross, rafaltomal
3
  Tags: social media, social networking, social profiles
4
  Requires at least: 4.0
5
+ Tested up to: 5.4
6
+ Stable tag: 3.0.2
7
 
8
  This plugin allows you to insert social icons in any widget area.
9
 
67
 
68
  == Changelog ==
69
 
70
+ = 3.0.2 =
71
+ * Fixed issue where icons can fail if there is a space anywhere in its URL.
72
+
73
  = 3.0.1 =
74
  * Remove Grunt
75
  * Fix AMP compatibility
simple-social-icons.php CHANGED
@@ -5,12 +5,14 @@
5
  * Description: A simple CSS and SVG driven social icons widget.
6
  * Author: StudioPress
7
  * Author URI: https://www.studiopress.com/
8
- * Version: 3.0.1
9
  * Text Domain: simple-social-icons
10
  * Domain Path: /languages
11
  *
12
  * License: GNU General Public License v2.0 (or later)
13
  * License URI: https://www.opensource.org/licenses/gpl-license.php
 
 
14
  */
15
 
16
  add_action( 'plugins_loaded', 'simple_social_icons_load_textdomain' );
@@ -28,7 +30,7 @@ class Simple_Social_Icons_Widget extends WP_Widget {
28
  *
29
  * @var string
30
  */
31
- protected $version = '3.0.1';
32
 
33
  /**
34
  * Default widget values.
@@ -564,7 +566,7 @@ class Simple_Social_Icons_Widget extends WP_Widget {
564
  $markup = '<li class="ssi-' . $icon . '"><a href="%s" %s>';
565
  $markup .= '<svg role="img" class="social-' . $icon . '" aria-labelledby="social-' . $icon . '-{WIDGET_INSTANCE_ID}">';
566
  $markup .= '<title id="social-' . $icon . '-{WIDGET_INSTANCE_ID}' . '">' . $label . '</title>';
567
- $markup .= '<use xlink:href="' . esc_url( plugin_dir_url( __FILE__ ) . 'symbol-defs.svg#social-' . $icon ) . '"></use>';
568
  $markup .= '</svg></a></li>';
569
 
570
  /**
5
  * Description: A simple CSS and SVG driven social icons widget.
6
  * Author: StudioPress
7
  * Author URI: https://www.studiopress.com/
8
+ * Version: 3.0.2
9
  * Text Domain: simple-social-icons
10
  * Domain Path: /languages
11
  *
12
  * License: GNU General Public License v2.0 (or later)
13
  * License URI: https://www.opensource.org/licenses/gpl-license.php
14
+ *
15
+ * @package simple-social-icons
16
  */
17
 
18
  add_action( 'plugins_loaded', 'simple_social_icons_load_textdomain' );
30
  *
31
  * @var string
32
  */
33
+ protected $version = '3.0.2';
34
 
35
  /**
36
  * Default widget values.
566
  $markup = '<li class="ssi-' . $icon . '"><a href="%s" %s>';
567
  $markup .= '<svg role="img" class="social-' . $icon . '" aria-labelledby="social-' . $icon . '-{WIDGET_INSTANCE_ID}">';
568
  $markup .= '<title id="social-' . $icon . '-{WIDGET_INSTANCE_ID}' . '">' . $label . '</title>';
569
+ $markup .= '<use xlink:href="' . esc_attr( plugin_dir_url( __FILE__ ) . 'symbol-defs.svg#social-' . $icon ) . '"></use>';
570
  $markup .= '</svg></a></li>';
571
 
572
  /**