fix(messages): default message center slug to messages
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d71528f500
commit
bbb41547e2
4 files changed
+7
-7
No files matched your search
@@ -209,9 +209,9 @@ class Integration {
|
||||
*/
|
||||
public static function notification_settings(): array {
|
||||
$settings = Settings::get_all();
|
||||
$slug = sanitize_key((string) ($settings['msg_center_rewrite_slug'] ?? 'message'));
|
||||
$slug = sanitize_key((string) ($settings['msg_center_rewrite_slug'] ?? 'messages'));
|
||||
if ($slug === '') {
|
||||
$slug = 'message';
|
||||
$slug = 'messages';
|
||||
}
|
||||
|
||||
$paginate = sanitize_key((string) ($settings['message_paginate_type'] ?? 'ajax_lists'));
|
||||
|
||||
Reference in new issue
Block a user