Making WordPress.org

Changeset 4676


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

Support Theme: Add login link to "You must be logged in to create new topics" message.

Props danielbachhuber.
Fixes #2355.

File:
1 edited

Legend:

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

    r4673 r4676  
    214214    <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    215215        <div class="bbp-template-notice">
    216             <p><?php is_user_logged_in() ? _e( 'You cannot create new topics at this time.', 'wporg-forums' ) : _e( 'You must be logged in to create new topics.', 'wporg-forums' ); ?></p>
     216            <?php if ( is_user_logged_in() ) : ?>
     217                <p><?php _e( 'You cannot create new topics at this time.', 'wporg-forums' ); ?></p>
     218            <?php else : ?>
     219                <p><?php printf( __( 'You must be <a href="%s">logged in</a> to create new topics.', 'wporg-forums' ), wp_login_url() ); ?></p>
     220            <?php endif; ?>
    217221        </div>
    218222    </div>
Note: See TracChangeset for help on using the changeset viewer.