Changeset 2048466
- Timestamp:
- 03/11/2019 04:59:21 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sharing-club/trunk/templates/single-shared_item.php
r1662143 r2048466 19 19 ELSE 'available' END availability, 20 20 IF(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_idWHERE 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"); 22 22 // to you / other 23 23 //var_dump($status);
Note: See TracChangeset
for help on using the changeset viewer.