WordPress.org

Making WordPress.org

Changeset 4749


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

Support Theme: Use a different new topic message for reviews.

Reviews are not intended to be used for support.

Merges [3996] to the new theme.

Props netweb, ipstenu.
See #1407.

File:
1 edited

Legend:

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

    r4748 r4749  
    2222                            if ( bbp_is_single_forum() ) {
    2323                                printf( __( 'Create a new topic in “%s Forum”', 'wporg-forums' ), bbp_get_forum_title() );
    24                             } elseif ( bbp_is_single_view() && 'reviews' == bbp_get_view_id() ) {
     24                            } elseif ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) {
    2525                                _e( 'Create a new review', 'wporg-forums' );
    2626                            } else {
     
    3737
    3838                    <div class="bbp-template-notice">
    39                         <p><?php _e( 'When posting a new topic, follow these steps:', 'wporg-forums' ); ?></p>
    40                         <ul>
    41                             <li><?php
    42                                 /* translators: %s: Codex URL for forum welcome */
    43                                 printf( __( '<strong>Read the <a href="%s">Forum Welcome</a></strong> to find out how to maximize your odds of getting help!', 'wporg-forums' ), esc_url( __( 'https://codex.wordpress.org/Forum_Welcome', 'wporg-forums' ) ) );
    44                             ?></li>
    45                             <li><?php
    46                                 /* translators: %s: URL to search */
    47                                 printf( __( '<strong><a href="%s">Search</a> the forums</strong> to see if your topic has been started already.', 'wporg-forums' ), esc_url( bbp_get_search_url() ) );
    48                             ?></li>
    49                             <li><?php _e( '<strong>Update to the latest versions</strong> of your plugins, themes, and WordPress.', 'wporg-forums' ); ?></li>
    50                             <li><?php _e( '<strong>Note the exact steps</strong> needed to reproduce your issue.', 'wporg-forums' ); ?></li>
    51                             <li><?php _e( '<strong>Provide any information</strong> you might think is useful. If your issue is visual, note your browser and operating system. If your issue is technical, note your server environment.', 'wporg-forums' ); ?></li>
    52                         </ul>
     39
     40                        <?php if ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) : ?>
     41
     42                            <?php do_action( 'wporg_compat_new_review_notice' ); ?>
     43
     44                        <?php else : ?>
     45
     46                            <p><?php _e( 'When posting a new topic, follow these steps:', 'wporg-forums' ); ?></p>
     47                            <ul>
     48                                <li><?php
     49                                    /* translators: %s: Codex URL for forum welcome */
     50                                    printf( __( '<strong>Read the <a href="%s">Forum Welcome</a></strong> to find out how to maximize your odds of getting help!', 'wporg-forums' ), esc_url( __( 'https://codex.wordpress.org/Forum_Welcome', 'wporg-forums' ) ) );
     51                                ?></li>
     52                                <li><?php
     53                                    /* translators: %s: URL to search */
     54                                    printf( __( '<strong><a href="%s">Search</a> the forums</strong> to see if your topic has been started already.', 'wporg-forums' ), esc_url( bbp_get_search_url() ) );
     55                                ?></li>
     56                                <li><?php _e( '<strong>Update to the latest versions</strong> of your plugins, themes, and WordPress.', 'wporg-forums' ); ?></li>
     57                                <li><?php _e( '<strong>Note the exact steps</strong> needed to reproduce your issue.', 'wporg-forums' ); ?></li>
     58                                <li><?php _e( '<strong>Provide any information</strong> you might think is useful. If your issue is visual, note your browser and operating system. If your issue is technical, note your server environment.', 'wporg-forums' ); ?></li>
     59                            </ul>
     60
     61                        <?php endif; ?>
     62
    5363                    </div>
    5464
Note: See TracChangeset for help on using the changeset viewer.