PluginProbe
Stream – Activity Log & Audit Trail / 3.1
Stream – Activity Log & Audit Trail v3.1
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 +10 -26 trunk3.1 View file →
@@ -1,17 +1,15 @@
1 1 <?php
2 2 /**
3 - * Plugin Name: Stream - Activity Log & Audit Trail
4 - * Plugin URI: https://xwp.co/work/stream/
5 - * Description: Stream is an activity log and audit trail for WordPress — track every change made on your 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: 4.4.0
3 + * Plugin Name: Stream
4 + * Plugin URI: https://wp-stream.com/
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.1
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
14 12 */
15 13
16 14 /**
17 15 * Copyright (c) 2015 XWP.Co Pty Ltd. (https://xwp.co/)
@@ -30,22 +28,10 @@
30 28 * along with this program; if not, write to the Free Software
31 29 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
32 30 */
33 31
34 -/**
35 - * Configuration Constants
36 - */
37 -if ( ! defined( 'ABSPATH' ) ) {
38 - exit;
39 -}
40 -
41 -if ( ! defined( 'WP_STREAM_SETTINGS_CAPABILITY' ) ) {
42 - define( 'WP_STREAM_SETTINGS_CAPABILITY', 'manage_options' );
43 -}
44 -
45 -const WP_STREAM_MIN_PHP_VERSION = '7.2';
46 -
47 -if ( version_compare( PHP_VERSION, WP_STREAM_MIN_PHP_VERSION, '<' ) ) {
32 +if ( ! version_compare( PHP_VERSION, '5.3', '>=' ) ) {
33 + load_plugin_textdomain( 'stream', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
48 34 add_action( 'shutdown', 'wp_stream_fail_php_version' );
49 35 } else {
50 36 require __DIR__ . '/classes/class-plugin.php';
51 37 $plugin_class_name = 'WP_Stream\Plugin';
@@ -54,17 +40,15 @@
54 40 }
55 41 }
56 42
57 43 /**
58 - * Invoked when the PHP version check fails.
59 - *
44 + * Invoked when the PHP version check fails
60 45 * Load up the translations and add the error message to the admin notices.
61 46 */
62 47 function wp_stream_fail_php_version() {
63 48 load_plugin_textdomain( 'stream', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
64 49
65 - /* translators: %s is the minimum PHP version. */
66 - $message = sprintf( __( 'Stream requires PHP version %s or newer. Plugin is currently NOT ACTIVE.', 'stream' ), WP_STREAM_MIN_PHP_VERSION );
50 + $message = esc_html__( 'Stream requires PHP version 5.3+, plugin is currently NOT ACTIVE.', 'stream' );
67 51 $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
68 52
69 53 echo wp_kses_post( $html_message );
70 54 }
@@ -69,9 +53,9 @@
69 53 echo wp_kses_post( $html_message );
70 54 }
71 55
72 56 /**
73 - * Helper for external plugins which wish to use Stream.
57 + * Helper for external plugins which wish to use Stream
74 58 *
75 59 * @return WP_Stream\Plugin
76 60 */
77 61 function wp_stream_get_instance() {