Version Description
September 17, 2021 =
Fix: Ensure Stream database tables are present on all WP admin requests to help with installations where the plugin activate hook never runs #1286, props @tomjn.
Download this release
Release Info
Developer | kasparsd |
Plugin | Stream |
Version | 3.8.1 |
Comparing to | |
See all releases |
Code changes from version 3.8.0 to 3.8.1
- classes/class-install.php +6 -0
- classes/class-plugin.php +1 -1
- readme.txt +5 -1
- stream.php +1 -1
classes/class-install.php
CHANGED
@@ -71,6 +71,12 @@ class Install {
|
|
71 |
$this->db_version = $this->get_db_version();
|
72 |
$this->stream_url = self_admin_url( $this->plugin->admin->admin_parent_page . '&page=' . $this->plugin->admin->settings_page_slug );
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
register_activation_hook( $this->plugin->locations['plugin'], array( $this, 'check' ) );
|
75 |
}
|
76 |
|
71 |
$this->db_version = $this->get_db_version();
|
72 |
$this->stream_url = self_admin_url( $this->plugin->admin->admin_parent_page . '&page=' . $this->plugin->admin->settings_page_slug );
|
73 |
|
74 |
+
// Ensure the tables are created even when the plugin activation hook does not run,
|
75 |
+
// and run the check in WP Admin or on WP CLI to avoid extra frontend load.
|
76 |
+
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
|
77 |
+
$this->check();
|
78 |
+
}
|
79 |
+
|
80 |
register_activation_hook( $this->plugin->locations['plugin'], array( $this, 'check' ) );
|
81 |
}
|
82 |
|
classes/class-plugin.php
CHANGED
@@ -18,7 +18,7 @@ class Plugin {
|
|
18 |
*
|
19 |
* @const string
|
20 |
*/
|
21 |
-
const VERSION = '3.8.
|
22 |
|
23 |
/**
|
24 |
* WP-CLI command
|
18 |
*
|
19 |
* @const string
|
20 |
*/
|
21 |
+
const VERSION = '3.8.1';
|
22 |
|
23 |
/**
|
24 |
* WP-CLI command
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: xwp
|
|
3 |
Tags: wp stream, stream, activity, logs, track
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 5.8
|
6 |
-
Stable tag: 3.8.
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -91,6 +91,10 @@ Past Contributors: fjarrett, shadyvb, chacha, westonruter, johnregan3, jacobschw
|
|
91 |
|
92 |
== Changelog ==
|
93 |
|
|
|
|
|
|
|
|
|
94 |
= 3.8.0 - August 31, 2021 =
|
95 |
|
96 |
- Fix: PHP 8.0 compatibility [#1272](https://github.com/xwp/stream/issues/1272), props [@cjhaas](https://github.com/cjhaas).
|
3 |
Tags: wp stream, stream, activity, logs, track
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 5.8
|
6 |
+
Stable tag: 3.8.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
91 |
|
92 |
== Changelog ==
|
93 |
|
94 |
+
= 3.8.1 - September 17, 2021 =
|
95 |
+
|
96 |
+
- Fix: Ensure Stream database tables are present on all WP admin requests to help with installations where the plugin activate hook never runs [#1286](https://github.com/xwp/stream/pull/1286), props [@tomjn](https://github.com/tomjn).
|
97 |
+
|
98 |
= 3.8.0 - August 31, 2021 =
|
99 |
|
100 |
- Fix: PHP 8.0 compatibility [#1272](https://github.com/xwp/stream/issues/1272), props [@cjhaas](https://github.com/cjhaas).
|
stream.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Stream
|
4 |
* Plugin URI: https://xwp.co/work/stream/
|
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.8.
|
7 |
* Author: XWP
|
8 |
* Author URI: https://xwp.co
|
9 |
* License: GPLv2+
|
3 |
* Plugin Name: Stream
|
4 |
* Plugin URI: https://xwp.co/work/stream/
|
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.8.1
|
7 |
* Author: XWP
|
8 |
* Author URI: https://xwp.co
|
9 |
* License: GPLv2+
|