PluginProbe
Stream – Activity Log & Audit Trail / 4.0.2
Stream – Activity Log & Audit Trail v4.0.2
4.4.0 4.3.0 4.2.2 4.2.1 trunk 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1 3.1.1 3.10.0 3.2.0 3.2.1 3.2.2 3.2.3 All 50 releases
← All changes | stream.php +13 -8 3.2.04.0.2 View file →
@@ -1,15 +1,17 @@
1 1 <?php
2 2 /**
3 3 * Plugin Name: Stream
4 - * Plugin URI: https://wp-stream.com/
4 + * Plugin URI: https://xwp.co/work/stream/
5 5 * Description: Stream tracks logged-in user activity so you can monitor every change made on your WordPress site in beautifully organized detail. All activity is organized by context, action and IP address for easy filtering. Developers can extend Stream with custom connectors to log any kind of action.
6 - * Version: 3.2.0
6 + * Version: 4.0.2
7 7 * Author: XWP
8 - * Author URI: https://xwp.co/
8 + * Author URI: https://xwp.co
9 9 * License: GPLv2+
10 10 * Text Domain: stream
11 11 * Domain Path: /languages
12 + *
13 + * @package WP_Stream
12 14 */
13 15
14 16 /**
15 17 * Copyright (c) 2015 XWP.Co Pty Ltd. (https://xwp.co/)
@@ -28,10 +30,11 @@
28 30 * along with this program; if not, write to the Free Software
29 31 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30 32 */
31 33
32 -if ( ! version_compare( PHP_VERSION, '5.3', '>=' ) ) {
33 - load_plugin_textdomain( 'stream', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
34 +const WP_STREAM_MIN_PHP_VERSION = '7.0';
35 +
36 +if ( version_compare( PHP_VERSION, WP_STREAM_MIN_PHP_VERSION, '<' ) ) {
34 37 add_action( 'shutdown', 'wp_stream_fail_php_version' );
35 38 } else {
36 39 require __DIR__ . '/classes/class-plugin.php';
37 40 $plugin_class_name = 'WP_Stream\Plugin';
@@ -40,15 +43,17 @@
40 43 }
41 44 }
42 45
43 46 /**
44 - * Invoked when the PHP version check fails
47 + * Invoked when the PHP version check fails.
48 + *
45 49 * Load up the translations and add the error message to the admin notices.
46 50 */
47 51 function wp_stream_fail_php_version() {
48 52 load_plugin_textdomain( 'stream', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
49 53
50 - $message = esc_html__( 'Stream requires PHP version 5.3+, plugin is currently NOT ACTIVE.', 'stream' );
54 + /* translators: %s is the minimum PHP version. */
55 + $message = sprintf( __( 'Stream requires PHP version %s or newer. Plugin is currently NOT ACTIVE.', 'stream' ), WP_STREAM_MIN_PHP_VERSION );
51 56 $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
52 57
53 58 echo wp_kses_post( $html_message );
54 59 }
@@ -53,9 +58,9 @@
53 58 echo wp_kses_post( $html_message );
54 59 }
55 60
56 61 /**
57 - * Helper for external plugins which wish to use Stream
62 + * Helper for external plugins which wish to use Stream.
58 63 *
59 64 * @return WP_Stream\Plugin
60 65 */
61 66 function wp_stream_get_instance() {