Making WordPress.org


Ignore:
Timestamp:
10/24/2025 07:22:51 AM (6 months ago)
Author:
dd32
Message:

Plugin Directory: Correctly treat the output as an array, Partially reverts [14567].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php

    r14567 r14570  
    770770            $debug      = '';
    771771            if ( $result['output'] || $result['stderr'] ) {
    772                 $debug = trim( "{$result['output']}\n===\n{$result['stderr']}", "\n=" );
     772                $output = is_string( $result['output'] ) ? $result['output'] : implode( "\n", (array) $result['output'] );
     773                $debug = trim( "{$output}\n===\n{$result['stderr']}", "\n=" );
    773774                $debug = "\n```{$debug}```";
    774775            }
Note: See TracChangeset for help on using the changeset viewer.