Skip to content

Commit

Permalink
Fixes #6276 Prevent running the function rocket_clean_domain() mult…
Browse files Browse the repository at this point in the history
…iple times (#6402)
  • Loading branch information
remyperona authored and wordpressfan committed Mar 15, 2024
1 parent 48556a8 commit 5adf744
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/functions/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,10 @@ function rocket_clean_home_feeds() {
* @param WP_Filesystem_Direct|null $filesystem Optional. Instance of filesystem handler.
*/
function rocket_clean_domain( $lang = '', $filesystem = null ) {
if ( did_action( 'rocket_after_clean_domain' ) ) {
return;
}

if ( rocket_is_importing() ) {
return;
}
Expand Down

0 comments on commit 5adf744

Please sign in to comment.