PluginProbe
Redirection / 3.7
Redirection v3.7
5.10.0 5.9.0 5.8.1 5.8.0 3.7.2 3.7.3 4.0 4.0.1 4.1 4.1.1 4.2 4.2.1 4.2.2 4.2.3 4.3 4.3.1 4.3.2 4.3.3 4.4 4.4.1 4.4.2 4.5 4.5.1 4.6.2 4.7.1 All 130 releases
← All changes | redirection.php +2 -21 4.23.7 View file →
@@ -2,9 +2,9 @@
2 2 /*
3 3 Plugin Name: Redirection
4 4 Plugin URI: https://redirection.me/
5 5 Description: Manage all your 301 redirects and monitor 404 errors
6 -Version: 4.2
6 +Version: 3.7
7 7 Author: John Godley
8 8 Author URI: https://johngodley.com
9 9 Text Domain: redirection
10 10 Domain Path: /locale
@@ -20,9 +20,9 @@
20 20 For full license details see license.txt
21 21 ============================================================================================================
22 22 */
23 23
24 -define( 'REDIRECTION_DB_VERSION', '4.1' ); // DB schema version. Only change if DB needs changing
24 +define( 'REDIRECTION_DB_VERSION', '2.4' ); // DB schema version. Only change if DB needs changing
25 25 define( 'REDIRECTION_FILE', __FILE__ );
26 26 define( 'REDIRECTION_DEV_MODE', false );
27 27
28 28 if ( ! defined( 'REDIRECTION_FLYING_SOLO' ) ) {
@@ -30,16 +30,8 @@
30 30 }
31 31
32 32 // This file must support PHP < 5.4 so as not to crash
33 33 if ( version_compare( phpversion(), '5.4' ) < 0 ) {
34 - add_action( 'plugin_action_links_' . basename( dirname( REDIRECTION_FILE ) ) . '/' . basename( REDIRECTION_FILE ), 'red_deprecated_php', 10, 4 );
35 -
36 - function red_deprecated_php( $links ) {
37 - /* translators: 1: PHP version */
38 - array_unshift( $links, '<a href="https://redirection.me/support/problems/php-version/" style="color: red; text-decoration: underline">' . sprintf( __( 'Disabled! Detected PHP %s, need PHP 5.4+', 'redirection' ), phpversion() ) . '</a>' );
39 - return $links;
40 - }
41 -
42 34 return;
43 35 }
44 36
45 37 include dirname( __FILE__ ) . '/redirection-version.php';
@@ -94,15 +86,4 @@
94 86 }
95 87
96 88 add_action( 'rest_api_init', 'red_start_rest' );
97 89 add_action( 'init', 'redirection_locale' );
98 -
99 -// This is causing a lot of problems with the REST API - disable qTranslate
100 -add_filter( 'qtranslate_language_detect_redirect', function( $lang, $url ) {
101 - $url = Redirection_Request::get_request_url();
102 -
103 - if ( strpos( $url, '/wp-json/' ) !== false || strpos( $url, 'index.php?rest_route' ) !== false ) {
104 - return false;
105 - }
106 -
107 - return $lang;
108 -}, 10, 2 );