Making WordPress.org


Ignore:
Timestamp:
12/05/2017 02:22:32 AM (6 years ago)
Author:
dd32
Message:

Plugin Directory: add use Exception to a bin script, if the plugin didn't exist it'd fatal error as it references Exception directly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/bin/rebuild-zip.php

    r6022 r6235  
    33use WordPressdotorg\Plugin_Directory\Plugin_Directory;
    44use WordPressdotorg\Plugin_Directory\Tools\SVN;
     5use Exception;
    56
    67// This script should only be called in a CLI environment.
     
    104105
    105106    echo "OK. Took " . round( microtime(1) - $start_time, 2 )  . "s\n";
    106 } catch( \Exception $e ) {
     107} catch( Exception $e ) {
    107108    fwrite( STDERR, "{$plugin_slug}: Zip Rebuild failed: " . $e->getMessage() . "\n" );
    108109    echo "Failed. Took " . round( microtime(1) - $start_time, 2 )  . "s\n";
Note: See TracChangeset for help on using the changeset viewer.