Upload folder via GUI - includes

This commit is contained in:
Git Manager GUI
2026-04-05 12:40:36 +02:00
parent cf42b89332
commit 764f760b61
4 changed files with 607 additions and 364 deletions

View File

@@ -880,10 +880,17 @@ class WBF_DB {
return $wpdb->get_results( $wpdb->prepare(
"SELECT n.*,
u.display_name AS actor_name, u.avatar_url AS actor_avatar,
t.title AS thread_title, t.id AS thread_id
t.title AS thread_title, t.id AS thread_id,
p.post_title AS plugin_title, p.post_name AS plugin_slug,
pm.meta_value AS plugin_version
FROM {$wpdb->prefix}forum_notifications n
JOIN {$wpdb->prefix}forum_users u ON u.id = n.actor_id
LEFT JOIN {$wpdb->prefix}forum_threads t ON t.id = n.object_id
LEFT JOIN {$wpdb->prefix}forum_users u ON u.id = n.actor_id
LEFT JOIN {$wpdb->prefix}forum_threads t
ON t.id = n.object_id AND n.type != 'plugin_update'
LEFT JOIN {$wpdb->posts} p
ON p.ID = n.object_id AND n.type = 'plugin_update' AND p.post_type = 'mc_plugin'
LEFT JOIN {$wpdb->postmeta} pm
ON pm.post_id = p.ID AND pm.meta_key = '_vmcp_version'
WHERE n.user_id = %d
ORDER BY n.created_at DESC
LIMIT %d",