Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 3.7.0 #1234

Merged
merged 45 commits into from
May 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
3e23739
Media connector test implemented.
kidunot89 Aug 5, 2020
7f0b46d
composer.lock updated
kidunot89 Aug 21, 2020
3e9e674
"add_attachment" callback refactored.
kidunot89 Aug 27, 2020
da1eaaa
jetpack connector test updated
kidunot89 Aug 3, 2020
d50ebbf
jetpack connector test updated.
kidunot89 Aug 5, 2020
ea709c3
Jetpack connector test completed.
kidunot89 Aug 21, 2020
f75574b
Syntax error fixed.
kidunot89 Aug 21, 2020
b759ddc
Merge remote-tracking branch 'origin/master' into develop
kasparsd Feb 12, 2021
4d1ad3f
Merge remote-tracking branch 'origin/master' into develop
kasparsd Feb 12, 2021
27fd09c
Update Node.js to >=v12.20.2
renovate-bot Feb 13, 2021
dc829b3
Update dependency eslint to ^7.20.0
renovate-bot Feb 13, 2021
47c0770
version numbers updated
kidunot89 Feb 19, 2021
f7df1e4
Update Node.js to >=v12.21.0
renovate-bot Feb 23, 2021
f166330
Update dependency eslint to ^7.21.0
renovate-bot Feb 27, 2021
2fedad3
Update dependency eslint to ^7.22.0
renovate-bot Mar 12, 2021
157e879
"Log::record_matches_rules()" refactored.
kidunot89 Mar 22, 2021
9036bee
"get_current_screen()" => "\get_current_screen()"
kidunot89 Mar 22, 2021
75510eb
Merge pull request #1154 from xwp/tests/media-connector
kidunot89 Mar 26, 2021
0d0f7fc
Merge pull request #1243 from xwp/bugfix/get_current_screen
kidunot89 Mar 26, 2021
2c05fb5
Merge pull request #1242 from xwp/bugfix/records-exclude-rules
kidunot89 Mar 26, 2021
ea3c7fd
Merge pull request #1153 from xwp/tests/jetpack-connector
kidunot89 Mar 26, 2021
93a7cd9
Update dependency eslint to ^7.23.0
renovate-bot Mar 26, 2021
322a57b
Fix missing highlight color in list table
ocean90 Mar 29, 2021
be5e17c
Update Node.js to >=v12.22.0
renovate-bot Mar 30, 2021
16277a5
Update dependency grunt-contrib-uglify to ~5.0.1
renovate-bot Mar 31, 2021
b72c057
Update Node.js to >=v12.22.1
renovate-bot Apr 6, 2021
305583d
Update dependency eslint to ^7.24.0
renovate-bot Apr 9, 2021
feff882
Update dependency grunt to ~1.4.0
renovate-bot Apr 22, 2021
c65e738
Update dependency eslint to ^7.25.0
renovate-bot Apr 24, 2021
56d446d
Update wp_stream_get_sites() to work consistently with the `limit`/`n…
dd32 May 4, 2021
ab1d7ba
Include the blog ID context in the context dropdown.
dd32 May 4, 2021
5df65e7
Update dependency eslint to ^7.26.0
renovate-bot May 8, 2021
ab364e5
Merge pull request #1259 from dd32/fix/network/exclude-blog-list
kasparsd May 11, 2021
5faab2b
Merge pull request #1258 from dd32/fix/wp_stream_get_sites/large_netw…
kasparsd May 11, 2021
88b0f3c
Merge pull request #1246 from ocean90/fix/alert-highlight-color
kasparsd May 11, 2021
ecb3ec4
Merge remote-tracking branch 'origin/develop' into release/3.7.0
kasparsd May 11, 2021
b5633e5
Bump version
kasparsd May 11, 2021
2fa58de
Group updates for readability
kasparsd May 11, 2021
0e0b00f
List the latest additions to this release
kasparsd May 11, 2021
cab3948
Make it NOT look like commented-out code
kasparsd May 11, 2021
e16ccf3
Format per WPCS
kasparsd May 11, 2021
7122c82
Be generic about the required version
kasparsd May 11, 2021
0c6b312
Bump JS deps
kasparsd May 11, 2021
a9234c9
Use the pre-build images instead
kasparsd May 11, 2021
dea5ff4
Authenticate for pulls
kasparsd May 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ services:
- docker

before_install:
- docker-compose pull wordpress
- echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker-compose pull
- nvm install
- nvm use
# Lock to Composer version 1 for now.
Expand Down
6 changes: 4 additions & 2 deletions alerts/class-alert-type-highlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,10 @@ public function save_fields( $alert ) {
* @return array New list of classes.
*/
public function post_class( $classes, $record ) {
if ( ! empty( $record->meta['wp_stream_alerts_triggered']['highlight']['highlight_color'] ) ) {
$color = $record->meta['wp_stream_alerts_triggered']['highlight']['highlight_color'];
$record = new Record( $record );
$alerts_triggered = $record->get_meta( Alerts::ALERTS_TRIGGERED_META_KEY, true );
if ( ! empty( $alerts_triggered[ $this->slug ]['highlight_color'] ) ) {
$color = $alerts_triggered[ $this->slug ]['highlight_color'];
}

if ( empty( $color ) || ! is_string( $color ) ) {
Expand Down
2 changes: 1 addition & 1 deletion classes/class-alerts-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __construct( $plugin ) {
* @return array
*/
public function parse_request( $query_vars ) {
$screen = get_current_screen();
$screen = \get_current_screen();
if ( 'edit-wp_stream_alerts' === $screen->id && Alerts::POST_TYPE === $query_vars['post_type'] && empty( $query_vars['post_status'] ) ) {
$query_vars['post_status'] = array( 'wp_stream_enabled', 'wp_stream_disabled' );
}
Expand Down
10 changes: 6 additions & 4 deletions classes/class-log.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,23 +242,25 @@ public function is_record_excluded( $connector, $context, $action, $user = null,
* @return boolean
*/
public function record_matches_rules( $record, $exclude_rules ) {
$matches_needed = count( $exclude_rules );
$matches_found = 0;
foreach ( $exclude_rules as $exclude_key => $exclude_value ) {
if ( ! isset( $record[ $exclude_key ] ) ) {
if ( ! isset( $record[ $exclude_key ] ) || is_null( $exclude_value ) ) {
continue;
}

if ( 'ip_address' === $exclude_key ) {
$ip_addresses = explode( ',', $exclude_value );

if ( in_array( $record['ip_address'], $ip_addresses, true ) ) {
return true;
$matches_found++;
}
} elseif ( $record[ $exclude_key ] === $exclude_value ) {
return true;
$matches_found++;
}
}

return false;
return $matches_found === $matches_needed;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion classes/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Plugin {
*
* @const string
*/
const VERSION = '3.6.2';
const VERSION = '3.7.0';

/**
* WP-CLI command
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"wp-phpunit/wp-phpunit": "^5.4",
"wpackagist-plugin/advanced-custom-fields": "5.8.12",
"wpackagist-plugin/easy-digital-downloads": "^2.9.23",
"wpackagist-plugin/jetpack": "^8.7",
"wpackagist-plugin/user-switching": "^1.5.5",
"wpsh/local": "^0.2.3"
},
Expand Down
113 changes: 69 additions & 44 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading