commit 3ea0c0d63e2c60cbbe6513657db30e2138993871
Author: Phuc Nguyen <manhphucofficial@gmail.com>
Date: Wed Dec 10 14:23:50 2025 +0700
Support Forums: Add login call-to-action when no topics found. See #8141.
diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/feedback-no-topics.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/feedback-no-topics.php
index 1b88d85bf..a1da45910 100644
|
a
|
b
|
|
| 1 | | <div class="bbp-template-notice"> |
| 2 | | <p><?php _e( 'No topics found. Select another view or start a new post.', 'wporg-forums' ); ?></p> |
| 3 | | </div> |
| | 1 | <div class="bbp-template-notice"> |
| | 2 | <p> |
| | 3 | <?php |
| | 4 | if ( is_user_logged_in() ) { |
| | 5 | _e( 'No topics found. Select another view or start a new post.', 'wporg-forums' ); |
| | 6 | } else { |
| | 7 | printf( |
| | 8 | /* translators: %s: Login URL. */ |
| | 9 | __( 'No topics found. Select another view or start a new post. Please <a href="%s">log in</a> first.', 'wporg-forums' ), |
| | 10 | esc_url( wp_login_url( bbp_get_forum_permalink() ) ) |
| | 11 | ); |
| | 12 | } |
| | 13 | ?> |
| | 14 | </p> |
| | 15 | </div> |