Changeset 14773
- Timestamp:
- 03/28/2026 07:57:06 PM (7 days ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 edited
-
cli/class-block-plugin-checker.php (modified) (1 diff)
-
zip/class-builder.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-block-plugin-checker.php
r12356 r14773 249 249 __FUNCTION__, 250 250 'error', 251 sprintf( __( 'Error fetching repository %s: %s', 'wporg-plugins' ), $svn_url, $export['errors'][0]['error_code'] ),252 $export['errors'] 251 sprintf( __( 'Error fetching repository %s: %s', 'wporg-plugins' ), $svn_url, $export['errors'][0]['error_code'] ?? 'unknown error' ), 252 $export['errors'] ?? array() 253 253 ); 254 254 return false; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/zip/class-builder.php
r14432 r14773 396 396 } 397 397 if ( ! $res['result'] ) { 398 throw new Exception( __METHOD__ . ': ' . $res['errors'][0]['error_message'], 404 );398 throw new Exception( __METHOD__ . ': ' . ( $res['errors'][0]['error_message'] ?? 'unknown error' ), 404 ); 399 399 } 400 400 … … 404 404 // Verify that the specified plugin zip will contain files. 405 405 if ( ! array_diff( scandir( $this->tmp_build_dir ), array( '.', '..' ) ) ) { 406 throw new Exception( __ _METHOD__ . ': No files exist in the plugin directory', 404 );406 throw new Exception( __METHOD__ . ': No files exist in the plugin directory', 404 ); 407 407 } 408 408
Note: See TracChangeset
for help on using the changeset viewer.