Revisions
-
nacin revised this gist
Feb 12, 2013 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,8 +2,8 @@ //** Redirect if not logged in add_action( 'template_redirect', function() { if ( ! is_user_logged_in() ) { wp_redirect( wp_login_url() ); exit; } } ); -
nacin revised this gist
Feb 12, 2013 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,8 @@ <?php //** Redirect if not logged in add_action( 'template_redirect', function() { if ( ! is_user_logged_in() && 'wp-login.php' !== $pagenow ) { wp_redirect( wp_login_url() ); exit; -
nathanrice revised this gist
Feb 12, 2013 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ <?php //** Redirect if not logged in if ( ! is_user_logged_in() && 'wp-login.php' !== $pagenow ) { wp_redirect( wp_login_url() ); exit; } -
mattonomics created this gist
Feb 12, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ <?php if ( !is_user_logged_in() && $pagenow !== 'wp-login.php' ) { wp_redirect( home_url('wp-login.php') ); exit; }