Making WordPress.org

Changeset 4675


Ignore:
Timestamp:
01/14/2017 01:23:17 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Add login link to "You must be logged in to reply to this topic" message.

See #2355.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php

    r4674 r4675  
    205205        <div class="bbp-template-notice">
    206206            <ul>
    207                 <li><?php is_user_logged_in()
    208                     ? esc_html_e( 'You cannot reply to this topic.',               'wporg-forums' )
    209                     : esc_html_e( 'You must be logged in to reply to this topic.', 'wporg-forums' );
    210                 ?></li>
     207                <?php if ( is_user_logged_in() ) : ?>
     208                    <li><?php esc_html_e( 'You cannot reply to this topic.', 'wporg-forums' ); ?></li>
     209                <?php else : ?>
     210                    <li><?php printf( __( 'You must be <a href="%s">logged in</a> to reply to this topic.', 'wporg-forums' ), wp_login_url() ); ?></li>
     211                <?php endif; ?>
    211212            </ul>
    212213        </div>
Note: See TracChangeset for help on using the changeset viewer.