Version Description
- PHP notice/warning fix
Download this release
Release Info
Developer | cybernetikz |
Plugin | Easy Social Icons |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- easy-social-icons.php +9 -6
- readme.txt +5 -2
easy-social-icons.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Easy Social Icons
|
4 |
Plugin URI: http://www.cybernetikz.com
|
5 |
Description: You can upload your own social icon, set your social URL, choose weather you want to display vertical or horizontal. You can use the shortcode <strong>[cn-social-icon]</strong> in page/post, template tag for php file <strong><?php if ( function_exists('cn_social_icon') ) echo cn_social_icon(); ?></strong> also you can use the widget <strong>"Easy Social Icons"</strong> for sidebar.
|
6 |
-
Version: 1.2.
|
7 |
Author: cybernetikz
|
8 |
Author URI: http://www.cybernetikz.com
|
9 |
License: GPL2
|
@@ -46,8 +46,11 @@ function cnss_admin_enqueue() {
|
|
46 |
wp_register_script('cnss_admin_js', $pluginsURI . 'js/cnss_admin.js', array(), '1.0' );
|
47 |
wp_enqueue_script( 'cnss_admin_js' );
|
48 |
}
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
51 |
}
|
52 |
|
53 |
add_action('init', 'cnss_my_script');
|
@@ -264,8 +267,8 @@ if (isset($_POST['submit_button'])) {
|
|
264 |
$insert = "INSERT INTO " . $table_name .
|
265 |
" (title, url, image_url, sortorder, date_upload, target) " .
|
266 |
"VALUES ('" .
|
267 |
-
|
268 |
-
|
269 |
$_POST['image_file'] . "'," .
|
270 |
$_POST['sortorder'] . ",'" .
|
271 |
time() . "'," .
|
@@ -347,7 +350,7 @@ if (isset($_POST['submit_button'])) {
|
|
347 |
}*/
|
348 |
|
349 |
$update = "UPDATE " . $table_name . " SET " .
|
350 |
-
"title='"
|
351 |
"url='" . $url . "'," .
|
352 |
"image_url='" . $_POST['image_file'] . "'," .
|
353 |
"sortorder=" .$_POST['sortorder'] . "," .
|
3 |
Plugin Name: Easy Social Icons
|
4 |
Plugin URI: http://www.cybernetikz.com
|
5 |
Description: You can upload your own social icon, set your social URL, choose weather you want to display vertical or horizontal. You can use the shortcode <strong>[cn-social-icon]</strong> in page/post, template tag for php file <strong><?php if ( function_exists('cn_social_icon') ) echo cn_social_icon(); ?></strong> also you can use the widget <strong>"Easy Social Icons"</strong> for sidebar.
|
6 |
+
Version: 1.2.2
|
7 |
Author: cybernetikz
|
8 |
Author URI: http://www.cybernetikz.com
|
9 |
License: GPL2
|
46 |
wp_register_script('cnss_admin_js', $pluginsURI . 'js/cnss_admin.js', array(), '1.0' );
|
47 |
wp_enqueue_script( 'cnss_admin_js' );
|
48 |
}
|
49 |
+
|
50 |
+
if( isset($_GET['page']) ) {
|
51 |
+
if( $_GET['page']=='cnss_social_icon_add' ) {
|
52 |
+
add_action('admin_enqueue_scripts', 'cnss_admin_enqueue' );
|
53 |
+
}
|
54 |
}
|
55 |
|
56 |
add_action('init', 'cnss_my_script');
|
267 |
$insert = "INSERT INTO " . $table_name .
|
268 |
" (title, url, image_url, sortorder, date_upload, target) " .
|
269 |
"VALUES ('" .
|
270 |
+
mysql_real_escape_string( $_POST['title']) . "','" .
|
271 |
+
mysql_real_escape_string( $_POST['url']) . "','" .
|
272 |
$_POST['image_file'] . "'," .
|
273 |
$_POST['sortorder'] . ",'" .
|
274 |
time() . "'," .
|
350 |
}*/
|
351 |
|
352 |
$update = "UPDATE " . $table_name . " SET " .
|
353 |
+
"title='" .mysql_real_escape_string( $_POST['title']) . "'," .
|
354 |
"url='" . $url . "'," .
|
355 |
"image_url='" . $_POST['image_file'] . "'," .
|
356 |
"sortorder=" .$_POST['sortorder'] . "," .
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: easy social icon,easy social icons,social icon,social icons,social,social share,follow,followus,follow us,share,icon
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.1
|
7 |
-
Stable tag: 1.2.
|
8 |
|
9 |
You can upload your own social icon, set your social URL, choose weather you want to display vertical or horizontal.
|
10 |
|
@@ -80,8 +80,11 @@ If you are using wordpress version lower than 3.5 please use Easy social Icon ve
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
|
|
|
|
|
|
83 |
= 1.2.1 =
|
84 |
-
Fix on WordPress media uploader for different WordPress version
|
85 |
|
86 |
= 1.2 =
|
87 |
* Integrate WordPress default media uploader
|
4 |
Tags: easy social icon,easy social icons,social icon,social icons,social,social share,follow,followus,follow us,share,icon
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 1.2.2
|
8 |
|
9 |
You can upload your own social icon, set your social URL, choose weather you want to display vertical or horizontal.
|
10 |
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
= 1.2.2 =
|
84 |
+
* PHP notice/warning fix
|
85 |
+
|
86 |
= 1.2.1 =
|
87 |
+
* Fix on WordPress media uploader for different WordPress version
|
88 |
|
89 |
= 1.2 =
|
90 |
* Integrate WordPress default media uploader
|