Changeset 9464 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
- Timestamp:
- 02/04/2020 09:17:13 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
r9463 r9464 521 521 bbp_is_single_view() && in_array( bbp_get_view_id(), array( 'plugin', 'reviews', 'theme' ) ) 522 522 ) { 523 $is_reviews = 'reviews' === bbp_get_view_id(); 523 524 if ( bbp_current_user_can_access_create_topic_form() ) { 524 525 printf( 525 526 '<a class="button create-topic" href="#new-topic-0">%s</a>', 526 __( 'Create Topic', 'wporg-forums' )527 $is_reviews ? __( 'Create Review', 'wporg-forums' ) : __( 'Create Topic', 'wporg-forums' ) 527 528 ); 528 529 } elseif ( ! bbp_is_forum_closed() && ! is_user_logged_in() ) { … … 530 531 '<a class="button create-topic login" href="%s">%s</a>', 531 532 wp_login_url(), 532 __( 'Log in to Create a Topic', 'wporg-forums' )533 $is_reviews ? __( 'Log in to Create a Review', 'wporg-forums' ) : __( 'Log in to Create a Topic', 'wporg-forums' ) 533 534 ); 534 535 }
Note: See TracChangeset
for help on using the changeset viewer.