• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

timber / timber / 24459830472

15 Apr 2026 02:19PM UTC coverage: 89.847% (-0.1%) from 89.964%
24459830472

push

travis-ci

web-flow
fix: Fix bug when image resize with invalid input causes a fatal error (#3235)

* refactor: Enhance image operation with try/catch in ImageHelper::_operate()

Drop validate_image_file() and get_operation_name() in favor of a single
file_exists() guard plus try/catch around $op->run(). Re-throws when
WP_DEBUG is enabled, otherwise logs the actual exception and returns the
source URL. Handles corrupt images, unknown formats, and GD failures that
extension validation missed, with zero maintenance surface.

---------

Co-authored-by: Nicolas Lemoine <nico.lemoine@gmail.com>

12 of 21 new or added lines in 3 files covered. (57.14%)

3 existing lines in 2 files now uncovered.

4708 of 5240 relevant lines covered (89.85%)

66.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.18
/src/ImageHelper.php


Build SHA Not Found

The commit SHA "b66b208a924a39dba908dc5f7f5570f22db5b84e" was not found in your repository, so the file cannot be loaded. This may be because you posted from a local development environment, or your CI created an ephemeral commit.

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc