Created
November 19, 2014 10:52
-
-
Save marcmascort/17d22644f50b0c05f620 to your computer and use it in GitHub Desktop.
Force GD image editor for Wordpress (Solve HTML ERROR uploading images)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function change_graphic_lib($array) { | |
return array( 'WP_Image_Editor_GD', ); | |
} | |
add_filter( 'wp_image_editors', 'change_graphic_lib' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment