Plugin Directory

Changeset 2048466


Ignore:
Timestamp:
03/11/2019 04:59:21 PM (7 years ago)
Author:
netdelight
Message:

fixed missing username, check https://wordpress.org/support/topic/name-of-user-who-reserved-is-not-shown/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sharing-club/trunk/templates/single-shared_item.php

    r1662143 r2048466  
    1919    ELSE 'available' END availability,
    2020IF(user_id=".get_current_user_id().", 'you', 'other') who,
    21 $wpdb->comments.*, user_nicename FROM ".$wpdb->comments." LEFT JOIN ".$wpdb->users." ON ".$wpdb->comments.".comment_ID = user_id WHERE comment_post_ID = ".get_the_ID()." ORDER BY comment_ID DESC LIMIT 1");
     21$wpdb->comments.*, user_nicename FROM ".$wpdb->comments." LEFT JOIN ".$wpdb->users." ON ".$wpdb->comments.".user_id = ".$wpdb->users.".ID WHERE comment_post_ID = ".get_the_ID()." ORDER BY comment_ID DESC LIMIT 1");
    2222// to you / other
    2323//var_dump($status);
Note: See TracChangeset for help on using the changeset viewer.