Making WordPress.org

Changeset 4938


Ignore:
Timestamp:
02/19/2017 02:52:56 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: For reviews, change "Topic Title" and "Topic Tags" labels to "Review Title" and "Review Tags", respectively.

See #2010.

File:
1 edited

Legend:

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

    r4762 r4938  
    9090
    9191                    <p>
    92                         <label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'wporg-forums' ), bbp_get_title_max_length() ); ?></label><br />
     92                        <label for="bbp_topic_title"><?php
     93                            if ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) {
     94                                printf( __( 'Review Title (Maximum Length: %d):', 'wporg-forums' ), bbp_get_title_max_length() );
     95                            } else {
     96                                printf( __( 'Topic Title (Maximum Length: %d):', 'wporg-forums' ), bbp_get_title_max_length() );
     97                            }
     98                        ?></label><br />
    9399                        <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />
    94100                    </p>
     
    116122
    117123                    <p>
    118                         <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'wporg-forums' ); ?></label><br />
     124                        <label for="bbp_topic_tags"><?php
     125                            if ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) {
     126                                _e( 'Review Tags:', 'wporg-forums' );
     127                            } else {
     128                                _e( 'Topic Tags:', 'wporg-forums' );
     129                            }
     130                        ?></label><br />
    119131                        <input type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
    120132                    </p>
Note: See TracChangeset for help on using the changeset viewer.