Ticket #332: meta-332.patch
File meta-332.patch, 2.2 KB (added by , 10 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-components.php
236 236 237 237 echo '<h3>Help maintain this component</h3>'; 238 238 239 if ( $maintainers = get_post_meta( $post->ID, '_active_maintainers', true ) ) { 239 $maintainers = get_post_meta( $post->ID, '_active_maintainers', true ); 240 if ( $maintainers ) { 241 $maintainers = array_map( 'trim', explode( ',', $maintainers ) ); 240 242 echo 'Component maintainers: '; 241 243 echo '<ul class="maintainers">'; 242 foreach ( array_map( 'trim', explode( ',', $maintainers ) ) as $maintainer ) { 243 echo '<li><a href="//profiles.wordpress.org/' . esc_attr( $maintainer ) . '"><img width="36" height="36" src="//wordpress.org/grav-redirect.php?user=' . esc_attr( $maintainer ) . '&s=36" /></a> ' . $maintainer . '</li>'; 244 foreach ( $maintainers as $maintainer ) { 245 echo '<li><a href="//profiles.wordpress.org/' . esc_attr( $maintainer ) . '">'; 246 echo '<img width="36" height="36" src="//wordpress.org/grav-redirect.php?user=' . esc_attr( $maintainer ) . '&s=36" /></a> ' . $maintainer . '</li>'; 244 247 } 245 248 echo "</ul>\n\n"; 246 249 } … … 250 253 251 254 $followers = $this->trac->get_col( $this->trac->prepare( "SELECT username FROM _notifications WHERE type = 'component' AND value = %s", $post->post_title ) ); 252 255 if ( $followers ) { 253 echo 'Contributors following this component: ';254 256 echo 'Contributors following this component: '; 257 echo '<ul class="followers">'; 255 258 foreach ( $followers as $follower ) { 256 259 $follower = esc_attr( $follower ); 257 260 echo '<li><a title="' . $follower . '" href="//profiles.wordpress.org/' . $follower . '">'; 258 261 echo '<img width="36" height="36" src="//wordpress.org/grav-redirect.php?user=' . $follower . '&s=36" /></a></li>'; 259 262 } 260 263 echo '</ul>'; 261 264 } 262 265 263 266 $content .= "\n\n" . '<div class="component-info">' . ob_get_clean() . '</div>';