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

@@ -720,6 +720,15 @@ class WBF_Ajax {
if ( ! $user ) wp_send_json_error(['message' => 'Nicht eingeloggt.']);
$notifs = WBF_DB::get_notifications( $user->id, 20 );
$unread = WBF_DB::count_unread_notifications( $user->id );
// Plugin-Update Notifications: Permalink + Thumbnail ergänzen
foreach ( $notifs as $n ) {
if ( $n->type === 'plugin_update' && ! empty( $n->object_id ) ) {
$n->plugin_url = get_permalink( (int) $n->object_id ) ?: '';
$n->plugin_thumb = get_the_post_thumbnail_url( (int) $n->object_id, 'thumbnail' ) ?: '';
}
}
wp_send_json_success(['notifications' => $notifs, 'unread' => $unread]);
}