Skip to content

Commit 769b7e6

Browse files
anomiexmatticbot
authored andcommitted
Update phpcs deps so phpcompatibility-dev test can run (#46146)
PHPCompatibility upstream now depends on 4.0.1. We can't bump everything to that yet, but we can do an `||` dep in the places needed for that run. Then fix new phpcs sniffs. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/19827271100 Upstream-Ref: Automattic/jetpack@7d47ac5
1 parent 7f999b3 commit 769b7e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wp-cache.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,12 @@ function wp_cache_manager_error_checks() {
471471
return false;
472472
}
473473

474+
// phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.safe_modeDeprecatedRemoved -- Version is checked before access.
474475
if ( PHP_VERSION_ID < 50300 && ( ini_get( 'safe_mode' ) === '1' || strtolower( ini_get( 'safe_mode' ) ) === 'on' ) ) { // @codingStandardsIgnoreLine
475476
echo '<div class="notice notice-error"><h4>' . esc_html__( 'Warning! PHP Safe Mode Enabled!', 'wp-super-cache' ) . '</h4>';
476477
echo '<p>' . esc_html__( 'You may experience problems running this plugin because SAFE MODE is enabled.', 'wp-super-cache' ) . '<br />';
477478

479+
// phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.safe_mode_gidDeprecatedRemoved -- Version is checked before access.
478480
if ( ! ini_get( 'safe_mode_gid' ) ) { // @codingStandardsIgnoreLine
479481
esc_html_e( 'Your server is set up to check the owner of PHP scripts before allowing them to read and write files.', 'wp-super-cache' );
480482
echo '<br />';

0 commit comments

Comments
 (0)