feat(core): rebuild v1.1.4, fix wsod, patch functions.php, and apply robust dashboard
This commit is contained in:
@@ -114,3 +114,13 @@ function edukarsa_activation_redirect() {
|
||||
}
|
||||
}
|
||||
add_action( 'after_switch_theme', 'edukarsa_activation_redirect' );
|
||||
|
||||
// 4. REDIRECT SETELAH AKTIVASI TEMA
|
||||
function edukarsa_activation_redirect() {
|
||||
global $pagenow;
|
||||
if ( is_admin() && 'themes.php' === $pagenow && isset( $_GET['activated'] ) ) {
|
||||
wp_redirect( admin_url( 'admin.php?page=edukarsa_main_menu' ) );
|
||||
exit;
|
||||
}
|
||||
}
|
||||
add_action( 'after_switch_theme', 'edukarsa_activation_redirect' );
|
||||
|
||||
Reference in New Issue
Block a user