Skip to content

Commit 2b17191

Browse files
tbradshamatticbot
authored andcommitted
Phan: Handle PhanPluginDuplicateIfCondition violations (#45733)
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/19080514443 Upstream-Ref: Automattic/jetpack@43ba7b8
1 parent 6bee390 commit 2b17191

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ This is an alpha version! The changes listed here are not final.
1717

1818
### Fixed
1919
- Phan: Address PhanRedundantCondition, PhanRedundantArrayValuesCall, and PhanPluginRedundantAssignment violations.
20+
- Remove redundant code.
2021

2122
## [3.0.2] - 2025-10-10
2223
### Added

wp-cache-phase2.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2153,9 +2153,6 @@ function wp_cache_ob_callback( $buffer ) {
21532153
} elseif ( wpsc_is_caching_user_disabled() ) {
21542154
wp_cache_debug( 'wp_cache_ob_callback: Caching disabled for known user. User logged in or cookie found.' );
21552155
$cache_this_page = false;
2156-
} elseif ( wp_cache_user_agent_is_rejected() ) {
2157-
wp_cache_debug( 'wp_cache_ob_callback: Caching disabled because user agent was rejected.' );
2158-
$cache_this_page = false;
21592156
}
21602157

21612158
if ( isset( $wpsc_save_headers ) && $wpsc_save_headers ) {

0 commit comments

Comments
 (0)