Permalink
Browse files

Updated login/registration functions

  • Loading branch information...
1 parent 96b5eb7 commit 725bf5d3471851dce5548cdc4d3b0771a561cbe2 Gordon Brander committed Sep 24, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 forms/comment.php
View
@@ -31,7 +31,12 @@
// if you need to be regestered to post comments..
if ( get_option('comment_registration') && !is_user_logged_in() ) { ?>
-<p id="you-must-be-logged-in-to-comment"><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'carrington-mobile'), get_bloginfo('wpurl').'/wp-login.php?redirect_to='.get_permalink()); ?></p>
+<p id="you-must-be-logged-in-to-comment"><?php
+ printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'carrington-mobile'), wp_login_url(urlencode(get_permalink())) );
+ if (get_option('users_can_register')) {
+ printf(' ' . __('Not a member? %s now!', 'carrington-mobile'), wp_register('','', false) );
+ }
+?></p>
<?php
}

0 comments on commit 725bf5d

Please sign in to comment.