Changeset 4935
- Timestamp:
- 02/19/2017 10:26:59 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php
r4934 r4935 353 353 354 354 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>'; 368 return; 369 } 370 355 371 $report = $rate = ''; 356 372 switch( $this->compat ) {
Note: See TracChangeset
for help on using the changeset viewer.