Fatal Error in Debug Mode
-
The latest published version of Document Gallery (4.4.3) produces a Fatal Error whenever WordPress is in Debug mode. I tracked this down to a misuse of the implode function here:
/inc/class-gallery.php – Line 542:
$comment .= '<!-- Attachment IDs: ' . implode( $ids, ', ' ) . ' -->' . PHP_EOL;
PHP documentation states that implode() takes a separator and an array, in that order. So the above should be:
$comment .= '<!-- Attachment IDs: ' . implode( ', ', $ids ) . ' -->' . PHP_EOL;
EDIT: I see this bug was fixed in 4.4.4 – but this version is only in the repository – not yet published. Is this version still in development? When can we hope to see it pushed live?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fatal Error in Debug Mode’ is closed to new replies.