Ticket #1041: meta-1041.patch
File meta-1041.patch, 1013 bytes (added by , 10 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/functions.php
12 12 wp_enqueue_style( 'wporg-p2', get_stylesheet_uri(), array( 'p2' ), '20150203' ); 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; 21 20 $url = "//profiles.wordpress.org/{$nicename}/";