Version Description
Fix on WordPress media uploader for different WordPress version
Download this release
Release Info
Developer | cybernetikz |
Plugin | Easy Social Icons |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.2.1
- easy-social-icons.php +6 -18
- readme.txt +4 -1
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
|
@@ -28,17 +28,6 @@ function generateRandomCode($length)
|
|
28 |
return $url;
|
29 |
}
|
30 |
|
31 |
-
/*function cnss_admin_enqueue($hook) {
|
32 |
-
global $pluginsURI;
|
33 |
-
echo $pluginsURI;
|
34 |
-
if( 'index.php' != $hook )
|
35 |
-
return;
|
36 |
-
wp_register_script( 'add_media_js', $pluginsURI.'js/add-media.js' );
|
37 |
-
wp_enqueue_script('add_media_js');
|
38 |
-
wp_enqueue_media();
|
39 |
-
}
|
40 |
-
add_action( 'admin_enqueue_scripts', 'cnss_admin_enqueue' );*/
|
41 |
-
|
42 |
function cnss_my_script() {
|
43 |
global $pluginsURI;
|
44 |
wp_enqueue_script( 'jquery' );
|
@@ -50,19 +39,18 @@ function cnss_my_script() {
|
|
50 |
wp_enqueue_style( 'cnss_css' );
|
51 |
}
|
52 |
|
53 |
-
function cnss_admin_enqueue(
|
54 |
-
if ($hook!='easy-social-icon_page_cnss_social_icon_add')
|
55 |
-
{
|
56 |
-
return;
|
57 |
-
}
|
58 |
global $pluginsURI;
|
59 |
wp_enqueue_media();
|
60 |
wp_register_script('cnss_admin_js', $pluginsURI . 'js/cnss_admin.js', array(), '1.0' );
|
61 |
wp_enqueue_script( 'cnss_admin_js' );
|
62 |
}
|
|
|
|
|
|
|
63 |
|
64 |
add_action('init', 'cnss_my_script');
|
65 |
-
add_action('admin_enqueue_scripts', 'cnss_admin_enqueue' );
|
66 |
add_action('wp_ajax_update-social-icon-order', 'cnss_save_ajax_order' );
|
67 |
add_action('admin_menu', 'cnss_add_menu_pages');
|
68 |
|
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.1
|
7 |
Author: cybernetikz
|
8 |
Author URI: http://www.cybernetikz.com
|
9 |
License: GPL2
|
28 |
return $url;
|
29 |
}
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
function cnss_my_script() {
|
32 |
global $pluginsURI;
|
33 |
wp_enqueue_script( 'jquery' );
|
39 |
wp_enqueue_style( 'cnss_css' );
|
40 |
}
|
41 |
|
42 |
+
function cnss_admin_enqueue() {
|
43 |
+
//if ($hook!='easy-social-icon_page_cnss_social_icon_add') return; //$hook
|
|
|
|
|
|
|
44 |
global $pluginsURI;
|
45 |
wp_enqueue_media();
|
46 |
wp_register_script('cnss_admin_js', $pluginsURI . 'js/cnss_admin.js', array(), '1.0' );
|
47 |
wp_enqueue_script( 'cnss_admin_js' );
|
48 |
}
|
49 |
+
if( $_GET['page']=='cnss_social_icon_add' ) {
|
50 |
+
add_action('admin_enqueue_scripts', 'cnss_admin_enqueue' );
|
51 |
+
}
|
52 |
|
53 |
add_action('init', 'cnss_my_script');
|
|
|
54 |
add_action('wp_ajax_update-social-icon-order', 'cnss_save_ajax_order' );
|
55 |
add_action('admin_menu', 'cnss_add_menu_pages');
|
56 |
|
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,6 +80,9 @@ If you are using wordpress version lower than 3.5 please use Easy social Icon ve
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
|
|
|
|
|
|
83 |
= 1.2 =
|
84 |
* Integrate WordPress default media uploader
|
85 |
* Some security updates
|
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.1
|
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.1 =
|
84 |
+
Fix on WordPress media uploader for different WordPress version
|
85 |
+
|
86 |
= 1.2 =
|
87 |
* Integrate WordPress default media uploader
|
88 |
* Some security updates
|