Changeset 1610 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/functions.php
- Timestamp:
- 05/21/2015 04:08:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/functions.php
r1215 r1610 13 13 } 14 14 15 add_filter( 'get_comment_author_url', 'wporg_p2_comment_profile_urls' ); 16 function wporg_p2_comment_profile_urls( $url ) { 17 $comment = $GLOBALS['comment']; 18 if ( is_object( $comment ) && $comment->user_id != 0 ) { 15 add_filter( 'get_comment_author_url', 'wporg_p2_comment_profile_urls', 10, 3 ); 16 function wporg_p2_comment_profile_urls( $url, $comment_ID, $comment ) { 17 if ( $comment->user_id != 0 ) { 19 18 $user = new WP_User( $comment->user_id ); 20 19 $nicename = $user->user_nicename;
Note: See TracChangeset
for help on using the changeset viewer.