Last active
August 29, 2015 13:58
-
-
Save renanlara/10006774 to your computer and use it in GitHub Desktop.
Erro de acentuação no upload de arquivos
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 | |
// Edit in "wp-admin\includes\file.php" | |
// of: if | |
if ( false === @ move_uploaded_file( $file['tmp_name'], $new_file) ) { | |
// for: | |
if ( false === @ move_uploaded_file( $file['tmp_name'], utf8_decode($new_file) ) ) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment