Changeset 721 for sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-components.php
- Timestamp:
- 06/24/2014 08:42:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-components.php
r643 r721 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"; … … 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 ); … … 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
Note: See TracChangeset
for help on using the changeset viewer.