Making WordPress.org

Ticket #1041: meta-1041.patch

File meta-1041.patch, 1013 bytes (added by SergeyBiryukov, 10 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/functions.php

     
    1212        wp_enqueue_style( 'wporg-p2', get_stylesheet_uri(), array( 'p2' ), '20150203' );
    1313}
    1414
    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 ) {
     15add_filter( 'get_comment_author_url', 'wporg_p2_comment_profile_urls', 10, 3 );
     16function wporg_p2_comment_profile_urls( $url, $comment_ID, $comment ) {
     17        if ( $comment->user_id != 0 ) {
    1918                $user = new WP_User( $comment->user_id );
    2019                $nicename = $user->user_nicename;
    2120                $url = "//profiles.wordpress.org/{$nicename}/";