Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #385 from cyberscribe/patch-1
Browse files Browse the repository at this point in the history
Displays XML error messages on production website
  • Loading branch information
olefredrik committed Jul 16, 2015
2 parents 1d5cdc5 + 26984f3 commit af0c780
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion library/cleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ public function recreate_img_tag( $tag ) {
}

catch ( Exception $e ) {
echo 'Caught exception: ', $e->getMessage(), "\n";
if ( defined('WP_DEBUG') && WP_DEBUG ) {
if ( defined('WP_DEBUG_DISPLAY') && WP_DEBUG_DISPLAY ) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
}
}

// Tag not an img, so just return it untouched
Expand Down

0 comments on commit af0c780

Please sign in to comment.