Make WordPress Core

Changeset 6006


Ignore:
Timestamp:
09/01/2007 11:05:11 PM (18 years ago)
Author:
markjaquith
Message:

urlencode() redirect_to param in login links for both themes. fixes #4873 for trunk

Location:
trunk/wp-content/themes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/classic/comments.php

    r5697 r6006  
    3636
    3737<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    38 <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), get_option('siteurl')."/wp-login.php?redirect_to=".get_the_permalink());?></p>
     38<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>
    3939<?php else : ?>
    4040
  • trunk/wp-content/themes/default/comments.php

    r5290 r6006  
    6767
    6868<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    69 <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
     69<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>
    7070<?php else : ?>
    7171
Note: See TracChangeset for help on using the changeset viewer.