Making WordPress.org

Changeset 4936


Ignore:
Timestamp:
02/19/2017 02:25:57 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: After [4935], add a paragraph break after the first sentence of the notice to improve visual appearance and readability.

See #2126.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php

    r4935 r4936  
    353353
    354354    public function do_template_notice() {
    355         if ( $this->object->post_author == get_current_user_id() ) {
    356             $notice = __( 'A review should be the review of an experience a user has with your project, not for self-promotion.', 'wporg-forums' ) . ' ';
    357 
    358             switch( $this->compat ) {
    359                 case 'plugin' :
    360                     $notice .= __( 'Since you work on this plugin, please consider <em>not</em> leaving a review on your own work. You were probably going to give it five stars anyway.', 'wporg-forums' );
    361                     break;
    362                 case 'theme' :
    363                     $notice .= __( 'Since you work on this theme, please consider <em>not</em> leaving a review on your own work. You were probably going to give it five stars anyway.', 'wporg-forums' );
    364                     break;
    365             }
    366 
    367             echo '<p>' . $notice . '</p>';
     355        if ( $this->object->post_author == get_current_user_id() ) { ?>
     356            <p><?php _e( 'A review should be the review of an experience a user has with your project, not for self-promotion.', 'wporg-forums' ); ?></p>
     357
     358            <?php if ( 'plugin' === $this->compat ) : ?>
     359                <p><?php _e( 'Since you work on this plugin, please consider <em>not</em> leaving a review on your own work. You were probably going to give it five stars anyway.', 'wporg-forums' ); ?></p>
     360            <?php elseif ( 'theme' === $this->compat ) : ?>
     361                <p><?php _e( 'Since you work on this theme, please consider <em>not</em> leaving a review on your own work. You were probably going to give it five stars anyway.', 'wporg-forums' ); ?></p>
     362            <?php endif;
     363
    368364            return;
    369365        }
Note: See TracChangeset for help on using the changeset viewer.