From 6c9a41b97c9619fbf08ff6e1aaec0020a261ea88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 29 Dec 2020 06:49:37 +0100 Subject: [PATCH 1/2] Remove redundant textdomain loading `wp_stream_fail_php_version` does it itself. --- stream.php | 1 - 1 file changed, 1 deletion(-) diff --git a/stream.php b/stream.php index f4f9d124d..7a45b3360 100644 --- a/stream.php +++ b/stream.php @@ -32,7 +32,6 @@ */ if ( ! version_compare( PHP_VERSION, '5.3', '>=' ) ) { - load_plugin_textdomain( 'stream', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); add_action( 'shutdown', 'wp_stream_fail_php_version' ); } else { require __DIR__ . '/classes/class-plugin.php'; From 96c3676d099ab822dd9bb94cb5aba779d2a15c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 4 Jan 2021 21:28:55 +0100 Subject: [PATCH 2/2] Update stream.php --- stream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.php b/stream.php index 7a45b3360..2fdbb606a 100644 --- a/stream.php +++ b/stream.php @@ -31,7 +31,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -if ( ! version_compare( PHP_VERSION, '5.3', '>=' ) ) { +if ( version_compare( PHP_VERSION, '5.3', '<' ) ) { add_action( 'shutdown', 'wp_stream_fail_php_version' ); } else { require __DIR__ . '/classes/class-plugin.php';