Permalink
Browse files

Bug Fixed: Chequeamos si t_em() retorna un valor real antes de ejecut…

…ar t_em_load_defaults()
  • Loading branch information...
rogertm committed May 24, 2018
1 parent 4fdc3d7 commit 640637eadf683541b7e151f9933c95138ca4cca0
Showing with 2 additions and 1 deletion.
  1. +2 −1 engine/functions.php
View
@@ -102,7 +102,8 @@ function t_em_restore_from_scratch(){
* @since Twenty'em 1.3
*/
function t_em_load_defaults(){
update_option( 't_em_theme_options', t_em_default_theme_options() );
if ( ! t_em() )
update_option( 't_em_theme_options', t_em_default_theme_options() );
}
add_action( 'after_switch_theme', 't_em_load_defaults' );

0 comments on commit 640637e

Please sign in to comment.