Making WordPress.org

Changeset 1645


Ignore:
Timestamp:
06/03/2015 10:25:54 PM (9 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress.org: use site_url() in comments.php.

Fixes mixed content issues when posting comments.

Fixes #1024. Props netweb, dd32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/comments.php

    r442 r1645  
    3131    <?php if ( get_option( 'comment_registration' ) && ! is_user_logged_in() ) : ?>
    3232
    33         <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>
     33        <p>You must be <a href="<?php echo site_url( '/wp-login.php' ); ?>?redirect_to=<?php echo urlencode( get_permalink() ); ?>">logged in</a> to post a comment.</p>
    3434
    3535    <?php else : ?>
    3636
    3737        <div id="respond">
    38             <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
     38            <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="commentform">
    3939                <fieldset>
    4040                    <legend><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></legend>
Note: See TracChangeset for help on using the changeset viewer.