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

Add list of files to report of 'wp doctor check cache-flush' command #191

Merged
merged 6 commits into from
Jul 18, 2024
Merged
Changes from 2 commits
Commits
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
6 changes: 1 addition & 5 deletions inc/checks/class-cache-flush.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ public function run() {

foreach ( $iterator as $file ) {
$this->check_file( $file );
if ( ! empty( $this->_matches ) ) {
// we are currently interested whether there's a use of wp_cache_flush() or not.
break;
}
}

if ( empty( $this->_matches ) ) {
Expand All @@ -36,6 +32,6 @@ public function run() {
}

$this->set_status( 'warning' );
$this->set_message( 'Use of wp_cache_flush() detected.' );
$this->set_message( 'Use of wp_cache_flush() detected in ' . implode( ', ', $this->_matches ) );
ernilambar marked this conversation as resolved.
Show resolved Hide resolved
}
}