fix wrong wp_redirect

This commit is contained in:
Leo Germani 2018-04-12 17:22:14 -03:00
parent 5fb5b95829
commit 3eca2aa567
2 changed files with 2 additions and 7 deletions

View File

@ -51,10 +51,6 @@ if(!function_exists('tainacan_setup')) {
);
add_theme_support( 'custom-logo', $logo_args );
/**
* Desabilita o FTP na instalação de Plugins - Lembrar de retirar!!
*/
define('FS_METHOD', 'direct');
}

View File

@ -35,7 +35,6 @@
endwhile; ?>
</div>
<?php echo tainacan_pagination(3); ?>
<?php else:
wp_redirect(esc_url( home_url() ) . '/404', 404);
exit; ?>
<?php else: ?>
<?php _e('Nothing found', 'tainacan-theme'); ?>
<?php endif; ?>