Making WordPress.org

Changeset 4747


Ignore:
Timestamp:
01/20/2017 10:29:39 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: For reviews, change "You must be logged in to reply to this topic" message to "You must be logged in to reply to this review".

Props netweb.
Fixes #2013.

File:
1 edited

Legend:

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

    r4675 r4747  
    205205                <div class="bbp-template-notice">
    206206                        <ul>
    207                                 <?php if ( is_user_logged_in() ) : ?>
    208                                         <li><?php esc_html_e( 'You cannot reply to this topic.', 'wporg-forums' ); ?></li>
     207                                <?php if ( wporg_support_is_single_review() ) : ?>
     208
     209                                        <?php if ( is_user_logged_in() ) : ?>
     210                                                <li><?php esc_html_e( 'You cannot reply to this review.', 'wporg-forums' ); ?></li>
     211                                        <?php else : ?>
     212                                                <li><?php printf( __( 'You must be <a href="%s">logged in</a> to reply to this review.', 'wporg-forums' ), wp_login_url() ); ?></li>
     213                                        <?php endif; ?>
     214
    209215                                <?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>
     216
     217                                        <?php if ( is_user_logged_in() ) : ?>
     218                                                <li><?php esc_html_e( 'You cannot reply to this topic.', 'wporg-forums' ); ?></li>
     219                                        <?php else : ?>
     220                                                <li><?php printf( __( 'You must be <a href="%s">logged in</a> to reply to this topic.', 'wporg-forums' ), wp_login_url() ); ?></li>
     221                                        <?php endif; ?>
     222
    211223                                <?php endif; ?>
    212224                        </ul>
Note: See TracChangeset for help on using the changeset viewer.