diff --git a/composer.json b/composer.json
index 29ad75cd3..fa36e4d71 100644
--- a/composer.json
+++ b/composer.json
@@ -11,7 +11,7 @@
}
],
"require": {
- "php": ">=5.6.20",
+ "php": ">=7.0",
"composer/installers": "~1.0",
"ext-json": "*"
},
@@ -23,7 +23,7 @@
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpunit/phpunit": "^9.6",
- "roots/wordpress": "^6.5",
+ "roots/wordpress": "^6.6",
"wp-cli/wp-cli-bundle": "^2.6",
"wp-coding-standards/wpcs": "^3.1",
"wp-phpunit/wp-phpunit": "^6.6",
diff --git a/composer.lock b/composer.lock
index cfdaff9a5..d15c067c9 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "8e415ec47436f6af387de15534224042",
+ "content-hash": "735291b73e1d9e13c7c854fbfdd74ca3",
"packages": [
{
"name": "composer/installers",
@@ -8549,12 +8549,12 @@
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
- "php": ">=5.6.20",
+ "php": ">=7.0",
"ext-json": "*"
},
"platform-dev": [],
"platform-overrides": {
"php": "7.4"
},
- "plugin-api-version": "2.3.0"
+ "plugin-api-version": "2.6.0"
}
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 16924cca3..6e0135d41 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -7,7 +7,7 @@
-
+
warning
diff --git a/readme.txt b/readme.txt
index 79979bcb9..202e7a8d0 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,8 +1,8 @@
=== Stream ===
Contributors: xwp
Tags: wp stream, stream, activity, logs, track
-Requires at least: 4.5
-Tested up to: 6.4
+Requires at least: 4.6
+Tested up to: 6.6
Stable tag: 4.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
diff --git a/stream.php b/stream.php
index 075269f12..09ead93f0 100644
--- a/stream.php
+++ b/stream.php
@@ -31,7 +31,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
+const WP_STREAM_MIN_PHP_VERSION = '7.0';
+
+if ( version_compare( PHP_VERSION, WP_STREAM_MIN_PHP_VERSION, '<' ) ) {
add_action( 'shutdown', 'wp_stream_fail_php_version' );
} else {
require __DIR__ . '/classes/class-plugin.php';
@@ -49,7 +51,8 @@
function wp_stream_fail_php_version() {
load_plugin_textdomain( 'stream', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
- $message = esc_html__( 'Stream requires PHP version 5.3+, plugin is currently NOT ACTIVE.', 'stream' );
+ /* translators: %s is the minimum PHP version. */
+ $message = sprintf( __( 'Stream requires PHP version %s or newer. Plugin is currently NOT ACTIVE.', 'stream' ), WP_STREAM_MIN_PHP_VERSION );
$html_message = sprintf( '%s
', wpautop( $message ) );
echo wp_kses_post( $html_message );