fix wrong wp_redirect
This commit is contained in:
parent
5fb5b95829
commit
3eca2aa567
|
@ -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');
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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; ?>
|
Loading…
Reference in New Issue