Version Description
- Bug fixing (solving http URLs issue)
Download this release
Release Info
Developer | osamaesh |
Plugin | SEO Redirection Plugin |
Version | 7.7 |
Comparing to | |
See all releases |
Code changes from version 7.6 to 7.7
- common/customJs.js +2 -2
- common/util.php +2 -2
- custom/controls/cf.SR_redirect_cache.class.php +3 -3
- options/option_page_404.php +1 -1
- options/premium.php +9 -9
- readme.txt +5 -1
- seo-redirection.php +12 -7
common/customJs.js
CHANGED
@@ -14,10 +14,10 @@ jQuery(document).ready(function () {
|
|
14 |
});
|
15 |
$(document).on('click', '.SwalBtn2', function() {
|
16 |
window.open(
|
17 |
-
"
|
18 |
'_blank'
|
19 |
);
|
20 |
-
|
21 |
swal.clickConfirm();
|
22 |
});
|
23 |
$(document).on('click', '.SwalBtn3', function() {
|
14 |
});
|
15 |
$(document).on('click', '.SwalBtn2', function() {
|
16 |
window.open(
|
17 |
+
"https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin/",
|
18 |
'_blank'
|
19 |
);
|
20 |
+
|
21 |
swal.clickConfirm();
|
22 |
});
|
23 |
$(document).on('click', '.SwalBtn3', function() {
|
common/util.php
CHANGED
@@ -212,7 +212,7 @@ public function delete_my_options()
|
|
212 |
|
213 |
|
214 |
|
215 |
-
$pageURL .=
|
216 |
return $this->sanitize_req($pageURL,"url");
|
217 |
}
|
218 |
|
@@ -224,7 +224,7 @@ public function delete_my_options()
|
|
224 |
$url = str_ireplace("https://www.",'',$url);
|
225 |
$url = str_ireplace("http://",'',$url);
|
226 |
$url = str_ireplace("https://",'',$url);
|
227 |
-
return
|
228 |
}
|
229 |
//-----------------------------------------------------
|
230 |
public function make_relative_url($url)
|
212 |
|
213 |
|
214 |
|
215 |
+
$pageURL .= ($_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
|
216 |
return $this->sanitize_req($pageURL,"url");
|
217 |
}
|
218 |
|
224 |
$url = str_ireplace("https://www.",'',$url);
|
225 |
$url = str_ireplace("http://",'',$url);
|
226 |
$url = str_ireplace("https://",'',$url);
|
227 |
+
return ($url);
|
228 |
}
|
229 |
//-----------------------------------------------------
|
230 |
public function make_relative_url($url)
|
custom/controls/cf.SR_redirect_cache.class.php
CHANGED
@@ -35,9 +35,9 @@ if(!class_exists('free_SR_redirect_cache')){
|
|
35 |
$pageURL .= "://";
|
36 |
|
37 |
if (array_key_exists("SERVER_PORT",$_SERVER) && $_SERVER["SERVER_PORT"] != "80") {
|
38 |
-
$pageURL .=
|
39 |
} else {
|
40 |
-
$pageURL .=
|
41 |
}
|
42 |
|
43 |
return $pageURL;
|
@@ -51,7 +51,7 @@ if(!class_exists('free_SR_redirect_cache')){
|
|
51 |
$url = str_ireplace("https://www.",'',$url);
|
52 |
$url = str_ireplace("http://",'',$url);
|
53 |
$url = str_ireplace("https://",'',$url);
|
54 |
-
return
|
55 |
}
|
56 |
//-----------------------------------------------------
|
57 |
public function make_relative_url($url)
|
35 |
$pageURL .= "://";
|
36 |
|
37 |
if (array_key_exists("SERVER_PORT",$_SERVER) && $_SERVER["SERVER_PORT"] != "80") {
|
38 |
+
$pageURL .= ($_SERVER["HTTP_HOST"]).":".intval($_SERVER["SERVER_PORT"]).($_SERVER["REQUEST_URI"]);
|
39 |
} else {
|
40 |
+
$pageURL .= ($_SERVER["HTTP_HOST"]).($_SERVER["REQUEST_URI"]);
|
41 |
}
|
42 |
|
43 |
return $pageURL;
|
51 |
$url = str_ireplace("https://www.",'',$url);
|
52 |
$url = str_ireplace("http://",'',$url);
|
53 |
$url = str_ireplace("https://",'',$url);
|
54 |
+
return ($url);
|
55 |
}
|
56 |
//-----------------------------------------------------
|
57 |
public function make_relative_url($url)
|
options/option_page_404.php
CHANGED
@@ -164,5 +164,5 @@ function go_del()
|
|
164 |
|
165 |
?>
|
166 |
<div><b style="color:red">Have many broken links?</b><br />
|
167 |
-
keep track of 404 errors using our powerful SEO Redirection Plugin to show and fix all broken links & 404 errors that occur on your site. <a target="_blank" href="https://www.
|
168 |
<br/><br/>
|
164 |
|
165 |
?>
|
166 |
<div><b style="color:red">Have many broken links?</b><br />
|
167 |
+
keep track of 404 errors using our powerful SEO Redirection Plugin to show and fix all broken links & 404 errors that occur on your site. <a target="_blank" href="https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin/">click here to fix and improve your site SEO</a></div>
|
168 |
<br/><br/>
|
options/premium.php
CHANGED
@@ -25,14 +25,14 @@ $imgpath= $util->get_plugin_url().'custom/images/';
|
|
25 |
<br/>
|
26 |
|
27 |
|
28 |
-
<p style="text-align: center"><font size="5"><a href="
|
29 |
|
30 |
-
<p style="text-align: center"><a href="
|
31 |
-
<p style="text-align: center"><a href="
|
32 |
-
<p style="text-align: center"><a href="
|
33 |
-
<p style="text-align: center"><a href="
|
34 |
-
<p style="text-align: center"><a href="
|
35 |
-
<p style="text-align: center"><a href="
|
36 |
-
<p style="text-align: center"><a href="
|
37 |
|
38 |
-
<p style="text-align: center"><font size="5"><a href="
|
25 |
<br/>
|
26 |
|
27 |
|
28 |
+
<p style="text-align: center"><font size="5"><a href="https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin" target="_blank"><?php _e("Click Here for Pricing & Review","seo-redirection") ?></a></font></p>
|
29 |
|
30 |
+
<p style="text-align: center"><a href="https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin" target="_blank"><img src="<?php echo esc_url($imgpath) ?>redirect_manager_intro.png"></a></p>
|
31 |
+
<p style="text-align: center"><a href="https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin" target="_blank"><img src="<?php echo esc_url($imgpath) ?>404_manager.png"></a></p>
|
32 |
+
<p style="text-align: center"><a href="https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin" target="_blank"><img src="<?php echo esc_url($imgpath) ?>import_export.png"></a></p>
|
33 |
+
<p style="text-align: center"><a href="https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin" target="_blank"><img src="<?php echo esc_url($imgpath) ?>control_panel.png"></a></p>
|
34 |
+
<p style="text-align: center"><a href="https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin" target="_blank"><img src="<?php echo esc_url($imgpath) ?>help_center.png"></a></p>
|
35 |
+
<p style="text-align: center"><a href="https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin" target="_blank"><img src="<?php echo esc_url($imgpath) ?>other_features.png"></a></p>
|
36 |
+
<p style="text-align: center"><a href="https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin" target="_blank"><img src="<?php echo esc_url($imgpath) ?>circles.png"></a></p>
|
37 |
|
38 |
+
<p style="text-align: center"><font size="5"><a href="https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin" target="_blank"><?php _e("Click Here for Pricing & Review","seo-redirection") ?></a></font></p>
|
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 |
|
8 |
SEO Redirection is a powerful redirect manager to manage 301 redirects without requiring knowledge of Apache .htaccess files.
|
9 |
|
@@ -73,6 +73,10 @@ Yes, here is the plugin full knowledge base http://www.clogica.com/kb/
|
|
73 |
|
74 |
== Upgrade Notice ==
|
75 |
|
|
|
|
|
|
|
|
|
76 |
= 7.6 =
|
77 |
* Escaping data - part 2
|
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.7
|
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 |
+
= 7.7 =
|
77 |
+
* Bug fixing (solving http URLs issue)
|
78 |
+
|
79 |
+
|
80 |
= 7.6 =
|
81 |
* Escaping data - part 2
|
82 |
|
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.
|
8 |
Author URI: https://www.wp-buy.com
|
9 |
Text Domain: seo-redirection
|
10 |
*/
|
@@ -362,7 +362,9 @@ if(!function_exists("WPSR_make_redirect")) {
|
|
362 |
|
363 |
function WPSR_make_redirect($redirect_to, $redirect_type, $redirect_from, $obj = '')
|
364 |
{
|
|
|
365 |
global $wpdb, $util, $table_prefix, $post;
|
|
|
366 |
if (is_admin()) {
|
367 |
return 0;
|
368 |
}
|
@@ -467,7 +469,7 @@ if(!function_exists("WPSR_redirect")) {
|
|
467 |
|
468 |
|
469 |
if ($util->get_option_value('plugin_status') != '0') { // if not disabled
|
470 |
-
|
471 |
// if disable for admin and the user is admin
|
472 |
if (current_user_can('manage_options') == 1 && $util->get_option_value('plugin_status') == 2) {
|
473 |
// nothing
|
@@ -476,6 +478,7 @@ if(!function_exists("WPSR_redirect")) {
|
|
476 |
|
477 |
$table_name = $table_prefix . 'WP_SEO_Redirection';
|
478 |
$permalink = urldecode($util->get_current_relative_url());
|
|
|
479 |
if (substr($permalink, 0, 1) == ":") {
|
480 |
$first_slash = stripos($permalink, "/");
|
481 |
$permalink = substr($permalink, $first_slash, strlen($permalink) - $first_slash);
|
@@ -492,16 +495,18 @@ if(!function_exists("WPSR_redirect")) {
|
|
492 |
if (is_singular()) {
|
493 |
$post_cache_result = $SR_redirect_cache->redirect_cached($post->ID);
|
494 |
}
|
|
|
495 |
if ($post_cache_result == 'not_redirected') {
|
496 |
-
|
|
|
497 |
}
|
498 |
|
499 |
$permalink_options = $wpdb->prepare("( redirect_from = %s OR redirect_from = %s)", $permalink, $permalink_alternative);
|
500 |
|
501 |
$permalink_regex_options = $wpdb->prepare("(%s regexp regex or %s regexp regex )", $permalink, $permalink_alternative);
|
502 |
|
503 |
-
if (($util->get_option_value('redirect_control_panel') != '1') || ($util->get_option_value('redirect_control_panel') == '1' && !preg_match('/^' . str_replace('/', '\/', get_admin_url()) . '/i', $permalink) && !preg_match('/^' . str_replace('/', '\/', site_url()) . '\/wp-login.php/i', $permalink))) {
|
504 |
|
|
|
505 |
|
506 |
$theurl = $wpdb->get_row(" select * from $table_name where enabled=1 and regex='' and $permalink_options ");
|
507 |
if ($wpdb->num_rows > 0 && $theurl->redirect_to != '') {
|
@@ -906,13 +911,13 @@ if(!function_exists("WPSR_options_menu")) {
|
|
906 |
$total_404_errors = (WPSR_Get_total_404() > 10) ? __('You have', 'seo-redirection') . ' <b style="color:red; background-color:yellow; padding:3px;"> too many </b>' . __(' broken link (404 links)', 'seo-redirection') . ', <br>' : '';
|
907 |
|
908 |
|
909 |
-
echo '<div class="wrap"><h2>' . __("SEO Redirection Free", 'seo-redirection') . '</h2><b>' . __('Upgrade to', 'seo-redirection') . ' <a target="_blank" onclick="swal.clickConfirm();" href="
|
910 |
|
911 |
|
912 |
if (is_multisite()) {
|
913 |
|
914 |
-
echo '<div class="error" id="message"><p></p><div class="warning_icon"></div>' . __('This version does not support Multisite WordPress installation, you may face troubles like losing redirects when adding new sites to your network, the premium version supports multisite well', 'seo-redirection') . '(<a target="_blank" href="
|
915 |
-
|
916 |
|
917 |
}
|
918 |
|
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 |
*/
|
362 |
|
363 |
function WPSR_make_redirect($redirect_to, $redirect_type, $redirect_from, $obj = '')
|
364 |
{
|
365 |
+
|
366 |
global $wpdb, $util, $table_prefix, $post;
|
367 |
+
|
368 |
if (is_admin()) {
|
369 |
return 0;
|
370 |
}
|
469 |
|
470 |
|
471 |
if ($util->get_option_value('plugin_status') != '0') { // if not disabled
|
472 |
+
|
473 |
// if disable for admin and the user is admin
|
474 |
if (current_user_can('manage_options') == 1 && $util->get_option_value('plugin_status') == 2) {
|
475 |
// nothing
|
478 |
|
479 |
$table_name = $table_prefix . 'WP_SEO_Redirection';
|
480 |
$permalink = urldecode($util->get_current_relative_url());
|
481 |
+
|
482 |
if (substr($permalink, 0, 1) == ":") {
|
483 |
$first_slash = stripos($permalink, "/");
|
484 |
$permalink = substr($permalink, $first_slash, strlen($permalink) - $first_slash);
|
495 |
if (is_singular()) {
|
496 |
$post_cache_result = $SR_redirect_cache->redirect_cached($post->ID);
|
497 |
}
|
498 |
+
|
499 |
if ($post_cache_result == 'not_redirected') {
|
500 |
+
|
501 |
+
return 0;
|
502 |
}
|
503 |
|
504 |
$permalink_options = $wpdb->prepare("( redirect_from = %s OR redirect_from = %s)", $permalink, $permalink_alternative);
|
505 |
|
506 |
$permalink_regex_options = $wpdb->prepare("(%s regexp regex or %s regexp regex )", $permalink, $permalink_alternative);
|
507 |
|
|
|
508 |
|
509 |
+
if (($util->get_option_value('redirect_control_panel') != '1') || ($util->get_option_value('redirect_control_panel') == '1' && !preg_match('/^' . str_replace('/', '\/', get_admin_url()) . '/i', $permalink) && !preg_match('/^' . str_replace('/', '\/', site_url()) . '\/wp-login.php/i', $permalink))) {
|
510 |
|
511 |
$theurl = $wpdb->get_row(" select * from $table_name where enabled=1 and regex='' and $permalink_options ");
|
512 |
if ($wpdb->num_rows > 0 && $theurl->redirect_to != '') {
|
911 |
$total_404_errors = (WPSR_Get_total_404() > 10) ? __('You have', 'seo-redirection') . ' <b style="color:red; background-color:yellow; padding:3px;"> too many </b>' . __(' broken link (404 links)', 'seo-redirection') . ', <br>' : '';
|
912 |
|
913 |
|
914 |
+
echo '<div class="wrap"><h2>' . __("SEO Redirection Free", 'seo-redirection') . '</h2><b>' . __('Upgrade to', 'seo-redirection') . ' <a target="_blank" onclick="swal.clickConfirm();" href="https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin/">' . __("Pro Version", "seo-redirection") . '</a>' . __(" to manage 404 errors and empower your site SEO", "seo-redirection") . ' <strong style="color:yellow; background-color:red; padding:3px;"> ' . __("NOW 50% OFF ", 'seo-redirection') . '</strong></b><br/><br/>';
|
915 |
|
916 |
|
917 |
if (is_multisite()) {
|
918 |
|
919 |
+
echo '<div class="error" id="message"><p></p><div class="warning_icon"></div>' . __('This version does not support Multisite WordPress installation, you may face troubles like losing redirects when adding new sites to your network, the premium version supports multisite well', 'seo-redirection') . '(<a target="_blank" href="https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin/">
|
920 |
+
https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin/</a>) <p></p></div>';
|
921 |
|
922 |
}
|
923 |
|