Easy Table - Version 1.8

Version Description

  • Remove unused and unsafe code that made this plugin taken down from repository.
Download this release

Release Info

Developer takien
Plugin Icon wp plugin Easy Table
Version 1.8
Comparing to
See all releases

Code changes from version 1.7 to 1.8

Files changed (2) hide show
  1. easy-table.php +4 -48
  2. readme.txt +5 -2
easy-table.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Easy Table
4
Plugin URI: http://takien.com/
5
Description: Create table in post, page, or widget in easy way.
6
Author: Takien
7
- Version: 1.7
8
Author URI: http://takien.com/
9
*/
10
@@ -106,7 +106,7 @@ function __construct(){
106
private function easy_table_base($return){
107
$easy_table_base = Array(
108
'name' => 'Easy Table',
109
- 'version' => '1.7',
110
'plugin-domain' => 'easy-table'
111
);
112
return $easy_table_base[$return];
@@ -570,16 +570,7 @@ function themes(){
570
}
571
return $themes;
572
}
573
- function theme_content() {
574
- if(!isset($_GET['edit'])) {
575
- return false;
576
- }
577
- $theme = $_GET['edit'];
578
- $dir = plugin_dir_path(__FILE__).'themes/';
579
- if(is_writable($dir.$theme.'/style.css')) {
580
- return file_get_contents($dir.$theme.'/style.css');
581
- }
582
- }
583
/**
584
* Register plugin setting
585
* @since: 1.7 add sanitize_callback
@@ -595,13 +586,7 @@ function easy_table_register_setting() {
595
*/
596
597
function easy_table_sanitize_callback ( $value ) {
598
- if(is_array($value)) {
599
- $value = filter_var( $value,FILTER_CALLBACK, array("options"=>"strip_tags"));
600
- }
601
- else {
602
- $value = strip_tags( $value );
603
- }
604
- return $value;
605
}
606
/**
607
* Render form
@@ -1101,35 +1086,6 @@ col4,col5,col6
1101
1102
</div>
1103
<div class="clear"></div>
1104
- <?php elseif($_GET['gettab'] == 'themes') : ?>
1105
- <h3><?php _e('Easy Table theme editor');?></h3>
1106
-
1107
- <div class="row">
1108
- <div class="columns nine">
1109
- <textarea name="" id="easy-table-theme-editor"><?php echo esc_textarea($this->theme_content());?></textarea>
1110
- <input type="submit" class="button primary" value="Save"/>
1111
- </div>
1112
- <div class="columns three">
1113
- <ul>
1114
- <?php
1115
- foreach($this->themes() as $theme) {
1116
- echo '
1117
- <li><a href="#">'.$theme.'</a>
1118
- <a href="options-general.php?page=easy-table&gettab=themes&edit='.$theme.'">edit</a>
1119
- <a href="&edit-theme=1&clone=1#">clone</a>
1120
- <a href="#">delete</a>
1121
- <a href="#">preview</a>
1122
- </li>';
1123
- }
1124
- ?>
1125
- </ul>
1126
- <form action="">
1127
- New theme: <br/>
1128
- <input type="text" value="" placeholder="Theme name" name="themename"/>
1129
- <input type="submit" value="Create"/>
1130
- </form>
1131
- </div>
1132
- </div>
1133
1134
<?php elseif($_GET['gettab'] == 'support') : ?>
1135
<p>To ask question, please visit this plugin support on WordPress.org</p>
4
Plugin URI: http://takien.com/
5
Description: Create table in post, page, or widget in easy way.
6
Author: Takien
7
+ Version: 1.8
8
Author URI: http://takien.com/
9
*/
10
106
private function easy_table_base($return){
107
$easy_table_base = Array(
108
'name' => 'Easy Table',
109
+ 'version' => '1.8',
110
'plugin-domain' => 'easy-table'
111
);
112
return $easy_table_base[$return];
570
}
571
return $themes;
572
}
573
+
574
/**
575
* Register plugin setting
576
* @since: 1.7 add sanitize_callback
586
*/
587
588
function easy_table_sanitize_callback ( $value ) {
589
+ return filter_var( $value,FILTER_CALLBACK, array("options"=>"strip_tags"));
590
}
591
/**
592
* Render form
1086
1087
</div>
1088
<div class="clear"></div>
1089
1090
<?php elseif($_GET['gettab'] == 'support') : ?>
1091
<p>To ask question, please visit this plugin support on WordPress.org</p>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: takien
3
Donate link: http://takien.com/donate
4
Tags: table,csv,csv-to-table,post,excel,csv file,widget,tablesorter
5
Requires at least: 4.0
6
- Tested up to: 4.7.2
7
- Stable tag: 1.7
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -248,6 +248,9 @@ No
248
249
== Changelog ==
250
251
= 1.7 =
252
* Add filter to the option values to prevent security issues (Vulnerability reported by Manuel Garcia Cardenas)
253
3
Donate link: http://takien.com/donate
4
Tags: table,csv,csv-to-table,post,excel,csv file,widget,tablesorter
5
Requires at least: 4.0
6
+ Tested up to: 4.9.8
7
+ Stable tag: 1.8
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
248
249
== Changelog ==
250
251
+ = 1.8 =
252
+ * Remove unused and unsafe code that made this plugin taken down from repository.
253
+
254
= 1.7 =
255
* Add filter to the option values to prevent security issues (Vulnerability reported by Manuel Garcia Cardenas)
256