Upload folder via GUI - includes
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user