Ticket #9536: use-login-links.diff
| File use-login-links.diff, 4.6 KB (added by , 17 years ago) |
|---|
-
wp-includes/functions.php
2317 2317 if ( wp_get_referer() ) 2318 2318 $html .= "</p><p><a href='" . remove_query_arg( 'updated', clean_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>"; 2319 2319 elseif ( 'log-out' == $action ) 2320 $html .= "</p><p>" . sprintf( __( "Do you really want to <a href='%s'>log out</a>?"), wp_ nonce_url( site_url('wp-login.php?action=logout', 'login'), 'log-out') );2320 $html .= "</p><p>" . sprintf( __( "Do you really want to <a href='%s'>log out</a>?"), wp_logout_url() ); 2321 2321 2322 2322 wp_die( $html, $title); 2323 2323 } -
wp-includes/comment-template.php
984 984 $link = ''; 985 985 986 986 if ( get_option('comment_registration') && !$user_ID ) 987 $link = '<a rel="nofollow" href="' . site_url('wp-login.php?redirect_to=' . get_permalink()) . '">' . $login_text . '</a>';987 $link = '<a rel="nofollow" href="' . wp_login_url( get_permalink() ) . '">' . $login_text . '</a>'; 988 988 else 989 989 $link = "<a rel='nofollow' class='comment-reply-link' href='" . wp_specialchars( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#" . $respond_id . "' onclick='return addComment.moveForm(\"$add_below-$comment->comment_ID\", \"$comment->comment_ID\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>"; 990 990 return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post); … … 1035 1035 return false; 1036 1036 1037 1037 if ( get_option('comment_registration') && !$user_ID ) { 1038 $link = '<a rel="nofollow" href="' . site_url('wp-login.php?redirect_to=' . get_permalink()) . '">' . $login_text . '</a>';1038 $link = '<a rel="nofollow" href="' . wp_login_url( get_permalink() ) . '">' . $login_text . '</a>'; 1039 1039 } else { 1040 1040 $link = "<a rel='nofollow' class='comment-reply-link' href='" . get_permalink($post->ID) . "#$respond_id' onclick='return addComment.moveForm(\"$add_below-$post->ID\", \"0\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>"; 1041 1041 } -
wp-includes/pluggable.php
750 750 751 751 $redirect = ( strpos($_SERVER['REQUEST_URI'], '/options.php') && wp_get_referer() ) ? wp_get_referer() : $proto . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 752 752 753 $login_url = site_url( 'wp-login.php?redirect_to=' . urlencode( $redirect ), 'login');753 $login_url = wp_login_url($redirect); 754 754 755 755 wp_redirect($login_url); 756 756 exit(); … … 1102 1102 1103 1103 $message = sprintf(__('Username: %s'), $user_login) . "\r\n"; 1104 1104 $message .= sprintf(__('Password: %s'), $plaintext_pass) . "\r\n"; 1105 $message .= site_url("wp-login.php", 'login') . "\r\n";1105 $message .= wp_login_url() . "\r\n"; 1106 1106 1107 1107 wp_mail($user_email, sprintf(__('[%s] Your username and password'), get_option('blogname')), $message); 1108 1108 -
wp-content/themes/classic/comments.php
42 42 <h2 id="postcomment"><?php _e('Leave a comment'); ?></h2> 43 43 44 44 <?php if ( get_option('comment_registration') && !$user_ID ) : ?> 45 <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), get_option('siteurl')."/wp-login.php?redirect_to=".urlencode(get_permalink()));?></p>45 <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url( get_permalink() ) );?></p> 46 46 <?php else : ?> 47 47 48 48 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> -
wp-content/themes/default/comments.php
57 57 </div> 58 58 59 59 <?php if ( get_option('comment_registration') && !$user_ID ) : ?> 60 <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>60 <p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p> 61 61 <?php else : ?> 62 62 63 63 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)