From cc3bd4bca195884602725542fd216a9c53dec748 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 5 Jul 2013 18:43:45 +0000 Subject: [PATCH] @-silence an Imagick call that causes a warning in PHP 5.4. props DH-Shredder. fixes #24539. git-svn-id: http://core.svn.wordpress.org/trunk@24568 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-image-editor-imagick.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-wp-image-editor-imagick.php b/wp-includes/class-wp-image-editor-imagick.php index 653eb8a6a5..f5f36a4ce9 100644 --- a/wp-includes/class-wp-image-editor-imagick.php +++ b/wp-includes/class-wp-image-editor-imagick.php @@ -97,7 +97,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor { return false; try { - return ( (bool) Imagick::queryFormats( $imagick_extension ) ); + return ( (bool) @Imagick::queryFormats( $imagick_extension ) ); } catch ( Exception $e ) { return false;