Making WordPress.org

Changeset 13395


Ignore:
Timestamp:
03/27/2024 10:20:11 PM (7 months ago)
Author:
coffee2code
Message:

Support: Don't display notice at bottom of forum if user is not logged in.

The page already states near the top that logging in is required to create a topic.

Props dufresnesteven, coffee2code.
Fixes #7445.

File:
1 edited

Legend:

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

    r11319 r13395  
    236236    </div>
    237237
    238 <?php else : ?>
     238<?php elseif ( is_user_logged_in() ) : ?>
    239239
    240240    <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    241241        <div class="bbp-template-notice">
    242             <?php if ( is_user_logged_in() ) : ?>
    243                 <p><?php _e( 'You cannot create new topics at this time.', 'wporg-forums' ); ?></p>
    244             <?php else : ?>
    245                 <p><?php printf( __( 'You must be <a href="%s">logged in</a> to create new topics.', 'wporg-forums' ), wp_login_url() ); ?></p>
    246             <?php endif; ?>
     242            <p><?php _e( 'You cannot create new topics at this time.', 'wporg-forums' ); ?></p>
    247243        </div>
    248244    </div>
Note: See TracChangeset for help on using the changeset viewer.