Simple Social Icons - Version 1.0.13

Version Description

  • Add textdomain loader
Download this release

Release Info

Developer nathanrice
Plugin Icon 128x128 Simple Social Icons
Version 1.0.13
Comparing to
See all releases

Code changes from version 1.0.12 to 1.0.13

Files changed (3) hide show
  1. package.json +16 -16
  2. readme.txt +4 -1
  3. simple-social-icons.php +12 -1
package.json CHANGED
@@ -7,21 +7,21 @@
7
  },
8
  "dependencies": {},
9
  "devDependencies": {
10
- "grunt": "^0.4.5",
11
- "grunt-autoprefixer": "^0.8.1",
12
- "grunt-checktextdomain": "^0.1.1",
13
- "grunt-contrib-cssmin": "^0.10.0",
14
- "grunt-contrib-imagemin": "^0.7.1",
15
- "grunt-contrib-jshint": "^0.10.0",
16
- "grunt-contrib-uglify": "^0.5.0",
17
- "grunt-contrib-watch": "^0.6.1",
18
- "grunt-csscomb": "~2.0.1",
19
- "grunt-jsbeautifier": "^0.2.7",
20
- "grunt-jsvalidate": "^0.2.2",
21
- "grunt-phplint": "0.0.5",
22
- "grunt-styledocco": "^0.1.4",
23
- "grunt-wp-i18n": "^0.5.3",
24
- "load-grunt-tasks": "^3.3.0"
25
  },
26
  "plugin": {
27
  "name": "Simple Social Icons",
@@ -29,7 +29,7 @@
29
  "description": "A simple, CSS and icon font driven social icons widget.",
30
  "author": "StudioPress",
31
  "authoruri": "http://www.studiopress.com/",
32
- "version": "1.0.11",
33
  "license": "GPL-2.0+",
34
  "licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
35
  "textdomain": "simple-social-icons"
7
  },
8
  "dependencies": {},
9
  "devDependencies": {
10
+ "grunt": "*",
11
+ "grunt-autoprefixer": "*",
12
+ "grunt-checktextdomain": "*",
13
+ "grunt-contrib-cssmin": "*",
14
+ "grunt-contrib-imagemin": "*",
15
+ "grunt-contrib-jshint": "*",
16
+ "grunt-contrib-uglify": "*",
17
+ "grunt-contrib-watch": "*",
18
+ "grunt-csscomb": "*",
19
+ "grunt-jsbeautifier": "*",
20
+ "grunt-jsvalidate": "*",
21
+ "grunt-phplint": "*",
22
+ "grunt-styledocco": "*",
23
+ "grunt-wp-i18n": "*",
24
+ "load-grunt-tasks": "*"
25
  },
26
  "plugin": {
27
  "name": "Simple Social Icons",
29
  "description": "A simple, CSS and icon font driven social icons widget.",
30
  "author": "StudioPress",
31
  "authoruri": "http://www.studiopress.com/",
32
+ "version": "1.0.13",
33
  "license": "GPL-2.0+",
34
  "licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
35
  "textdomain": "simple-social-icons"
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: nathanrice, studiopress, bgardner
3
  Tags: social media, social networking, social profiles
4
  Requires at least: 4.0
5
  Tested up to: 4.3.1
6
- Stable tag: 1.0.12
7
 
8
  This plugin allows you to insert social icons in any widget area.
9
 
@@ -47,6 +47,9 @@ NOTE - The rights to each pictogram in the social extension are either trademark
47
 
48
  == Changelog ==
49
 
 
 
 
50
  = 1.0.12 =
51
  * Prevent ModSecurity blocking fonts from loading
52
 
3
  Tags: social media, social networking, social profiles
4
  Requires at least: 4.0
5
  Tested up to: 4.3.1
6
+ Stable tag: 1.0.13
7
 
8
  This plugin allows you to insert social icons in any widget area.
9
 
47
 
48
  == Changelog ==
49
 
50
+ = 1.0.13 =
51
+ * Add textdomain loader
52
+
53
  = 1.0.12 =
54
  * Prevent ModSecurity blocking fonts from loading
55
 
simple-social-icons.php CHANGED
@@ -6,12 +6,23 @@ Description: A simple, CSS and icon font driven social icons widget.
6
  Author: Nathan Rice
7
  Author URI: http://www.nathanrice.net/
8
 
9
- Version: 1.0.12
 
 
 
10
 
11
  License: GNU General Public License v2.0 (or later)
12
  License URI: http://www.opensource.org/licenses/gpl-license.php
13
  */
14
 
 
 
 
 
 
 
 
 
15
  class Simple_Social_Icons_Widget extends WP_Widget {
16
 
17
  /**
6
  Author: Nathan Rice
7
  Author URI: http://www.nathanrice.net/
8
 
9
+ Version: 1.0.13
10
+
11
+ Text Domain: simple-social-icons
12
+ Domain Path: /languages
13
 
14
  License: GNU General Public License v2.0 (or later)
15
  License URI: http://www.opensource.org/licenses/gpl-license.php
16
  */
17
 
18
+ add_action( 'plugins_loaded', 'simple_social_icons_load_textdomain' );
19
+ /**
20
+ * Load textdomain
21
+ */
22
+ function simple_social_icons_load_textdomain() {
23
+ load_plugin_textdomain( 'simple-social-icons', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
24
+ }
25
+
26
  class Simple_Social_Icons_Widget extends WP_Widget {
27
 
28
  /**