Version Description
- Removed deprecated widget initializing function
Download this release
Release Info
Developer | f1logic |
Plugin | Insert Html Snippet |
Version | 1.2.4 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.2.4
- admin/settings.php +7 -7
- insert-html-snippet.php +1 -1
- readme.txt +6 -3
- widget.php +6 -1
admin/settings.php
CHANGED
@@ -5,12 +5,12 @@ global $wpdb;
|
|
5 |
// Load the options
|
6 |
|
7 |
|
8 |
-
if(isset($_GET['ihs_notice'])&& $_GET['ihs_notice'] == 'hide')
|
9 |
{
|
10 |
if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'],'ihs-shw')){
|
11 |
wp_nonce_ays( 'ihs-shw');
|
12 |
exit;
|
13 |
-
}
|
14 |
update_option('xyz_ihs_dnt_shw_notice', "hide");
|
15 |
?>
|
16 |
<style type='text/css'>
|
@@ -42,13 +42,13 @@ Thanks again for using the plugin. We will never show the message again.
|
|
42 |
{
|
43 |
update_option('xyz_credit_link',$xyz_ihs_credit);
|
44 |
}
|
45 |
-
|
46 |
$xyz_ihs_sortfield=sanitize_text_field($_POST['xyz_ihs_sort_by_field']);
|
47 |
if(($xyz_ihs_sortfield=="title")||($xyz_ihs_sortfield=="id"))
|
48 |
{
|
49 |
update_option('xyz_ihs_sort_field_name',$xyz_ihs_sortfield);
|
50 |
}
|
51 |
-
|
52 |
$xyz_ihs_sortorder=sanitize_text_field($_POST['xyz_ihs_sort_by_order']);
|
53 |
if(($xyz_ihs_sortorder=="asc")||($xyz_ihs_sortorder=="desc"))
|
54 |
{
|
@@ -57,7 +57,7 @@ Thanks again for using the plugin. We will never show the message again.
|
|
57 |
|
58 |
|
59 |
update_option('xyz_ihs_limit',$xyz_ihs_limit);
|
60 |
-
|
61 |
?>
|
62 |
<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
|
63 |
Settings updated successfully.
|
@@ -120,11 +120,11 @@ Thanks again for using the plugin. We will never show the message again.
|
|
120 |
<label for="xyz_ihs_pre_ads">Premium Version Ads</label>
|
121 |
</td>
|
122 |
<td>
|
123 |
-
<select name="xyz_ihs_pre_ads" id="xyz_ihs_pre_ads">
|
124 |
<option value="0">Disable</option>
|
125 |
<option value="1" <?php selected(get_option('xyz_ihs_premium_version_ads'),1);?>>Enable</option>
|
126 |
</select>
|
127 |
-
</td>
|
128 |
</tr>
|
129 |
<tr valign="top">
|
130 |
<td scope="row" class=" xyz_ihs_settingInput" id="xyz_ihs_bottomBorderNone">
|
5 |
// Load the options
|
6 |
|
7 |
|
8 |
+
if(!$_POST && isset($_GET['ihs_notice'])&& $_GET['ihs_notice'] == 'hide')
|
9 |
{
|
10 |
if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'],'ihs-shw')){
|
11 |
wp_nonce_ays( 'ihs-shw');
|
12 |
exit;
|
13 |
+
}
|
14 |
update_option('xyz_ihs_dnt_shw_notice', "hide");
|
15 |
?>
|
16 |
<style type='text/css'>
|
42 |
{
|
43 |
update_option('xyz_credit_link',$xyz_ihs_credit);
|
44 |
}
|
45 |
+
|
46 |
$xyz_ihs_sortfield=sanitize_text_field($_POST['xyz_ihs_sort_by_field']);
|
47 |
if(($xyz_ihs_sortfield=="title")||($xyz_ihs_sortfield=="id"))
|
48 |
{
|
49 |
update_option('xyz_ihs_sort_field_name',$xyz_ihs_sortfield);
|
50 |
}
|
51 |
+
|
52 |
$xyz_ihs_sortorder=sanitize_text_field($_POST['xyz_ihs_sort_by_order']);
|
53 |
if(($xyz_ihs_sortorder=="asc")||($xyz_ihs_sortorder=="desc"))
|
54 |
{
|
57 |
|
58 |
|
59 |
update_option('xyz_ihs_limit',$xyz_ihs_limit);
|
60 |
+
|
61 |
?>
|
62 |
<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
|
63 |
Settings updated successfully.
|
120 |
<label for="xyz_ihs_pre_ads">Premium Version Ads</label>
|
121 |
</td>
|
122 |
<td>
|
123 |
+
<select name="xyz_ihs_pre_ads" id="xyz_ihs_pre_ads">
|
124 |
<option value="0">Disable</option>
|
125 |
<option value="1" <?php selected(get_option('xyz_ihs_premium_version_ads'),1);?>>Enable</option>
|
126 |
</select>
|
127 |
+
</td>
|
128 |
</tr>
|
129 |
<tr valign="top">
|
130 |
<td scope="row" class=" xyz_ihs_settingInput" id="xyz_ihs_bottomBorderNone">
|
insert-html-snippet.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Insert HTML Snippet
|
4 |
Plugin URI: http://xyzscripts.com/wordpress-plugins/insert-html-snippet/
|
5 |
Description: Add HTML code to your pages and posts easily using shortcodes. This plugin lets you create a shortcode corresponding to any random HTML code such as ad codes, javascript, video embedding, etc. and use the same in your posts, pages or widgets.
|
6 |
-
Version: 1.2.
|
7 |
Author: xyzscripts.com
|
8 |
Author URI: http://xyzscripts.com/
|
9 |
Text Domain: insert-html-snippet
|
3 |
Plugin Name: Insert HTML Snippet
|
4 |
Plugin URI: http://xyzscripts.com/wordpress-plugins/insert-html-snippet/
|
5 |
Description: Add HTML code to your pages and posts easily using shortcodes. This plugin lets you create a shortcode corresponding to any random HTML code such as ad codes, javascript, video embedding, etc. and use the same in your posts, pages or widgets.
|
6 |
+
Version: 1.2.4
|
7 |
Author: xyzscripts.com
|
8 |
Author URI: http://xyzscripts.com/
|
9 |
Text Domain: insert-html-snippet
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
=== Insert Html Snippet ===
|
2 |
Contributors: f1logic
|
3 |
Donate link: http://xyzscripts.com/donate/
|
4 |
Tags: insert HTML, add HTML, insert adsense, insert ads, insert addthis code, insert flash , insert javascript, add javascript, insert css, add css, HTML to shortcode, integrate ad codes, raw html, embed html, html inserter, ad inserter, css inserter
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 4.9.
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Add HTML, CSS and javascript code to your pages and posts easily using shortcodes.
|
@@ -74,6 +74,9 @@ More questions ? [Drop a mail](http://xyzscripts.com/members/support/ "XYZScript
|
|
74 |
|
75 |
== Changelog ==
|
76 |
|
|
|
|
|
|
|
77 |
= 1.2.3 =
|
78 |
* Updated nonces and validations
|
79 |
* Premium version details and comparison added
|
1 |
+
=== Insert Html Snippet ===
|
2 |
Contributors: f1logic
|
3 |
Donate link: http://xyzscripts.com/donate/
|
4 |
Tags: insert HTML, add HTML, insert adsense, insert ads, insert addthis code, insert flash , insert javascript, add javascript, insert css, add css, HTML to shortcode, integrate ad codes, raw html, embed html, html inserter, ad inserter, css inserter
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 4.9.4
|
7 |
+
Stable tag: 1.2.4
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Add HTML, CSS and javascript code to your pages and posts easily using shortcodes.
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 1.2.4 =
|
78 |
+
* Removed deprecated widget initializing function
|
79 |
+
|
80 |
= 1.2.3 =
|
81 |
* Updated nonces and validations
|
82 |
* Premium version details and comparison added
|
widget.php
CHANGED
@@ -89,5 +89,10 @@ class Xyz_Insert_Html_Widget extends WP_Widget {
|
|
89 |
|
90 |
|
91 |
} // end class Xyz_Insert_Html_Widget
|
92 |
-
|
|
|
|
|
|
|
|
|
|
|
93 |
?>
|
89 |
|
90 |
|
91 |
} // end class Xyz_Insert_Html_Widget
|
92 |
+
|
93 |
+
function xyz_ihs_add_snippet_widget(){
|
94 |
+
register_widget("Xyz_Insert_Html_Widget");
|
95 |
+
}
|
96 |
+
add_action('widgets_init','xyz_ihs_add_snippet_widget');
|
97 |
+
|
98 |
?>
|