Index: sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php =================================================================== --- sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php (revision 4920) +++ sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php (working copy) @@ -349,6 +349,22 @@ } public function do_template_notice() { + if ( $this->object->post_author == get_current_user_id() ) { + $notice = __( 'A review should be the review of an experience a user has with your project, not for self-promotion.', 'wporg-forums' ) . ' '; + + switch( $this->compat ) { + case 'plugin' : + $notice .= __( 'Since you work on this plugin, please consider not leaving a review on your own work. You were probably going to give it five stars anyway.', 'wporg-forums' ); + break; + case 'theme' : + $notice .= __( 'Since you work on this theme, please consider not leaving a review on your own work. You were probably going to give it five stars anyway.', 'wporg-forums' ); + break; + } + + echo '
' . $notice . '
'; + return; + } + $report = $rate = ''; switch( $this->compat ) { case 'plugin' :