38929a1c by Jeff Balicki

custom_redirects

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent cbeff607
...@@ -322,8 +322,10 @@ function custom_redirects() { ...@@ -322,8 +322,10 @@ function custom_redirects() {
322 $user = wp_get_current_user(); 322 $user = wp_get_current_user();
323 $updated_profile = get_user_meta( $user->ID, 'updated_profile', true ); 323 $updated_profile = get_user_meta( $user->ID, 'updated_profile', true );
324 if(!$updated_profile){ 324 if(!$updated_profile){
325 wp_redirect( home_url( '/account/profile/' ) ); 325 if (!is_page('/account/profile/') ) {
326 die; 326 wp_redirect( home_url( '/account/profile/' ) );
327 die;
328 }
327 } 329 }
328 330
329 } 331 }
......