Skip to content

Commit

Permalink
Add explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Sep 5, 2024
1 parent 9487cfe commit 10b39a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
'plugin',
$plugin_command,
array(
/**
* This is a cleanup for the below hook which adds the object-cache.php drop-in.
*
* It is executed right after the command ran.
*
* Since the drop-in could be from somewhere else, a check of its contents is necessary
* to verify it is the one that was added below.
*/
'after_invoke' => function () {
if (
file_exists( ABSPATH . 'wp-content/object-cache.php' ) &&
Expand Down

0 comments on commit 10b39a9

Please sign in to comment.