SEO Redirection Plugin - Version 7.8

Version Description

  • Bug fixing - CSRF issue
Download this release

Release Info

Developer osamaesh
Plugin Icon 128x128 SEO Redirection Plugin
Version 7.8
Comparing to
See all releases

Code changes from version 7.7 to 7.8

custom/controls/grid_templates.php CHANGED
@@ -30,15 +30,6 @@ $template = array(
30
  'align' => 'center'
31
  )
32
  )
33
- ,
34
-
35
- 'del' => array(
36
-
37
- 'content' => "<a href='#' onclick=\"if(confirm('Are you sure you want to delete this item?'))window.location='{param}';\"><div class='del_template'></div></a>",
38
- 'options' => array(
39
- 'width' => '20px',
40
- 'align' => 'center'
41
- )
42
- )
43
 
44
  );
30
  'align' => 'center'
31
  )
32
  )
33
+
 
 
 
 
 
 
 
 
 
34
 
35
  );
options/option_page_404.php CHANGED
@@ -43,7 +43,7 @@ if($util->get_option_value('p404_discovery_status')!='1')
43
 
44
 
45
 
46
- $WPSR_get_current_parameters_ = $util->WPSR_get_current_parameters(array('del','search','page_num','add','edit'));
47
 
48
  ?>
49
 
43
 
44
 
45
 
46
+ $WPSR_get_current_parameters_ = $util->WPSR_get_current_parameters(array('search','page_num','add','edit'));
47
 
48
  ?>
49
 
options/option_page_custome_redirection_list.php CHANGED
@@ -4,18 +4,9 @@ if (!defined('ABSPATH'))
4
  global $wpdb, $table_prefix, $util;
5
  $table_name = $table_prefix . 'WP_SEO_Redirection';
6
 
7
- if ($util->get('del') != '') {
8
- $delid = intval($util->get('del'));
9
- $wpdb->query($wpdb->prepare(" delete from $table_name where ID=%d ", $delid));
10
 
11
- if ($util->there_is_cache() != '')
12
- $util->info_option_msg(__("You have a cache plugin installed", 'seo-redirection') . " <b>'" . $util->there_is_cache() . "'</b>, " . __("you have to clear cache after any changes to get the changes reflected immediately! ", 'seo-redirection'));
13
 
14
- $SR_redirect_cache = new free_SR_redirect_cache();
15
- $SR_redirect_cache->free_cache();
16
- }
17
-
18
- $rlink = $util->WPSR_get_current_parameters(array('del', 'search', 'page_num', 'add', 'edit', 'tab'));
19
 
20
  $redirect_from = isset($redirect_from) ? $redirect_from : '';
21
  $redirect_to = isset($redirect_to) ? $redirect_to : '';
@@ -323,11 +314,18 @@ else
323
  $grid->add_data_col('access_date','<a href="'.esc_url($url).'&type=dt&sort=asc" class="dt" data-sort="asc">Last Access</a>');
324
  }
325
 
326
- $grid->add_template_col('del', $util->WPSR_get_current_parameters('del') . '&del={db_ID}', __('Actions', 'seo-redirection'));
327
  $grid->add_template_col('edit', '{db_ID}', __('', 'seo-redirection'));
328
  $grid->run();
329
  ?>
330
  <?php
331
- echo '<input class="button-primary" id="btnDelete" type="submit" value="' . __("Delete", "seo-redirection") . '" onclick="return delete_function()">';
 
 
 
 
 
 
 
332
  ?>
333
  </form>
4
  global $wpdb, $table_prefix, $util;
5
  $table_name = $table_prefix . 'WP_SEO_Redirection';
6
 
 
 
 
7
 
 
 
8
 
9
+ $rlink = $util->WPSR_get_current_parameters(array( 'search', 'page_num', 'add', 'edit', 'tab'));
 
 
 
 
10
 
11
  $redirect_from = isset($redirect_from) ? $redirect_from : '';
12
  $redirect_to = isset($redirect_to) ? $redirect_to : '';
314
  $grid->add_data_col('access_date','<a href="'.esc_url($url).'&type=dt&sort=asc" class="dt" data-sort="asc">Last Access</a>');
315
  }
316
 
317
+ //$grid->add_template_col( $util->WPSR_get_current_parameters('del') . '&del={db_ID}', __('Actions', 'seo-redirection'));
318
  $grid->add_template_col('edit', '{db_ID}', __('', 'seo-redirection'));
319
  $grid->run();
320
  ?>
321
  <?php
322
+ echo '<input class="button-primary" id="btnDelete" type="submit" value="' . __("Delete", "seo-redirection") . '" onclick="return delete_function()">
323
+ <style>
324
+
325
+ td:first-child { text-align: left; width:30px }
326
+
327
+ </style>
328
+
329
+ ';
330
  ?>
331
  </form>
options/option_page_history.php CHANGED
@@ -2,7 +2,7 @@
2
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
  global $wpdb,$table_prefix,$util;
4
  $table_name = $table_prefix . 'WP_SEO_Redirection_LOG';
5
- $rlink=$util->WPSR_get_current_parameters(array('del','search','page_num','add','edit'));
6
 
7
  if($util->get('del')!=''){
8
  if($util->get('del')=='all'){
2
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
  global $wpdb,$table_prefix,$util;
4
  $table_name = $table_prefix . 'WP_SEO_Redirection_LOG';
5
+ $rlink=$util->WPSR_get_current_parameters(array('search','page_num','add','edit'));
6
 
7
  if($util->get('del')!=''){
8
  if($util->get('del')=='all'){
options/option_page_post_redirection_list.php CHANGED
@@ -17,7 +17,7 @@ $table_name = $table_prefix . 'WP_SEO_Redirection';
17
  $SR_redirect_cache->free_cache();
18
  }
19
 
20
- $rlink=$util->WPSR_get_current_parameters(array('del','search','page_num','add','edit','tab'));
21
 
22
  ?>
23
  <br/>
@@ -108,7 +108,7 @@ var sword = document.getElementById('search').value;
108
  $grid->add_data_col('hits',__('Hits','seo-redirection'));
109
  $grid->add_data_col('access_date',__('Last Access','seo-redirection'));
110
  $grid->add_template_col('go_link','post.php?post={db_postID}&action=edit','Actions');
111
- $grid->add_template_col('del', $util->WPSR_get_current_parameters('del') . '&del={db_ID}','');
112
 
113
  $grid->run();
114
 
17
  $SR_redirect_cache->free_cache();
18
  }
19
 
20
+ $rlink=$util->WPSR_get_current_parameters(array('search','page_num','add','edit','tab'));
21
 
22
  ?>
23
  <br/>
108
  $grid->add_data_col('hits',__('Hits','seo-redirection'));
109
  $grid->add_data_col('access_date',__('Last Access','seo-redirection'));
110
  $grid->add_template_col('go_link','post.php?post={db_postID}&action=edit','Actions');
111
+ // $grid->add_template_col( $util->WPSR_get_current_parameters('del') . '&del={db_ID}','');
112
 
113
  $grid->run();
114
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wp-buy, osama.esh
3
  Tags: post, admin, seo, pages, manage, 301, 404, soft 404, redirect, permalink, redirection, redirection, https, automatic redirection, htaccess, ssl, https redirection, ssl certificate, secure page, secure, force ssl, force https, seo redirection, post redirect, 404 to 301
4
  Requires at least: 4.1
5
  Tested up to: 5.8
6
- Stable tag: 7.7
7
 
8
  SEO Redirection is a powerful redirect manager to manage 301 redirects without requiring knowledge of Apache .htaccess files.
9
 
@@ -73,6 +73,11 @@ Yes, here is the plugin full knowledge base http://www.clogica.com/kb/
73
 
74
  == Upgrade Notice ==
75
 
 
 
 
 
 
76
  = 7.7 =
77
  * Bug fixing (solving http URLs issue)
78
 
3
  Tags: post, admin, seo, pages, manage, 301, 404, soft 404, redirect, permalink, redirection, redirection, https, automatic redirection, htaccess, ssl, https redirection, ssl certificate, secure page, secure, force ssl, force https, seo redirection, post redirect, 404 to 301
4
  Requires at least: 4.1
5
  Tested up to: 5.8
6
+ Stable tag: 7.8
7
 
8
  SEO Redirection is a powerful redirect manager to manage 301 redirects without requiring knowledge of Apache .htaccess files.
9
 
73
 
74
  == Upgrade Notice ==
75
 
76
+
77
+ = 7.8 =
78
+ * Bug fixing - CSRF issue
79
+
80
+
81
  = 7.7 =
82
  * Bug fixing (solving http URLs issue)
83
 
seo-redirection.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: SEO Redirection
4
  Plugin URI: https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin/
5
  Description: By this plugin you can manage all your website redirection types easily.
6
  Author: wp-buy
7
- Version: 7.7
8
  Author URI: https://www.wp-buy.com
9
  Text Domain: seo-redirection
10
  */
@@ -923,7 +923,7 @@ https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin/</a>) <p
923
 
924
  $mytabs = new phptab();
925
 
926
- $mytabs->set_ignore_parameter(array('del', 'search', 'page_num', 'add', 'edit', 'page404', 'do_404_del'));
927
  $mytabs->add_file_tab('cutom', __('Custom Redirects', 'seo-redirection'), 'option_page_custome_redirection.php', 'file');
928
  $mytabs->add_file_tab('posts', __('Post Redirects', 'seo-redirection'), 'option_page_post_redirection_list.php', 'file');
929
  $mytabs->add_file_tab('history', __('History', 'seo-redirection'), 'option_page_history.php', 'file');
4
  Plugin URI: https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin/
5
  Description: By this plugin you can manage all your website redirection types easily.
6
  Author: wp-buy
7
+ Version: 7.8
8
  Author URI: https://www.wp-buy.com
9
  Text Domain: seo-redirection
10
  */
923
 
924
  $mytabs = new phptab();
925
 
926
+ $mytabs->set_ignore_parameter(array( 'search', 'page_num', 'add', 'edit', 'page404', 'do_404_del'));
927
  $mytabs->add_file_tab('cutom', __('Custom Redirects', 'seo-redirection'), 'option_page_custome_redirection.php', 'file');
928
  $mytabs->add_file_tab('posts', __('Post Redirects', 'seo-redirection'), 'option_page_post_redirection_list.php', 'file');
929
  $mytabs->add_file_tab('history', __('History', 'seo-redirection'), 'option_page_history.php', 'file');