Skip to content

Instantly share code, notes, and snippets.

@renanlara
Last active August 29, 2015 13:58
Show Gist options
  • Save renanlara/10006774 to your computer and use it in GitHub Desktop.
Save renanlara/10006774 to your computer and use it in GitHub Desktop.
Erro de acentuação no upload de arquivos
<?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