Version Description
- Security update
Download this release
Release Info
Developer | clevelandwebdeveloper |
Plugin | Spacer |
Version | 3.0.6 |
Comparing to | |
See all releases |
Code changes from version 3.0.5 to 3.0.6
- index.php +32 -11
- readme.txt +7 -4
index.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Spacer
|
5 |
Plugin URI: http://www.clevelandwebdeveloper.com/wordpress-plugins/spacer
|
6 |
Description: Adds a spacer button to the WYSIWYG visual editor which allows you to add precise custom spacing between lines in your posts and pages.
|
7 |
-
Version: 3.0.
|
8 |
Author: Justin Saad
|
9 |
Author URI: http://www.clevelandwebdeveloper.com
|
10 |
License: GPL2
|
@@ -755,7 +755,7 @@ wp_get_current_user();
|
|
755 |
$field_slug = "title_addspacers";
|
756 |
$field_label = __('Spacer Title', 'motech-spacer');
|
757 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
758 |
-
register_setting($this->plugin_slug.'_option_group', $field_id);
|
759 |
add_settings_field(
|
760 |
$field_id,
|
761 |
$field_label,
|
@@ -803,7 +803,7 @@ wp_get_current_user();
|
|
803 |
$field_slug = "default_height_addspacers";
|
804 |
$field_label = __('Default Height', 'motech-spacer');
|
805 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
806 |
-
register_setting($this->plugin_slug.'_option_group', $field_id);
|
807 |
add_settings_field(
|
808 |
$field_id,
|
809 |
$field_label,
|
@@ -859,7 +859,7 @@ wp_get_current_user();
|
|
859 |
$field_slug = "default_height_mobile_addspacers";
|
860 |
$field_label = __('Default Height On Mobile (Optional)', 'motech-spacer');
|
861 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
862 |
-
register_setting($this->plugin_slug.'_option_group', $field_id);
|
863 |
add_settings_field(
|
864 |
$field_id,
|
865 |
$field_label,
|
@@ -914,7 +914,7 @@ wp_get_current_user();
|
|
914 |
$field_slug = "spacer_class_addspacers";
|
915 |
$field_label = __('Default Class (Optional)', 'motech-spacer');
|
916 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
917 |
-
register_setting($this->plugin_slug.'_option_group', $field_id);
|
918 |
add_settings_field(
|
919 |
$field_id,
|
920 |
$field_label,
|
@@ -933,7 +933,7 @@ wp_get_current_user();
|
|
933 |
$field_slug = "spacer_style_addspacers";
|
934 |
$field_label = __('Style (Optional)', 'motech-spacer');
|
935 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
936 |
-
register_setting($this->plugin_slug.'_option_group', $field_id);
|
937 |
add_settings_field(
|
938 |
$field_id,
|
939 |
$field_label,
|
@@ -985,7 +985,7 @@ wp_get_current_user();
|
|
985 |
$field_slug = "default_height_mobile";
|
986 |
$field_label = __('Default Spacer Height On Mobile (Optional)', 'motech-spacer');
|
987 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
988 |
-
register_setting($this->plugin_slug.'_option_group', $field_id);
|
989 |
add_settings_field(
|
990 |
$field_id,
|
991 |
$field_label,
|
@@ -1039,7 +1039,7 @@ wp_get_current_user();
|
|
1039 |
$field_slug = "spacer_class";
|
1040 |
$field_label = __('Default Spacer Class (Optional)', 'motech-spacer');
|
1041 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
1042 |
-
register_setting($this->plugin_slug.'_option_group', $field_id);
|
1043 |
add_settings_field(
|
1044 |
$field_id,
|
1045 |
$field_label,
|
@@ -1057,7 +1057,7 @@ wp_get_current_user();
|
|
1057 |
$field_slug = "spacer_style";
|
1058 |
$field_label = __('Spacer Style (Optional)', 'motech-spacer');
|
1059 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
1060 |
-
register_setting($this->plugin_slug.'_option_group', $field_id);
|
1061 |
add_settings_field(
|
1062 |
$field_id,
|
1063 |
$field_label,
|
@@ -1114,7 +1114,7 @@ wp_get_current_user();
|
|
1114 |
$field_slug = "default_height";
|
1115 |
$field_label = __('Default Spacer Height', 'motech-spacer');
|
1116 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
1117 |
-
register_setting($this->plugin_slug.'_option_group', $field_id);
|
1118 |
add_settings_field(
|
1119 |
$field_id,
|
1120 |
$field_label,
|
@@ -1671,8 +1671,9 @@ wp_get_current_user();
|
|
1671 |
|
1672 |
function po($input) {
|
1673 |
if (get_option($this->plugin_slug . '_ihmsa','') == 'hmsia') {
|
1674 |
-
return $input;
|
1675 |
}
|
|
|
1676 |
if(is_array($input)){
|
1677 |
foreach($input as $val){
|
1678 |
if (!empty($val)) {
|
@@ -1696,6 +1697,26 @@ wp_get_current_user();
|
|
1696 |
}
|
1697 |
}
|
1698 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1699 |
function po_repeat($input) {
|
1700 |
if (get_option($this->plugin_slug . '_ihmsa','') == 'hmsia') {
|
1701 |
return $input;
|
4 |
Plugin Name: Spacer
|
5 |
Plugin URI: http://www.clevelandwebdeveloper.com/wordpress-plugins/spacer
|
6 |
Description: Adds a spacer button to the WYSIWYG visual editor which allows you to add precise custom spacing between lines in your posts and pages.
|
7 |
+
Version: 3.0.6
|
8 |
Author: Justin Saad
|
9 |
Author URI: http://www.clevelandwebdeveloper.com
|
10 |
License: GPL2
|
755 |
$field_slug = "title_addspacers";
|
756 |
$field_label = __('Spacer Title', 'motech-spacer');
|
757 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
758 |
+
register_setting($this->plugin_slug.'_option_group', $field_id, array($this, 'san_field'));
|
759 |
add_settings_field(
|
760 |
$field_id,
|
761 |
$field_label,
|
803 |
$field_slug = "default_height_addspacers";
|
804 |
$field_label = __('Default Height', 'motech-spacer');
|
805 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
806 |
+
register_setting($this->plugin_slug.'_option_group', $field_id, array($this, 'san_field'));
|
807 |
add_settings_field(
|
808 |
$field_id,
|
809 |
$field_label,
|
859 |
$field_slug = "default_height_mobile_addspacers";
|
860 |
$field_label = __('Default Height On Mobile (Optional)', 'motech-spacer');
|
861 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
862 |
+
register_setting($this->plugin_slug.'_option_group', $field_id, array($this, 'san_field'));
|
863 |
add_settings_field(
|
864 |
$field_id,
|
865 |
$field_label,
|
914 |
$field_slug = "spacer_class_addspacers";
|
915 |
$field_label = __('Default Class (Optional)', 'motech-spacer');
|
916 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
917 |
+
register_setting($this->plugin_slug.'_option_group', $field_id, array($this, 'san_field'));
|
918 |
add_settings_field(
|
919 |
$field_id,
|
920 |
$field_label,
|
933 |
$field_slug = "spacer_style_addspacers";
|
934 |
$field_label = __('Style (Optional)', 'motech-spacer');
|
935 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
936 |
+
register_setting($this->plugin_slug.'_option_group', $field_id, array($this, 'san_field'));
|
937 |
add_settings_field(
|
938 |
$field_id,
|
939 |
$field_label,
|
985 |
$field_slug = "default_height_mobile";
|
986 |
$field_label = __('Default Spacer Height On Mobile (Optional)', 'motech-spacer');
|
987 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
988 |
+
register_setting($this->plugin_slug.'_option_group', $field_id, array($this, 'san_field'));
|
989 |
add_settings_field(
|
990 |
$field_id,
|
991 |
$field_label,
|
1039 |
$field_slug = "spacer_class";
|
1040 |
$field_label = __('Default Spacer Class (Optional)', 'motech-spacer');
|
1041 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
1042 |
+
register_setting($this->plugin_slug.'_option_group', $field_id, array($this, 'san_field'));
|
1043 |
add_settings_field(
|
1044 |
$field_id,
|
1045 |
$field_label,
|
1057 |
$field_slug = "spacer_style";
|
1058 |
$field_label = __('Spacer Style (Optional)', 'motech-spacer');
|
1059 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
1060 |
+
register_setting($this->plugin_slug.'_option_group', $field_id, array($this, 'san_field'));
|
1061 |
add_settings_field(
|
1062 |
$field_id,
|
1063 |
$field_label,
|
1114 |
$field_slug = "default_height";
|
1115 |
$field_label = __('Default Spacer Height', 'motech-spacer');
|
1116 |
$field_id = $this->plugin_slug.'_'.$field_slug;
|
1117 |
+
register_setting($this->plugin_slug.'_option_group', $field_id, array($this, 'san_field'));
|
1118 |
add_settings_field(
|
1119 |
$field_id,
|
1120 |
$field_label,
|
1671 |
|
1672 |
function po($input) {
|
1673 |
if (get_option($this->plugin_slug . '_ihmsa','') == 'hmsia') {
|
1674 |
+
return $input;
|
1675 |
}
|
1676 |
+
|
1677 |
if(is_array($input)){
|
1678 |
foreach($input as $val){
|
1679 |
if (!empty($val)) {
|
1697 |
}
|
1698 |
}
|
1699 |
|
1700 |
+
function san_field($input) {
|
1701 |
+
//return strip_tags($input);
|
1702 |
+
if(is_array($input)){
|
1703 |
+
foreach($input as $key=>$value){
|
1704 |
+
//$input[$key] = "football";
|
1705 |
+
//$input[$key] = strip_tags($value);
|
1706 |
+
if ( defined( 'DISALLOW_UNFILTERED_HTML' ) && DISALLOW_UNFILTERED_HTML ) {
|
1707 |
+
$input[$key] = strip_tags($value);
|
1708 |
+
} elseif ( is_multisite() && ! is_super_admin() ) {
|
1709 |
+
$input[$key] = strip_tags($value);
|
1710 |
+
}
|
1711 |
+
}
|
1712 |
+
} else {
|
1713 |
+
if(!empty($input)){
|
1714 |
+
$input = strip_tags($input);
|
1715 |
+
}
|
1716 |
+
}
|
1717 |
+
return $input;
|
1718 |
+
}
|
1719 |
+
|
1720 |
function po_repeat($input) {
|
1721 |
if (get_option($this->plugin_slug . '_ihmsa','') == 'hmsia') {
|
1722 |
return $input;
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: clevelandwebdeveloper
|
|
3 |
Donate link: http://www.clevelandwebdeveloper.com/wordpress-plugins/donate.php
|
4 |
Tags: spacer, spacing, line space
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 6.
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -85,6 +85,9 @@ Try adding <code>margin-bottom: 25px;</code> to the Spacer's Style setting.
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
88 |
= 3.0.5 =
|
89 |
* Fixes string offset error
|
90 |
|
@@ -136,5 +139,5 @@ Try adding <code>margin-bottom: 25px;</code> to the Spacer's Style setting.
|
|
136 |
|
137 |
== Upgrade Notice ==
|
138 |
|
139 |
-
= 3.0.
|
140 |
-
New: This version
|
3 |
Donate link: http://www.clevelandwebdeveloper.com/wordpress-plugins/donate.php
|
4 |
Tags: spacer, spacing, line space
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 6.1
|
7 |
+
Stable tag: 3.0.6
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
= 3.0.6 =
|
89 |
+
* Security update
|
90 |
+
|
91 |
= 3.0.5 =
|
92 |
* Fixes string offset error
|
93 |
|
139 |
|
140 |
== Upgrade Notice ==
|
141 |
|
142 |
+
= 3.0.6 =
|
143 |
+
New: This version includes a security update - Enjoy!
|