| @@ -1,17 +1,15 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: Stream |
| 4 | - * Plugin URI: https://xwp.co/work/stream/ | |
| 4 | + * Plugin URI: https://wp-stream.com/ | |
| 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: 4.2.1 | |
| 6 | + * Version: 3.4.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 | |
| 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'; |
| @@ -61,10 +47,9 @@ | ||
| 61 | 47 | */ |
| 62 | 48 | function wp_stream_fail_php_version() { |
| 63 | 49 | load_plugin_textdomain( 'stream', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); |
| 64 | 50 | |
| 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 ); | |
| 51 | + $message = esc_html__( 'Stream requires PHP version 5.3+, plugin is currently NOT ACTIVE.', 'stream' ); | |
| 67 | 52 | $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) ); |
| 68 | 53 | |
| 69 | 54 | echo wp_kses_post( $html_message ); |
| 70 | 55 | } |