Making WordPress.org

Changeset 10699


Ignore:
Timestamp:
02/17/2021 11:05:30 PM (4 years ago)
Author:
coffee2code
Message:

Developer, CLI: Output a heads-up message when performing clean if multiple temp directories were detected.

Multiple temp directories could be present if previous parsing attempts were unsuccessfully and weren't subsequently explicitly cleaned up after.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/cli-commands.php

    r10698 r10699  
    268268        $tmp_dirs = glob( WP_CLI\Utils\get_temp_dir() . 'devhub_*' );
    269269
     270        if ( count( $tmp_dirs ) > 1 ) {
     271            WP_CLI::log( "Multiple temporary directories were detected. This can be the case if earlier parsings were aborted or cancelled without completing." );
     272        }
     273
    270274        foreach ( $tmp_dirs as $tmp_dir ) {
    271275            //WP_CLI::log( "Deleting temporary directory $tmp_dir...");
Note: See TracChangeset for help on using the changeset viewer.