Making WordPress.org

Changeset 801


Ignore:
Timestamp:
08/19/2014 05:35:09 PM (11 years ago)
Author:
coffee2code
Message:

WP.org P2 theme: verify object before use to prevent warning; make profiles link SSL aware

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/functions.php

    r659 r801  
    1616function wporg_p2_comment_profile_urls( $url ) {
    1717    $comment = $GLOBALS['comment'];
    18     if ( $comment->user_id != 0 ) {
     18    if ( is_object( $comment ) && $comment->user_id != 0 ) {
    1919        $user = new WP_User( $comment->user_id );
    2020        $nicename = $user->user_nicename;
    21         $url = "http://profiles.wordpress.org/{$nicename}/";
     21        $url = "//profiles.wordpress.org/{$nicename}/";
    2222    }
    2323    return $url;
Note: See TracChangeset for help on using the changeset viewer.